Code: Select all
"trnBonusList":[
{"modifier":0.6, "unitList":{"categories":["U_MOUNTED"]}},
{"modifier":0.8, "modifierValue":3, "unitList":{"categories":["AND(", "U_HEAVY_CAVALRY", "U_SLOW_CHARGE", ")"]}},
{"modifier":0.9, "modifierValue":5, "unitList":{"categories":["U_MEDIUM_CAVALRY", "AND(", "U_CHARIOT", "U_MELEE", ")"]}},
{"modifier":1.0, "modifierValue":7, "unitList":{"categories":["AND(", "U_HEAVY_CAVALRY", "NOT", "U_SLOW_CHARGE", ")"]}},
{"modifier":1.2, "modifierValue":16, "unitList":{"categories":["U_ELEPHANT"]}}
],
modifierValue: scalar value to add to power so power + modifierValue (float value) - can be 0
unitList: the same structure as in many other cases able to address
- categrories, category relations using NOT/AND/OR operators (read more here: viewtopic.php?f=216&t=7503),
- can address individual units too,
- and can define exception units
Also you can use TEMPLATE references!
read here: viewtopic.php?f=216&t=8414
Example:
+60% +20 vs buildings
+200% +40 vs fortifications
+700% vs mega buildings
attacking unit, that is in all 3 categories would mean final bonus of +700% +40