Rename fields on Repairable traits
To bring them in line with RearmActors, Repairable.RepairBuildings and RepairableNear.Buildings have been renamed to RepairActors. Additionally, their RA-specific internal defaults were removed and the FieldLoader now requires them to be set explicitly.
This commit is contained in:
committed by
Oliver Brakmann
parent
6dd84b2882
commit
5ec47b47af
@@ -110,7 +110,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
if (alwaysLand)
|
||||
return true;
|
||||
|
||||
if (repairableInfo != null && repairableInfo.RepairBuildings.Contains(dest.Info.Name) && self.GetDamageState() != DamageState.Undamaged)
|
||||
if (repairableInfo != null && repairableInfo.RepairActors.Contains(dest.Info.Name) && self.GetDamageState() != DamageState.Undamaged)
|
||||
return true;
|
||||
|
||||
return rearmable != null && rearmable.Info.RearmActors.Contains(dest.Info.Name)
|
||||
|
||||
Reference in New Issue
Block a user