Port scripts to new api.
This commit is contained in:
@@ -113,8 +113,8 @@ end
|
|||||||
|
|
||||||
SetupAlliedUnits = function()
|
SetupAlliedUnits = function()
|
||||||
Utils.Do(Map.NamedActors, function(a)
|
Utils.Do(Map.NamedActors, function(a)
|
||||||
if a.Owner == allies and a.HasProperty("AcceptsUpgrade") and a.AcceptsUpgrade("unkillable") then
|
if a.Owner == allies and a.HasProperty("AcceptsCondition") and a.AcceptsCondition("unkillable") then
|
||||||
a.GrantUpgrade("unkillable")
|
a.GrantCondition("unkillable")
|
||||||
a.Stance = "Defend"
|
a.Stance = "Defend"
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|||||||
@@ -11,8 +11,6 @@ World:
|
|||||||
ValuePerUnit: 0
|
ValuePerUnit: 0
|
||||||
LuaScript:
|
LuaScript:
|
||||||
Scripts: desert-shellmap.lua
|
Scripts: desert-shellmap.lua
|
||||||
ExternalConditions:
|
|
||||||
Conditions: unkillable
|
|
||||||
-StartGameNotification:
|
-StartGameNotification:
|
||||||
|
|
||||||
^Vehicle:
|
^Vehicle:
|
||||||
@@ -23,6 +21,8 @@ World:
|
|||||||
DamageMultiplier@UNKILLABLE:
|
DamageMultiplier@UNKILLABLE:
|
||||||
RequiresCondition: unkillable
|
RequiresCondition: unkillable
|
||||||
Modifier: 0
|
Modifier: 0
|
||||||
|
ExternalConditions:
|
||||||
|
Conditions: unkillable
|
||||||
|
|
||||||
^Tank:
|
^Tank:
|
||||||
GivesBounty:
|
GivesBounty:
|
||||||
@@ -32,6 +32,8 @@ World:
|
|||||||
DamageMultiplier@UNKILLABLE:
|
DamageMultiplier@UNKILLABLE:
|
||||||
RequiresCondition: unkillable
|
RequiresCondition: unkillable
|
||||||
Modifier: 0
|
Modifier: 0
|
||||||
|
ExternalConditions:
|
||||||
|
Conditions: unkillable
|
||||||
|
|
||||||
^Infantry:
|
^Infantry:
|
||||||
GivesBounty:
|
GivesBounty:
|
||||||
@@ -47,6 +49,8 @@ World:
|
|||||||
DamageMultiplier@UNKILLABLE:
|
DamageMultiplier@UNKILLABLE:
|
||||||
RequiresCondition: unkillable
|
RequiresCondition: unkillable
|
||||||
Modifier: 0
|
Modifier: 0
|
||||||
|
ExternalConditions:
|
||||||
|
Conditions: unkillable
|
||||||
|
|
||||||
^Ship:
|
^Ship:
|
||||||
GivesBounty:
|
GivesBounty:
|
||||||
@@ -56,6 +60,8 @@ World:
|
|||||||
DamageMultiplier@UNKILLABLE:
|
DamageMultiplier@UNKILLABLE:
|
||||||
RequiresCondition: unkillable
|
RequiresCondition: unkillable
|
||||||
Modifier: 0
|
Modifier: 0
|
||||||
|
ExternalConditions:
|
||||||
|
Conditions: unkillable
|
||||||
|
|
||||||
^Plane:
|
^Plane:
|
||||||
GivesBounty:
|
GivesBounty:
|
||||||
@@ -63,6 +69,8 @@ World:
|
|||||||
DamageMultiplier@UNKILLABLE:
|
DamageMultiplier@UNKILLABLE:
|
||||||
RequiresCondition: unkillable
|
RequiresCondition: unkillable
|
||||||
Modifier: 0
|
Modifier: 0
|
||||||
|
ExternalConditions:
|
||||||
|
Conditions: unkillable
|
||||||
|
|
||||||
^Building:
|
^Building:
|
||||||
GivesBounty:
|
GivesBounty:
|
||||||
@@ -70,6 +78,8 @@ World:
|
|||||||
DamageMultiplier@UNKILLABLE:
|
DamageMultiplier@UNKILLABLE:
|
||||||
RequiresCondition: unkillable
|
RequiresCondition: unkillable
|
||||||
Modifier: 0
|
Modifier: 0
|
||||||
|
ExternalConditions:
|
||||||
|
Conditions: unkillable
|
||||||
|
|
||||||
OILB:
|
OILB:
|
||||||
CashTrickler:
|
CashTrickler:
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ SendUnits = function(entryCell, unitTypes, targetCell, extraData)
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
if extraData == "IronCurtain" then
|
if extraData == "IronCurtain" then
|
||||||
a.GrantTimedUpgrade("invulnerability", DateTime.Seconds(25))
|
a.GrantCondition("invulnerability", DateTime.Seconds(25))
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -38,8 +38,8 @@ end
|
|||||||
|
|
||||||
SetupInvulnerability = function()
|
SetupInvulnerability = function()
|
||||||
Utils.Do(Map.NamedActors, function(actor)
|
Utils.Do(Map.NamedActors, function(actor)
|
||||||
if actor.HasProperty("AcceptsUpgrade") and actor.AcceptsUpgrade("unkillable") then
|
if actor.HasProperty("AcceptsCondition") and actor.AcceptsCondition("unkillable") then
|
||||||
actor.GrantUpgrade("unkillable")
|
actor.GrantCondition("unkillable")
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1436,8 +1436,6 @@ Rules:
|
|||||||
GlobalLightingPaletteEffect:
|
GlobalLightingPaletteEffect:
|
||||||
Blue: 0.7
|
Blue: 0.7
|
||||||
Ambient: 0.7
|
Ambient: 0.7
|
||||||
ExternalConditions:
|
|
||||||
Conditions: unkillable
|
|
||||||
HARV:
|
HARV:
|
||||||
-Targetable:
|
-Targetable:
|
||||||
GALITE:
|
GALITE:
|
||||||
@@ -1449,11 +1447,17 @@ Rules:
|
|||||||
DamageMultiplier@UNKILLABLE:
|
DamageMultiplier@UNKILLABLE:
|
||||||
RequiresCondition: unkillable
|
RequiresCondition: unkillable
|
||||||
Modifier: 0
|
Modifier: 0
|
||||||
|
ExternalConditions:
|
||||||
|
Conditions: unkillable
|
||||||
NAOBEL:
|
NAOBEL:
|
||||||
DamageMultiplier@UNKILLABLE:
|
DamageMultiplier@UNKILLABLE:
|
||||||
RequiresCondition: unkillable
|
RequiresCondition: unkillable
|
||||||
Modifier: 0
|
Modifier: 0
|
||||||
|
ExternalConditions:
|
||||||
|
Conditions: unkillable
|
||||||
NALASR:
|
NALASR:
|
||||||
DamageMultiplier@UNKILLABLE:
|
DamageMultiplier@UNKILLABLE:
|
||||||
RequiresCondition: unkillable
|
RequiresCondition: unkillable
|
||||||
Modifier: 0
|
Modifier: 0
|
||||||
|
ExternalConditions:
|
||||||
|
Conditions: unkillable
|
||||||
|
|||||||
Reference in New Issue
Block a user