import Base
import dynamic_mission
import VS
import PlayerShip

# this uses the original coordinate system of Privateer
import GUI

GUI.GUIInit(320, 200, 0.03, 0.03)

import land_hooks

land_hooks.run("mining_base_pirates.m3u")

time_of_day = ""
dynamic_mission.CreateMissions()

# add landing pad
room_landing_pad = Base.Room("Landing_Pad")
land_hooks.setup(room_landing_pad)
Base.Texture(room_landing_pad, "background", "bases/mining_base/MiningBase_LandingPad" + time_of_day + ".spr", 0, 0)
Base.Texture(
    room_landing_pad, "lgt", "bases/mining_base/MiningBase_LandingPad_lgt" + time_of_day + ".spr", 0.6698, 0.564733333
)
Base.Texture(
    room_landing_pad, "shp", "bases/mining_base/MiningBase_LandingPad_shp" + time_of_day + ".spr", 0.206125, 0.6596
)

PlayerShip.InitPlayerShips()
PlayerShip.AddPlayerShips("mining_base", room_landing_pad, "landship")
import Base
import dynamic_mission
import VS
import PlayerShip

# this uses the original coordinate system of Privateer
import GUI
GUI.GUIInit(320,200,0.03,0.03)

import land_hooks
land_hooks.run()

time_of_day=''
plist=VS.musicAddList('land.m3u')
VS.musicPlayList(plist)
dynamic_mission.CreateMissions()

# add landing pad
room0 = Base.Room ('Landing_Bay')
Base.Texture (room0, 'lps', 'bases/new_constantinople/NewCon_LandingBay'+time_of_day+'_lps.spr', 0.0788125, 0.0)
Base.Texture (room0, 'background', 'bases/new_constantinople/NewCon_LandingBay'+time_of_day+'.spr', 0.582, -0.2716)
Base.Texture (room0, 'lgt', 'bases/new_constantinople/NewCon_LandingBay'+time_of_day+'_lgt.spr', -0.5031875, 0.46)
Base.Texture (room0, 'sh0', 'bases/new_constantinople/NewCon_LandingBay'+time_of_day+'_sh0.spr', -0.3334375, 0.3492)
Base.Texture (room0, 'sh1', 'bases/new_constantinople/NewCon_LandingBay'+time_of_day+'_sh1.spr', -0.194, 0.1649)
Base.Texture (room0, 'sh2', 'bases/new_constantinople/NewCon_LandingBay'+time_of_day+'_sh2.spr', 0.254625, 0.3492)

PlayerShip.InitPlayerShips()
PlayerShip.AddPlayerShips('new_constantinople',room0,'landship')

Base.LaunchPython (room0, 'my_launch_id', 'bases/launch_hooks.py', -0.515, -0.93, 1.025, 0.94, 'Launch')
import dynamic_mission
import VS
import vsrandom
import industrial_lib
sunny=vsrandom.uniform(0,1)<.9

import land_hooks
land_hooks.run('AWACS_peace.m3u')

time_of_day=''
dynamic_mission.CreateMissions()

industrial_lib.MakeIndustrial(sunny,time_of_day,True)
import dynamic_mission
import VS
import vsrandom
import industrial_lib
sunny=vsrandom.uniform(0,1)>.9

import land_hooks
land_hooks.run('AWACS.m3u')

time_of_day=''
dynamic_mission.CreateMissions()

industrial_lib.MakeIndustrial(sunny,time_of_day,True)
import Base
import dynamic_mission
import VS
import GUI
import land_hooks
import quest

if quest.checkSaveValue(VS.getCurrentPlayer(),"jones_dead",1.0):
    land_hooks.run('church_of_man_dead.m3u')
else:
    land_hooks.run('church_of_man.m3u')

# this uses the original coordinate system of Privateer
GUI.GUIInit(320,200,0.03,0.03)

time_of_day=''
dynamic_mission.CreateMissions()

# add landing pad
import pleasure_land
room0 = pleasure_land.MakePleasureAgriculturalLanding(time_of_day)

# add temple
room = Base.Room ('Temple')
room1 = room
done_comp=False
if quest.checkSaveValue(VS.getCurrentPlayer(),"jones_dead",1.0):
	Base.Texture (room, 'background', 'bases/church_of_man/GaeaDead.spr', .582, -.2716)
	Base.Texture (room, 'smk', 'bases/church_of_man/smk.spr', .582, -.2716)
	done_comp=True
else:
import dynamic_mission
import VS
import vsrandom
import industrial_lib
sunny=vsrandom.uniform(0,1)>=.99

import land_hooks
land_hooks.run('new_detroit.m3u')

time_of_day=''
dynamic_mission.CreateMissions()

industrial_lib.MakeIndustrial(sunny,time_of_day,False)
import Base
import dynamic_mission
import VS
import quest

import land_hooks
land_hooks.run('derelict.m3u', outro=False)

time_of_day=''
bar=-1
weap=-1
room0=-1
room = Base.Room ('Kilrathi_Weapon_Dump')
land_hooks.setup(room)
room0 = room
Base.Texture (room, 'background', 'bases/generic/airlock_yes.spr', 0, 0)
Base.Comp (room0, 'Inventory', -0.453125, -0.291667, 0.767578, 0.770833, 'Inventory','Upgrade ShipDealer')
Base.LaunchPython (room0, 'launch','bases/launch_hooks.py', -0.841797, -0.859375, 1.5625, 0.565104, 'Launch Your Ship')
Base.Ship (room0, 'ship', (0,-.6,4),(0,.93,-.34) ,(-1,0,0))
import campaign_lib
cnodelist=campaign_lib.getActiveCampaignNodes(room0)