Patchly 3.4.3
What's new
v3.4.3
Added a fallback for exact-path lookup.
This allows patching assets that do not exist in the asset registry (i.e. NPC roles or some weird biomes)
You can place a .patch file at the exact location of the json file you wish to patch, and it will fall back to patching that instead.
v3.4.2
Added Variables
Deriving values with .vars and #
When many assets share numbers, define them once in a .vars file and compute per-asset values with a # key instead of hardcoding. A .vars holds plain numbers and its filename is the scope:
Armor.vars
{ "Spread_Head": 0.15, "Mult_Mana": 1.0 }
Adamantite.vars
{ "Mana": 80 }
Suffix a numeric key with # to make its value an expression, and reference a variable as $Scope.Name:
{ "Armor": { "StatModifiers": { "Mana?": [
{ "Amount#": "round($Adamantite.Mana * $Armor.Spread_Head * $Armor.Mult_Mana)", "CalculationType": "Additive" }
] } } }
This mod has no additional files

