mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Merge branch 'master' of https://github.com/Baystation12/Baystation12 into dev
This commit is contained in:
@@ -492,6 +492,17 @@ var/global/datum/controller/occupations/job_master
|
|||||||
H.internal = H.l_hand
|
H.internal = H.l_hand
|
||||||
H.internals.icon_state = "internal1"
|
H.internals.icon_state = "internal1"
|
||||||
|
|
||||||
|
if(istype(H)) //give humans wheelchairs, if they need them.
|
||||||
|
var/datum/organ/external/l_foot = H.get_organ("l_foot")
|
||||||
|
var/datum/organ/external/r_foot = H.get_organ("r_foot")
|
||||||
|
if((!l_foot || l_foot.status & ORGAN_DESTROYED) && (!r_foot || r_foot.status & ORGAN_DESTROYED))
|
||||||
|
var/obj/structure/stool/bed/chair/wheelchair/W = new /obj/structure/stool/bed/chair/wheelchair(H.loc)
|
||||||
|
H.buckled = W
|
||||||
|
H.update_canmove()
|
||||||
|
W.dir = H.dir
|
||||||
|
W.buckled_mob = H
|
||||||
|
W.add_fingerprint(H)
|
||||||
|
|
||||||
H << "<B>You are the [alt_title ? alt_title : rank].</B>"
|
H << "<B>You are the [alt_title ? alt_title : rank].</B>"
|
||||||
H << "<b>As the [alt_title ? alt_title : rank] you answer directly to [job.supervisors]. Special circumstances may change this.</b>"
|
H << "<b>As the [alt_title ? alt_title : rank] you answer directly to [job.supervisors]. Special circumstances may change this.</b>"
|
||||||
H << "<b>To speak on your department's radio channel use :h. For the use of other channels, examine your headset.</b>"
|
H << "<b>To speak on your department's radio channel use :h. For the use of other channels, examine your headset.</b>"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/obj/machinery/ai_slipper
|
/obj/machinery/ai_slipper
|
||||||
name = "AI Liquid Dispenser"
|
name = "\improper AI Liquid Dispenser"
|
||||||
icon = 'icons/obj/device.dmi'
|
icon = 'icons/obj/device.dmi'
|
||||||
icon_state = "motion3"
|
icon_state = "motion0"
|
||||||
layer = 3
|
layer = 3
|
||||||
anchored = 1.0
|
anchored = 1.0
|
||||||
var/uses = 20
|
var/uses = 20
|
||||||
@@ -13,15 +13,19 @@
|
|||||||
var/cooldown_on = 0
|
var/cooldown_on = 0
|
||||||
req_access = list(access_ai_upload)
|
req_access = list(access_ai_upload)
|
||||||
|
|
||||||
|
/obj/machinery/ai_slipper/New()
|
||||||
|
..()
|
||||||
|
update_icon()
|
||||||
|
|
||||||
/obj/machinery/ai_slipper/power_change()
|
/obj/machinery/ai_slipper/power_change()
|
||||||
..()
|
..()
|
||||||
if(stat & BROKEN)
|
update_icon()
|
||||||
return
|
|
||||||
|
/obj/machinery/ai_slipper/update_icon()
|
||||||
|
if (stat & NOPOWER || stat & BROKEN)
|
||||||
|
icon_state = "motion0"
|
||||||
else
|
else
|
||||||
if (stat & NOPOWER)
|
icon_state = disabled ? "motion0" : "motion3"
|
||||||
icon_state = "motion0"
|
|
||||||
else
|
|
||||||
icon_state = initial(icon_state)
|
|
||||||
|
|
||||||
/obj/machinery/ai_slipper/proc/setState(var/enabled, var/uses)
|
/obj/machinery/ai_slipper/proc/setState(var/enabled, var/uses)
|
||||||
src.disabled = disabled
|
src.disabled = disabled
|
||||||
@@ -90,7 +94,7 @@
|
|||||||
return
|
return
|
||||||
if (href_list["toggleOn"])
|
if (href_list["toggleOn"])
|
||||||
src.disabled = !src.disabled
|
src.disabled = !src.disabled
|
||||||
icon_state = src.disabled? "motion0":"motion3"
|
update_icon()
|
||||||
if (href_list["toggleUse"])
|
if (href_list["toggleUse"])
|
||||||
if(cooldown_on || disabled)
|
if(cooldown_on || disabled)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -51,11 +51,12 @@
|
|||||||
sleep(50)
|
sleep(50)
|
||||||
close()
|
close()
|
||||||
return
|
return
|
||||||
|
var/mob/M = AM // we've returned by here if M is not a mob
|
||||||
if (!( ticker ))
|
if (!( ticker ))
|
||||||
return
|
return
|
||||||
if (src.operating)
|
if (src.operating)
|
||||||
return
|
return
|
||||||
if (src.density && src.allowed(AM))
|
if (src.density && !M.small && src.allowed(AM))
|
||||||
open()
|
open()
|
||||||
if(src.check_access(null))
|
if(src.check_access(null))
|
||||||
sleep(50)
|
sleep(50)
|
||||||
|
|||||||
@@ -336,8 +336,7 @@
|
|||||||
user << "\red God damnit!"
|
user << "\red God damnit!"
|
||||||
|
|
||||||
W.add_fingerprint(user)
|
W.add_fingerprint(user)
|
||||||
handle_item_insertion(W)
|
return handle_item_insertion(W)
|
||||||
return
|
|
||||||
|
|
||||||
/obj/item/weapon/storage/dropped(mob/user as mob)
|
/obj/item/weapon/storage/dropped(mob/user as mob)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1596,17 +1596,6 @@ datum/preferences
|
|||||||
|
|
||||||
else continue
|
else continue
|
||||||
|
|
||||||
// Wheelchair necessary?
|
|
||||||
var/datum/organ/external/l_foot = character.get_organ("l_foot")
|
|
||||||
var/datum/organ/external/r_foot = character.get_organ("r_foot")
|
|
||||||
if((!l_foot || l_foot.status & ORGAN_DESTROYED) && (!r_foot || r_foot.status & ORGAN_DESTROYED))
|
|
||||||
var/obj/structure/stool/bed/chair/wheelchair/W = new /obj/structure/stool/bed/chair/wheelchair (character.loc)
|
|
||||||
character.buckled = W
|
|
||||||
character.update_canmove()
|
|
||||||
W.dir = character.dir
|
|
||||||
W.buckled_mob = character
|
|
||||||
W.add_fingerprint(character)
|
|
||||||
|
|
||||||
if(underwear > underwear_m.len || underwear < 1)
|
if(underwear > underwear_m.len || underwear < 1)
|
||||||
underwear = 0 //I'm sure this is 100% unnecessary, but I'm paranoid... sue me. //HAH NOW NO MORE MAGIC CLONING UNDIES
|
underwear = 0 //I'm sure this is 100% unnecessary, but I'm paranoid... sue me. //HAH NOW NO MORE MAGIC CLONING UNDIES
|
||||||
character.underwear = underwear
|
character.underwear = underwear
|
||||||
|
|||||||
@@ -342,7 +342,7 @@
|
|||||||
..(over_object)
|
..(over_object)
|
||||||
|
|
||||||
/obj/item/clothing/tie/storage/attackby(obj/item/W as obj, mob/user as mob)
|
/obj/item/clothing/tie/storage/attackby(obj/item/W as obj, mob/user as mob)
|
||||||
hold.attackby(W, user)
|
return hold.attackby(W, user)
|
||||||
|
|
||||||
/obj/item/clothing/tie/storage/emp_act(severity)
|
/obj/item/clothing/tie/storage/emp_act(severity)
|
||||||
hold.emp_act(severity)
|
hold.emp_act(severity)
|
||||||
|
|||||||
@@ -400,6 +400,7 @@
|
|||||||
src.forceMove(card)
|
src.forceMove(card)
|
||||||
card.forceMove(card.loc)
|
card.forceMove(card.loc)
|
||||||
canmove = 0
|
canmove = 0
|
||||||
|
icon_state = "[chassis]"
|
||||||
|
|
||||||
/mob/living/silicon/pai/start_pulling(var/atom/movable/AM)
|
/mob/living/silicon/pai/start_pulling(var/atom/movable/AM)
|
||||||
|
|
||||||
@@ -439,4 +440,4 @@
|
|||||||
|
|
||||||
// No binary for pAIs.
|
// No binary for pAIs.
|
||||||
/mob/living/silicon/pai/binarycheck()
|
/mob/living/silicon/pai/binarycheck()
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
@@ -122,6 +122,8 @@
|
|||||||
return
|
return
|
||||||
var/soft = href_list["software"]
|
var/soft = href_list["software"]
|
||||||
var/sub = href_list["sub"]
|
var/sub = href_list["sub"]
|
||||||
|
if(!soft && !sub)
|
||||||
|
return
|
||||||
if(soft)
|
if(soft)
|
||||||
src.screen = soft
|
src.screen = soft
|
||||||
if(sub)
|
if(sub)
|
||||||
@@ -670,7 +672,7 @@
|
|||||||
dat += "<ul>"
|
dat += "<ul>"
|
||||||
if(!pda.toff)
|
if(!pda.toff)
|
||||||
for (var/obj/item/device/pda/P in sortAtom(PDAs))
|
for (var/obj/item/device/pda/P in sortAtom(PDAs))
|
||||||
if (!P.owner||P.toff||P == src.pda) continue
|
if (!P.owner||P.toff||P == src.pda||P.hidden) continue
|
||||||
dat += "<li><a href='byond://?src=\ref[src];software=pdamessage;target=\ref[P]'>[P]</a>"
|
dat += "<li><a href='byond://?src=\ref[src];software=pdamessage;target=\ref[P]'>[P]</a>"
|
||||||
dat += "</li>"
|
dat += "</li>"
|
||||||
dat += "</ul>"
|
dat += "</ul>"
|
||||||
|
|||||||
@@ -95,7 +95,10 @@
|
|||||||
return 1
|
return 1
|
||||||
|
|
||||||
if(href_list["ready"])
|
if(href_list["ready"])
|
||||||
ready = !ready
|
if(!ticker || ticker.current_state <= GAME_STATE_PREGAME) // Make sure we don't ready up after the round has started
|
||||||
|
ready = !ready
|
||||||
|
else
|
||||||
|
ready = 0
|
||||||
|
|
||||||
if(href_list["refresh"])
|
if(href_list["refresh"])
|
||||||
src << browse(null, "window=playersetup") //closes the player setup window
|
src << browse(null, "window=playersetup") //closes the player setup window
|
||||||
|
|||||||
@@ -40,6 +40,12 @@
|
|||||||
pixel_y = rand(-8, 8)
|
pixel_y = rand(-8, 8)
|
||||||
pixel_x = rand(-9, 9)
|
pixel_x = rand(-9, 9)
|
||||||
stamps = ""
|
stamps = ""
|
||||||
|
|
||||||
|
if(info != initial(info))
|
||||||
|
info = html_encode(info)
|
||||||
|
info = replacetext(info, "\n", "<BR>")
|
||||||
|
info = parsepencode(info)
|
||||||
|
|
||||||
spawn(2)
|
spawn(2)
|
||||||
update_icon()
|
update_icon()
|
||||||
updateinfolinks()
|
updateinfolinks()
|
||||||
@@ -198,7 +204,7 @@
|
|||||||
t = replacetext(t, "\[/u\]", "</U>")
|
t = replacetext(t, "\[/u\]", "</U>")
|
||||||
t = replacetext(t, "\[large\]", "<font size=\"4\">")
|
t = replacetext(t, "\[large\]", "<font size=\"4\">")
|
||||||
t = replacetext(t, "\[/large\]", "</font>")
|
t = replacetext(t, "\[/large\]", "</font>")
|
||||||
t = replacetext(t, "\[sign\]", "<font face=\"[signfont]\"><i>[user.real_name]</i></font>")
|
t = replacetext(t, "\[sign\]", "<font face=\"[signfont]\"><i>[user ? user.real_name : "Anonymous"]</i></font>")
|
||||||
t = replacetext(t, "\[field\]", "<span class=\"paper_field\"></span>")
|
t = replacetext(t, "\[field\]", "<span class=\"paper_field\"></span>")
|
||||||
|
|
||||||
t = replacetext(t, "\[h1\]", "<H1>")
|
t = replacetext(t, "\[h1\]", "<H1>")
|
||||||
@@ -223,7 +229,7 @@
|
|||||||
t = replacetext(t, "\[cell\]", "<td>")
|
t = replacetext(t, "\[cell\]", "<td>")
|
||||||
t = replacetext(t, "\[logo\]", "<img src = http://baystation12.net/wiki/logo.png>")
|
t = replacetext(t, "\[logo\]", "<img src = http://baystation12.net/wiki/logo.png>")
|
||||||
|
|
||||||
t = "<font face=\"[deffont]\" color=[P.colour]>[t]</font>"
|
t = "<font face=\"[deffont]\" color=[P ? P.colour : "black"]>[t]</font>"
|
||||||
else // If it is a crayon, and he still tries to use these, make them empty!
|
else // If it is a crayon, and he still tries to use these, make them empty!
|
||||||
t = replacetext(t, "\[*\]", "")
|
t = replacetext(t, "\[*\]", "")
|
||||||
t = replacetext(t, "\[hr\]", "")
|
t = replacetext(t, "\[hr\]", "")
|
||||||
@@ -237,7 +243,7 @@
|
|||||||
t = replacetext(t, "\[cell\]", "")
|
t = replacetext(t, "\[cell\]", "")
|
||||||
t = replacetext(t, "\[logo\]", "")
|
t = replacetext(t, "\[logo\]", "")
|
||||||
|
|
||||||
t = "<font face=\"[crayonfont]\" color=[P.colour]><b>[t]</b></font>"
|
t = "<font face=\"[crayonfont]\" color=[P ? P.colour : "black"]><b>[t]</b></font>"
|
||||||
|
|
||||||
// t = replacetext(t, "#", "") // Junk converted to nothing!
|
// t = replacetext(t, "#", "") // Junk converted to nothing!
|
||||||
|
|
||||||
|
|||||||
@@ -20,16 +20,18 @@
|
|||||||
return src.interact(user)
|
return src.interact(user)
|
||||||
|
|
||||||
/obj/item/device/ano_scanner/interact(var/mob/user as mob)
|
/obj/item/device/ano_scanner/interact(var/mob/user as mob)
|
||||||
var/message = "Background radiation levels detected."
|
|
||||||
if(world.time - last_scan_time >= scan_delay)
|
if(world.time - last_scan_time >= scan_delay)
|
||||||
spawn(0)
|
spawn(0)
|
||||||
scan()
|
scan()
|
||||||
if(nearest_artifact_distance >= 0)
|
|
||||||
message = "Exotic energy detected on wavelength '[nearest_artifact_id]' in a radius of [nearest_artifact_distance]m"
|
|
||||||
else
|
|
||||||
message = "Scanning array is recharging."
|
|
||||||
|
|
||||||
user << "<span class='info'>[message]</span>"
|
if(!user) return
|
||||||
|
|
||||||
|
if(nearest_artifact_distance >= 0)
|
||||||
|
user << "Exotic energy detected on wavelength '[nearest_artifact_id]' in a radius of [nearest_artifact_distance]m"
|
||||||
|
else
|
||||||
|
user << "Background radiation levels detected."
|
||||||
|
else
|
||||||
|
user << "Scanning array is recharging."
|
||||||
|
|
||||||
/obj/item/device/ano_scanner/proc/scan()
|
/obj/item/device/ano_scanner/proc/scan()
|
||||||
set background = 1
|
set background = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user