branchspacechess/main/unit_def_reworkcancel
15 Commits over 0 Days - ∞cph!
added unit mark to careerunit.
protobuf and serialize it.
unit mods serialize with career saves.
removed test code.
CareerUnit protobuf/serialization of mods
added unit mod protobuf defs
CareerUnitMod and CareerUnitMods serialization
career UI unit buttons now fire click events.
career unit mod apply/remove.
career unit mods get applied at the start of matches.
for testing: clicking a unit in the roster lit applies a +5 health mod to it
added GameTagModifier (unit stat stuff, not gameobject)
career unit modifications wip
removed basic attack def from unit def as it's never used
added maxhealth unit tag
moved block side lookup from AttackUtils to unit
block now references unit property not def directly.
moved movement range lookup to unity property
moved unit health read access to a property, added Alive property to replace shitty health > 0 checks
removed old redundant cooldown code and value from definition, now just checks move and attack turn numbers.