Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require("libGarrisonFunctions")
- function Definitions()
- Define_State("State_Init", State_Init)
- end
- function State_Init(message)
- if message == OnEnter then
- if Get_Game_Mode() ~= "Space" then
- ScriptExit()
- end
- Debug_Text("DEBUG_1")
- empire_player = Find_Player("EMPIRE")
- rebel_player = Find_Player("REBEL")
- Debug_Text("DEBUG_2")
- if Object.Get_Type().Get_Name() == "EMPIRE_RACKETEERING_CORRUPTION_UPGRADE" then
- Debug_Text("DEBUG_3")
- UpgradeRoutine("Empire", 2, "Empire_Capital_Shipyard")
- Debug_Text("DEBUG_4")
- elseif Object.Get_Type().Get_Name() == "REBEL_RACKETEERING_CORRUPTION_UPGRADE" then
- Debug_Text("DEBUG_3")
- UpgradeRoutine("Rebel", 1, "Rebel_Capital_Shipyard")
- Debug_Text("DEBUG_4")
- end
- Debug_Text("DEBUG_5")
- ScriptExit()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement