Introduce IdleMovementSpeed
That actually factors in speed modifiers and trait pause/disable.
This commit is contained in:
@@ -607,6 +607,8 @@ namespace OpenRA.Mods.Common.Traits
|
||||
}
|
||||
|
||||
public int MovementSpeed => !IsTraitDisabled && !IsTraitPaused ? Util.ApplyPercentageModifiers(Info.Speed, speedModifiers) : 0;
|
||||
public int IdleMovementSpeed => Info.IdleSpeed < 0 ? MovementSpeed :
|
||||
!IsTraitDisabled && !IsTraitPaused ? Util.ApplyPercentageModifiers(Info.IdleSpeed, speedModifiers) : 0;
|
||||
|
||||
public (CPos Cell, SubCell SubCell)[] OccupiedCells()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user