mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Hopefully final commit.
This commit is contained in:
@@ -512,9 +512,11 @@
|
||||
if(istype(AM, /obj/effect/bigDelivery))
|
||||
var/obj/effect/bigDelivery/T = AM
|
||||
src.destinationTag = T.sortTag
|
||||
if(istype(AM, /obj/item/smallDelivery))
|
||||
else if(istype(AM, /obj/item/smallDelivery))
|
||||
var/obj/item/smallDelivery/T = AM
|
||||
src.destinationTag = T.sortTag
|
||||
else if (!src.destinationTag)
|
||||
src.destinationTag = "Mail Office"
|
||||
|
||||
|
||||
// start the movement process
|
||||
|
||||
@@ -116,14 +116,17 @@
|
||||
desc = "Used to set the destination of properly wrapped packages."
|
||||
icon_state = "forensic0"
|
||||
var/currTag = null
|
||||
var/list/spaceList = list(0,1,0,0,1,0,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,1,0,1,0,0) // Breaks up departments with whitespace.
|
||||
var/list/locationList = list("Disposals",
|
||||
"Cargo Bay", "Mail Office", "Locker Room", "Detective's Office",
|
||||
"Law Office", "Tool Storage", "Security", "Courtroom", "Laundry Room",
|
||||
"Toilets", "Library", "Hydroponics", "Chapel", "Research Division",
|
||||
"Chemistry", "Research Director", "CMO", "Medbay", "Bar", "Diner",
|
||||
"Kitchen", "Meeting Room", "HoP Office", "Robotics", "Engineering",
|
||||
"Chief Engineer", "Janitor", "QM Office", "Chapel Office", "Theater",
|
||||
"Morgue", "Genetics")
|
||||
"Mail Office", "Cargo Bay", "QM Office",
|
||||
"Locker Room", "Tool Storage", "Laundry Room", "Toilets",
|
||||
"Security", "Courtroom", "Detective's Office", "Law Office",
|
||||
"Research Division", "Research Director", "Genetics",
|
||||
"Medbay", "CMO", "Chemistry", "Morgue",
|
||||
"Library", "Chapel", "Chapel Office", "Theater", "Janitor",
|
||||
"Bar", "Kitchen", "Diner", "Hydroponics",
|
||||
"Meeting Room", "HoP Office",
|
||||
"Engineering", "Chief Engineer", "Robotics",)
|
||||
//The whole system for the sorttype var is determined based on the order of this list,
|
||||
//disposals must always be 1, since anything that's untagged will automatically go to disposals, or sorttype = 1 --Superxpdude
|
||||
|
||||
@@ -145,11 +148,10 @@
|
||||
else
|
||||
dat += "<br>Current Selection: [currTag]<br><br>"
|
||||
for (var/i = 1, i <= locationList.len, i++)
|
||||
dat += "<A href='?src=\ref[src];nextTag=[i]'>[locationList[i]]</A>"
|
||||
if (i%3==0)
|
||||
if(spaceList[i])
|
||||
dat += "<br>"
|
||||
else
|
||||
dat += " "
|
||||
dat += "<A href='?src=\ref[src];nextTag=[i]'>[locationList[i]]</A>"
|
||||
dat += "<br>"
|
||||
user << browse(dat, "window=destTagScreen")
|
||||
onclose(user, "destTagScreen")
|
||||
usr.machine = null
|
||||
@@ -231,4 +233,10 @@
|
||||
if(mode == 2) // if was ready,
|
||||
mode = 1 // switch to charging
|
||||
update()
|
||||
return
|
||||
return
|
||||
|
||||
CanPass(atom/A, turf/T)
|
||||
if(istype(A, /mob/living)) // You Shall Not Pass!
|
||||
var/mob/living/M = A
|
||||
HasEntered(M)
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user