Updated itemTpl + weapon tpls to be consts

This commit is contained in:
Chomp
2025-02-06 11:21:36 +00:00
parent 83bc15ab1b
commit 9b33dd2d35
4 changed files with 4482 additions and 4485 deletions
+2 -4
View File
@@ -451,13 +451,11 @@ public class ItemTplGenerator(
{
enumFileData += $"\npublic static class {enumName}\n{{\n";
foreach (var (key, value) in data) enumFileData += $" {key} = \"{value}\";\n";
foreach (var (key, value) in data) enumFileData += $" public const string {key} = \"{value}\";\n";
enumFileData += "}\n";
}
// TODO: enable once we dont get any more errors
throw new NotImplementedException();
// this.fileSystemSync.write(outputPath, enumFileData);
_fileUtil.WriteFile(outputPath, enumFileData);
}
}