[MIRROR] Redgate train map (#6932)

Co-authored-by: Casey <a.roaming.shadow@gmail.com>
Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
CHOMPStation2
2023-09-08 05:10:26 -07:00
committed by GitHub
parent fdf9dff611
commit 10c8dcad3c
11 changed files with 46868 additions and 3 deletions

View File

@@ -246,3 +246,27 @@ var/global/list/tele_landmarks = list() // Terrible, but the alternative is loop
else
message_admins("ERROR: planetary_fall step trigger lacks a planet to fall onto.")
return
//Death
/obj/effect/step_trigger/death
var/deathmessage = "You die a horrible, brutal and very sudden death."
var/deathalert = "has stepped on a death trigger."
/obj/effect/step_trigger/death/Trigger(var/atom/movable/A)
if(isliving(A))
to_chat(A, "<span class='danger'>[deathmessage]</span>")
log_and_message_admins("[A] [deathalert]")
qdel(A)
/obj/effect/step_trigger/death/train_lost
deathmessage = "You fly down the tunnel of the train at high speed for a few moments before impact kills you with sheer concussive force."
deathalert = "fell off the side of the train and died horribly."
/obj/effect/step_trigger/death/train_crush
deathmessage = "You get horribly crushed by the train, there's pretty much nothing left of you."
deathalert = "fell under the train and was crushed horribly."
/obj/effect/step_trigger/death/fly_off
deathmessage = "You get caught up in the slipstream of the train and quickly dragged down into the tracks. Your body is brutally smashed into the electrified rails and then sucked right under a carriage. No one is finding that mess, thankfully."
deathalert = "tried to fly away from the train but was died horribly in the process."

View File

@@ -58,3 +58,53 @@
/obj/item/weapon/paper/sec_ticket/update_icon()
icon = icon
icon_state = icon_state
/obj/item/device/ticket_printer/train
name = "permission ticket printer"
desc = "It prints permit tickets!"
icon = 'icons/obj/device_vr.dmi'
icon_state = "train_ticket_printer"
/obj/item/device/ticket_printer/train/print_a_ticket(mob/user)
var/ticket_name = sanitize(tgui_input_text(user, "The Name of the person you are issuing the ticket to.", "Name", max_length = 100))
if(length(ticket_name) > 100)
tgui_alert_async(usr, "Entered name too long. 100 character limit.","Error")
return
if(!ticket_name)
return
var/details = sanitize(tgui_input_text(user, "What is the ticket for? This could be anything like travel to a destination or permission to do something! This is not official and does not override any rules or authorities on the station.", "Ticket Details", max_length = 200))
if(length(details) > 200)
tgui_alert_async(usr, "Entered details too long. 200 character limit.","Error")
return
if(!details)
return
var/turf/our_turf = get_turf(user)
var/final = "<head><style>body {font-family: Verdana; background-color: #ffa1ef;}</style></head><center><h3>Permit Ticket</h3><hr>This ticket has been issued to <br><big>[capitalize(ticket_name)]</big></center><b>This permits them to</b>:<br><i>[details]</i><br>Issued by:<i>[user]</i><hr><center><small>This ticket is non-refundable from the time of receipt. This ticket holds the authority of the issuer only and does not hold any authority over persons nor entities that were not involved in this transaction.</small><br></center>"
var/obj/item/weapon/paper/permit_ticket/p = new /obj/item/weapon/paper/permit_ticket(our_turf)
p.info = final
p.name = "Permit Ticket: [ticket_name]"
playsound(user, 'sound/items/ticket_printer.ogg', 75, 1)
log_and_message_admins("has issued '[ticket_name]' a permit ticket: \"[details]\"", user)
last_print = world.time
/obj/item/weapon/paper/permit_ticket
name = "Permit Ticket"
desc = "A ticket issued to permit someone to do something!"
icon = 'icons/obj/bureaucracy_vr.dmi'
icon_state = "permit_ticket"
/obj/item/weapon/paper/permit_ticket/Initialize(mapload, text, title)
. = ..()
icon = 'icons/obj/bureaucracy_vr.dmi'
icon_state = "permit_ticket"
/obj/item/weapon/paper/permit_ticket/update_icon()
icon = icon
icon_state = icon_state