Fix old Lua breakage
Works around a problem in the old Lua API where a trait lookup would
not find the correct class and make the script crash.
In this instance, `Game.modData.ObjectCreator.FindType("RallyPoint")`
return `OpenRA.Mods.Common.Effects.RallyPoint` instead of the expected
`OpenRA.Mods.Common.RallyPoint`.
The other change is an oversight from the recent warhead rewrites.
Fixes #6728
This commit is contained in:
@@ -2337,7 +2337,7 @@ Weapons:
|
|||||||
Nike:
|
Nike:
|
||||||
Range: 9c0
|
Range: 9c0
|
||||||
Maverick:
|
Maverick:
|
||||||
Warhead: SpreadDamage
|
Warhead@1Dam: SpreadDamage
|
||||||
Damage: 175
|
Damage: 175
|
||||||
|
|
||||||
Voices:
|
Voices:
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ SetupWorld = function()
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Production.SetRallyPoint(WarFactory, Rallypoint)
|
-- Production.SetRallyPoint(WarFactory, Rallypoint)
|
||||||
Production.EventHandlers.Setup(soviets)
|
Production.EventHandlers.Setup(soviets)
|
||||||
|
|
||||||
-- RunAfterDelay is used so that the 'Building captured' and 'Mission accomplished' sounds don't play at the same time
|
-- RunAfterDelay is used so that the 'Building captured' and 'Mission accomplished' sounds don't play at the same time
|
||||||
|
|||||||
Reference in New Issue
Block a user