You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In unit.py we currently only take _weapons directly from the unit's type data.
With _weapons, we then calculate can_attack, can_attack_air, can_attack_ground, ground_dps, air_dps, ground_range , air_range and bonus_damage for every unit (so for every single marine, not for the marine in general) in every frame we ask for these properties.
We would save a lot of calls if we calculated these one time for every unit during start and then saved this data in the unit's type data.
The text was updated successfully, but these errors were encountered:
In
unit.py
we currently only take_weapons
directly from the unit's type data.With
_weapons
, we then calculatecan_attack
,can_attack_air
,can_attack_ground
,ground_dps
,air_dps
,ground_range
,air_range
andbonus_damage
for every unit (so for every single marine, not for the marine in general) in every frame we ask for these properties.We would save a lot of calls if we calculated these one time for every unit during start and then saved this data in the unit's type data.
The text was updated successfully, but these errors were encountered: