Initialise

Inserted working changes to random shuttle spawing
This commit is contained in:
SomeGuyEatingPie
2022-07-02 06:56:49 +01:00
parent 227f50ec51
commit c97b08e1ad
5 changed files with 2756 additions and 13 deletions
+24 -1
View File
@@ -29,7 +29,7 @@
// may result.
if(force)
..()
. = QDEL_HINT_QUEUE
return QDEL_HINT_QUEUE
else
return QDEL_HINT_LETMELIVE
@@ -227,6 +227,29 @@
reserved_area = null
return ..()
/obj/docking_port/stationary/picked
///Holds a list of map name strings for the port to pick from
var/list/shuttlekeys
/obj/docking_port/stationary/picked/Initialize(mapload)
. = ..()
if(!LAZYLEN(shuttlekeys))
WARNING("Random docking port [id] loaded with no shuttle keys")
return
var/selectedid = pick(shuttlekeys)
roundstart_template = SSmapping.shuttle_templates[selectedid]
/obj/docking_port/stationary/picked/whiteship
name = "Deep Space"
id = "whiteship_away"
dheight = 0
dir = 2
dwidth = 11
height = 22
width = 35
//shuttlekeys = list("whiteship_meta", "whiteship_pubby", "whiteship_box", "whiteship_cere", "whiteship_kilo", "whiteship_donut", "whiteship_delta", "whiteship_Sophie1")
shuttlekeys = list("whiteship_Sophie1")
/obj/docking_port/mobile
name = "shuttle"
icon_state = "pinonclose"