[MIRROR] Fix monastery shuttle + Pods (#2599)
* Fix monastery shuttle + Pods * actually ports podfix
This commit is contained in:
committed by
Poojawa
parent
86ebef0f04
commit
9d52a495b2
@@ -43456,7 +43456,7 @@
|
|||||||
dir = 2;
|
dir = 2;
|
||||||
network = list("SS13")
|
network = list("SS13")
|
||||||
},
|
},
|
||||||
/obj/item/circuitboard/computer/shuttle/monastery_shuttle,
|
/obj/item/circuitboard/computer/monastery_shuttle,
|
||||||
/turf/open/floor/plasteel/darkgreen,
|
/turf/open/floor/plasteel/darkgreen,
|
||||||
/area/storage/tech)
|
/area/storage/tech)
|
||||||
"bQx" = (
|
"bQx" = (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/obj/machinery/computer/shuttle/monastery_shuttle
|
/obj/machinery/computer/shuttle/monastery_shuttle
|
||||||
name = "monastery shuttle console"
|
name = "monastery shuttle console"
|
||||||
desc = "Used to control the monastery shuttle."
|
desc = "Used to control the monastery shuttle."
|
||||||
circuit = /obj/item/circuitboard/computer/shuttle/monastery_shuttle
|
circuit = /obj/item/circuitboard/computer/monastery_shuttle
|
||||||
shuttleId = "pod1"
|
shuttleId = "pod1"
|
||||||
possible_destinations = "monastery_shuttle_asteroid;monastery_shuttle_station"
|
possible_destinations = "monastery_shuttle_asteroid;monastery_shuttle_station"
|
||||||
no_destination_swap = TRUE
|
no_destination_swap = TRUE
|
||||||
|
|||||||
@@ -257,22 +257,6 @@
|
|||||||
build_path = /obj/machinery/computer/telecomms/server
|
build_path = /obj/machinery/computer/telecomms/server
|
||||||
origin_tech = "programming=3;magnets=3;bluespace=2"
|
origin_tech = "programming=3;magnets=3;bluespace=2"
|
||||||
|
|
||||||
/obj/item/circuitboard/computer/shuttle
|
|
||||||
name = "Shuttle (Computer Board)"
|
|
||||||
build_path = /obj/machinery/computer/shuttle
|
|
||||||
var/shuttleId
|
|
||||||
var/possible_destinations = ""
|
|
||||||
|
|
||||||
/obj/item/circuitboard/computer/shuttle/attackby(obj/item/I, mob/user, params)
|
|
||||||
if(istype(I, /obj/item/device/multitool))
|
|
||||||
var/chosen_id = round(input(usr, "Choose an ID number (-1 for reset):", "Input an Integer", null) as num|null)
|
|
||||||
if(chosen_id >= 0)
|
|
||||||
shuttleId = chosen_id
|
|
||||||
else
|
|
||||||
shuttleId = initial(shuttleId)
|
|
||||||
else
|
|
||||||
return ..()
|
|
||||||
|
|
||||||
/obj/item/circuitboard/computer/labor_shuttle
|
/obj/item/circuitboard/computer/labor_shuttle
|
||||||
name = "Labor Shuttle (Computer Board)"
|
name = "Labor Shuttle (Computer Board)"
|
||||||
build_path = /obj/machinery/computer/shuttle/labor
|
build_path = /obj/machinery/computer/shuttle/labor
|
||||||
@@ -339,7 +323,7 @@
|
|||||||
build_path = /obj/machinery/computer/apc_control
|
build_path = /obj/machinery/computer/apc_control
|
||||||
origin_tech = "programming=3;engineering=3;powerstorage=2"
|
origin_tech = "programming=3;engineering=3;powerstorage=2"
|
||||||
|
|
||||||
/obj/item/circuitboard/computer/shuttle/monastery_shuttle
|
/obj/item/circuitboard/computer/monastery_shuttle
|
||||||
name = "Monastery Shuttle (Computer Board)"
|
name = "Monastery Shuttle (Computer Board)"
|
||||||
build_path = /obj/machinery/computer/shuttle/monastery_shuttle
|
build_path = /obj/machinery/computer/shuttle/monastery_shuttle
|
||||||
|
|
||||||
|
|||||||
@@ -4,22 +4,11 @@
|
|||||||
icon_keyboard = "tech_key"
|
icon_keyboard = "tech_key"
|
||||||
light_color = LIGHT_COLOR_CYAN
|
light_color = LIGHT_COLOR_CYAN
|
||||||
req_access = list( )
|
req_access = list( )
|
||||||
circuit = /obj/item/circuitboard/computer/shuttle
|
|
||||||
var/shuttleId
|
var/shuttleId
|
||||||
var/possible_destinations = ""
|
var/possible_destinations = ""
|
||||||
var/admin_controlled
|
var/admin_controlled
|
||||||
var/no_destination_swap = 0
|
var/no_destination_swap = 0
|
||||||
|
|
||||||
/obj/machinery/computer/shuttle/Initialize()
|
|
||||||
..()
|
|
||||||
return INITIALIZE_HINT_LATELOAD
|
|
||||||
|
|
||||||
/obj/machinery/computer/shuttle/LateInitialize()
|
|
||||||
if(istype(circuit, /obj/item/circuitboard/computer/shuttle))
|
|
||||||
var/obj/item/circuitboard/computer/shuttle/C = circuit
|
|
||||||
possible_destinations = C.possible_destinations
|
|
||||||
shuttleId = C.shuttleId
|
|
||||||
|
|
||||||
/obj/machinery/computer/shuttle/attack_hand(mob/user)
|
/obj/machinery/computer/shuttle/attack_hand(mob/user)
|
||||||
if(..(user))
|
if(..(user))
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user