`weight` component
ozkriff opened this issue · 3 comments
shmutalov:
Will bomb explosion push neighbor bombs?
ozkriff:
yep, it's really strange that pushbacks don't interact with other bombs. Atm, they only push objects with agent component.
Though I don't want to push boulders around so easily, so I need to introduce something like
weight
component and only push "light" objects. I'll create another issue for that.
Weight table:
- normal objects (examples: normal agents, bombs)
- heavy objects (examples: heavy agents, boulders)
- totally immovable objects
Obviously, push effect should get similar "strength" parameter.
Thought: maybe just add a field to blocker
component?
I might give this issue a try, in the meantime I'm writing here what I understand from the possible impacts, for future reference or if someone else wants to tackle that:
push effect
from this issue description actually refers to "Knockback" effect in the codeStrength
parameter would be implemented the same way as "Heal" abilityWeight
component (orblocker
property) would be/contains an enum to match the specified weigth table
... I'm writing here what I understand from the possible impacts ...
I haven't fleshed the exact plan for this feature out yet, but this looks correct.
I might give this issue a try ...
Great! Feel free to DM me on Discord or gitter if you want to discuss any details!