Set breakpoint on any line of an Action that uses _creator.stats.attack
See error on break
Expected behavior
Stats should be loaded from ref_data global.
Screenshots
Additional context
Is there a reason only the first actor in each unit is called actor and the rest are @CharacterBody2D@[num]? Is this related? The node called "Actor" has proper stats.
During Factory.create_actor() the unit has the correct ActorStats. At some point after instnatiation and being added to the Unit._actors variable it is getting changed.
Describe the bug Actor Stats showing as 0
To Reproduce Steps to reproduce the behavior:
_creator.stats.attack
Expected behavior Stats should be loaded from ref_data global.
Screenshots
Additional context Is there a reason only the first actor in each unit is called actor and the rest are
@CharacterBody2D@[num]
? Is this related? The node called "Actor" has proper stats.