Prevent Health: 100 from being added to actors.
This commit is contained in:
@@ -214,6 +214,10 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (factionInit != null && factionInit.Value == Owner.Faction)
|
||||
return false;
|
||||
|
||||
var healthInit = init as HealthInit;
|
||||
if (healthInit != null && healthInit.Value == 100)
|
||||
return false;
|
||||
|
||||
// TODO: Other default values will need to be filtered
|
||||
// here after we have built a properties panel
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user