Replace ability_building with lua modifier_building
MNoya opened this issue · comments
Martin Noya commented
Realization from #12
Make a lua modifier for it and apply it directly (changing the detection of buildings to unit:HasModifier("modifier_building"))
States
- MODIFIER_STATE_MAGIC_IMMUNE (add setting in building_settings.kv)
- MODIFIER_STATE_SPECIALLY_DENIABLE (add setting in building_settings.kv)
- MODIFIER_STATE_ROOTED
- MODIFIER_STATE_LOW_ATTACK_PRIORITY
- MODIFIER_STATE_NO_UNIT_COLLISION
Properties
- MODIFIER_PROPERTY_DISABLE_TURNING (add setting for the default, and unit KV for specific buildings)
- MODIFIER_PROPERTY_IGNORE_CAST_ANGLE (already in
modifier_disable_turning.lua
) - MODIFIER_PROPERTY_MOVESPEED_ABSOLUTE (or _LIMIT 0)