1.1.0 (Now mod D_InventoryInfo.json)
This commit is contained in:
parent
58d35076d6
commit
b93d36a05d
@ -14,7 +14,7 @@ namespace Jsarus
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
public static string version = "1.0.0";
|
||||
public static string version = "1.1.0";
|
||||
public static string cd = Directory.GetCurrentDirectory();
|
||||
public static Process p = new Process();
|
||||
static void Main(string[] args)
|
||||
@ -51,7 +51,9 @@ namespace Jsarus
|
||||
int RequiredAmount = settings["D_ProcessorRecipes"]["RequiredAmount"].ToObject<int>();
|
||||
int CraftedAmount = settings["D_ProcessorRecipes"]["CraftedAmount"].ToObject<int>();
|
||||
|
||||
string[] supportedJson = { @"Traits\D_Itemable.json", @"Experience\D_ExperienceEvents.json", @"Tools\D_StaminaActionCosts.json", @"Tools\D_ToolDamage.json", @"Crafting\D_ProcessorRecipes.json" };
|
||||
int ÞlayerInventorySize = settings["D_InventoryInfo"]["ÞlayerInventorySize"].ToObject<int>();
|
||||
|
||||
string[] supportedJson = { @"Traits\D_Itemable.json", @"Experience\D_ExperienceEvents.json", @"Tools\D_StaminaActionCosts.json", @"Tools\D_ToolDamage.json", @"Crafting\D_ProcessorRecipes.json", @"Inventory\D_InventoryInfo.json" };
|
||||
|
||||
var dir = Directory.GetDirectories(@"Data\Vanilla");
|
||||
|
||||
@ -202,6 +204,16 @@ namespace Jsarus
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case "D_InventoryInfo.json":
|
||||
foreach (var r in job["Rows"])
|
||||
{
|
||||
if (r["Name"].ToObject<string>() == "Backpack")
|
||||
{
|
||||
r["StartingSlots"] = ÞlayerInventorySize;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
Message.CMW($"Saving {f}...", true, 1);
|
||||
var raw = JsonConvert.SerializeObject(job, Formatting.Indented);
|
||||
|
Loading…
x
Reference in New Issue
Block a user