Remove the now-redundant ScriptInvulnerable trait.
This commit is contained in:
@@ -109,8 +109,8 @@ end
|
||||
|
||||
SetupAlliedUnits = function()
|
||||
Utils.Do(Map.NamedActors, function(a)
|
||||
if a.Owner == allies and a.HasProperty("Invulnerable") then
|
||||
a.Invulnerable = true
|
||||
if a.Owner == allies and a.HasProperty("AcceptsUpgrade") and a.AcceptsUpgrade("unkillable") then
|
||||
a.GrantUpgrade("unkillable")
|
||||
a.Stance = "Defend"
|
||||
end
|
||||
end)
|
||||
|
||||
@@ -1295,19 +1295,20 @@ Rules:
|
||||
Health:
|
||||
HP: 200
|
||||
^Vehicle:
|
||||
ScriptInvulnerable:
|
||||
GivesBounty:
|
||||
Percentage: 0
|
||||
GainsExperience:
|
||||
Upgrades:
|
||||
InvulnerabilityUpgrade@UNKILLABLE:
|
||||
RequiresUpgrade: unkillable
|
||||
^Tank:
|
||||
ScriptInvulnerable:
|
||||
GivesBounty:
|
||||
Percentage: 0
|
||||
GainsExperience:
|
||||
Upgrades:
|
||||
InvulnerabilityUpgrade@UNKILLABLE:
|
||||
RequiresUpgrade: unkillable
|
||||
^Infantry:
|
||||
ScriptInvulnerable:
|
||||
GivesBounty:
|
||||
Percentage: 0
|
||||
GainsExperience:
|
||||
@@ -1318,20 +1319,25 @@ Rules:
|
||||
VolumeMultiplier: 0.1
|
||||
DeathSounds@ZAPPED:
|
||||
VolumeMultiplier: 0.1
|
||||
InvulnerabilityUpgrade@UNKILLABLE:
|
||||
RequiresUpgrade: unkillable
|
||||
^Ship:
|
||||
ScriptInvulnerable:
|
||||
GivesBounty:
|
||||
Percentage: 0
|
||||
GainsExperience:
|
||||
Upgrades:
|
||||
InvulnerabilityUpgrade@UNKILLABLE:
|
||||
RequiresUpgrade: unkillable
|
||||
^Plane:
|
||||
ScriptInvulnerable:
|
||||
GivesBounty:
|
||||
Percentage: 0
|
||||
InvulnerabilityUpgrade@UNKILLABLE:
|
||||
RequiresUpgrade: unkillable
|
||||
^Building:
|
||||
ScriptInvulnerable:
|
||||
GivesBounty:
|
||||
Percentage: 0
|
||||
InvulnerabilityUpgrade@UNKILLABLE:
|
||||
RequiresUpgrade: unkillable
|
||||
|
||||
Sequences:
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ WorldLoaded = function()
|
||||
|
||||
Utils.Do(Snipers, function(a)
|
||||
if a.Owner == soviets then
|
||||
a.Invulnerable = true
|
||||
a.GrantUpgrade("unkillable")
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
@@ -665,7 +665,8 @@ Rules:
|
||||
HP: 200
|
||||
AutoTarget:
|
||||
InitialStance: Defend
|
||||
ScriptInvulnerable:
|
||||
InvulnerabilityUpgrade@UNKILLABLE:
|
||||
RequiresUpgrade: unkillable
|
||||
SPY:
|
||||
Inherits: ^Infantry
|
||||
Buildable:
|
||||
|
||||
Reference in New Issue
Block a user