Last active
December 14, 2015 19:39
-
-
Save Petethegoat/5137995 to your computer and use it in GitHub Desktop.
fucked up goddamn bullshit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/proc/in_range(source, user) | |
if(get_dist(source, user) <= 1) | |
return 1 | |
return 0 //not in range and not telekinetic | |
/obj/machinery/Topic(href, href_list) | |
..() | |
if(stat & (NOPOWER|BROKEN)) | |
world << "src.stat" | |
return 1 | |
if(usr.restrained() || usr.lying || usr.stat) | |
world << "restrained lying or stat" | |
return 1 | |
if(!(ishuman(usr) || issilicon(usr) || (ismonkey(usr) && ticker && ticker.mode.name == "monkey"))) | |
world << "type" | |
usr << "<span class='notice'>You don't have the dexterity to do this!</span>" | |
return 1 | |
var/norange = 0 | |
if(istype(usr, /mob/living/carbon/human)) | |
var/mob/living/carbon/human/H = usr | |
if(istype(H.l_hand, /obj/item/tk_grab)) | |
norange = 1 | |
else if(istype(H.r_hand, /obj/item/tk_grab)) | |
norange = 1 | |
if(!norange) | |
if(!issilicon(usr)) | |
world << "not silicon" | |
if(!in_range(src, usr)) | |
world << "range" | |
return 1 | |
if(!isturf(loc)) | |
world << "turf" | |
return 1 | |
add_fingerprint(usr) | |
world << "sweet success" | |
return 0 | |
/obj/machinery/sleep_console/Topic(href, href_list) | |
world << "TOPIC WAS CLALED MOTHERUCER" | |
if(..()) | |
return | |
world << "topic RETURNED 0 FROM ..()" | |
usr.set_machine(src) | |
if(connected && connected.occupant) | |
if(connected.occupant.health > 0) | |
if(href_list["inap"]) | |
connected.inject_inap(usr) | |
if(href_list["stox"]) | |
connected.inject_stox(usr) | |
if(href_list["derm"]) | |
connected.inject_dermaline(usr) | |
if(href_list["bic"]) | |
connected.inject_bicaridine(usr) | |
if(href_list["dex"]) | |
connected.inject_dexalin(usr) | |
else | |
if(connected.occupant.health > -100) | |
if(href_list["inap"]) | |
connected.inject_inap(usr) | |
if(href_list["stox"] || href_list["derm"] || href_list["bic"] || href_list["dex"]) | |
usr << "<span class='notice'>ERROR: Subject is not in stable condition for auto-injection.</span>" | |
else | |
usr << "<span class='notice'>ERROR: Subject cannot metabolise chemicals.</span>" | |
if(href_list["refresh"]) | |
updateUsrDialog() | |
add_fingerprint(usr) | |
Output upon clicking a link, while standing next to the sleep console: | |
TOPIC WAS CLALED MOTHERUCER | |
range, turf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment