Added complete crafting to the game. Next step would be research and buildings. Updated DSL with Setup to work with dynamic loading.

This commit is contained in:
2026-05-05 21:44:30 +02:00
parent ffe1077abc
commit 6445c24202
11 changed files with 116 additions and 39 deletions
+11
View File
@@ -27,4 +27,15 @@ public class ItemData
[JsonPropertyName("stacksize")]
public int StackSize { get; set; }
public string GetReadableName()
{
string noUnderscore = Id.Replace("_", " ").ToLower();
return char.ToUpper(noUnderscore[0]) + noUnderscore.Substring(1);
}
public static string GetIndex(string readable)
{
return readable.ToLower().Replace(" ", "_");
}
}