branchspacechess/main/unit_def_reworkcancel
15 Commits over 0 Days - ∞cph!
removed old redundant cooldown code and value from definition, now just checks move and attack turn numbers.
moved unit health read access to a property, added Alive property to replace shitty health > 0 checks
moved movement range lookup to unity property
added maxhealth unit tag
moved block side lookup from AttackUtils to unit
block now references unit property not def directly.
removed basic attack def from unit def as it's never used
added GameTagModifier (unit stat stuff, not gameobject)
career unit modifications wip
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 unit mod protobuf defs
CareerUnitMod and CareerUnitMods serialization
CareerUnit protobuf/serialization of mods
unit mods serialize with career saves.
removed test code.
added unit mark to careerunit.
protobuf and serialize it.