piesome / valta

Multiplayer 4X strategy game
MIT License
5 stars 1 forks source link

Model for improvements to affect units etc #5

Closed minttu closed 7 years ago

minttu commented 7 years ago

Super basic model implemented in bd62ea1bc06b917b51e18f94fa1747a357d1b58a. Some more work is needed to make the improvements nicer to add

jaakaappi commented 7 years ago

Renamed improvements to effects

jaakaappi commented 7 years ago

Units have classes (think infantry, cavalry)

Units have combat modifiers that define a damage multiplier towards a unit class. Modifiers are stored in target(class)-modifier pairs. Targets are defined as strings, modifiers as numbers