Note to modders on stat name changes for next release
Posted: 13 Jun 2017, 23:22
There are a few changes have been committed for next release that mod makers that change the JSON stats files should be aware of.
Droid ranks are now a brain property and can be upgraded, and each brain can have its own set of rank names and level up experience thresholds.
Example:
You can upgrade these settings from research.json like this:
Finally, hitpoints calculation is now changed, and can be adjusted in many more ways than before. Each component now has two base hitpoint stats, 'hitpoints' and 'hitpointPct'. The latter increases the hitpoints of the whole droid, after summing together the hitpoint values of each component. Each can be upgraded through the scripts. Propulsions (only) also have a new 'hitpointPctOfBody' - hitpoint percentage of body - stat, to emulate the old hitpoint calculation, where propulsions are a percentage of the body hitpoints, but not the other components.
In particular for the hitpoints changes, if you have a balance mod, you may want to search&replace some stat names when the next release comes out, and perhaps consider using the new stats powers as well!
Droid ranks are now a brain property and can be upgraded, and each brain can have its own set of rank names and level up experience thresholds.
Example:
Code: Select all
"CommandBrain01": {
"designable": 1,
"hitpoints": 500,
"id": "CommandBrain01",
"maxDroids": 6,
"maxDroidsMult": 2,
"name": "Command Turret",
"ranks": [ "Rookie", "Green", "Trained", "Regular", "Professional", "Veteran", "Elite", "Special", "Hero" ],
"thresholds": [ 0, 8, 16, 32, 64, 128, 256, 512, 1024 ],
"turret": "CommandTurret1"
}
Code: Select all
{
"class": "Brain",
"parameter": "BaseCommandLimit",
"value": 20
},
{
"class": "Brain",
"parameter": "CommandLimitByLevel",
"value": 50
},
{
"class": "Brain",
"filterParameter": "Id",
"filterValue": "CommandBrain01",
"parameter": "RankThresholds",
"value": -10
}
In particular for the hitpoints changes, if you have a balance mod, you may want to search&replace some stat names when the next release comes out, and perhaps consider using the new stats powers as well!