mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 08:01:06 +00:00
Fixes various runtimes (#8702)
* Fixes runtime: type mismatch: "30" -= 0 proc name: playsound to (/mob/proc/playsound_to) * Fixes runtime: Cannot read null.name proc name: Toggle Underwear (/mob/living/carbon/human/verb/toggle_underwear) * Fixes runtime: invalid view size proc name: get mobs and objs in view fast (/proc/get_mobs_and_objs_in_view_fast)
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
active_power_usage = 2000
|
active_power_usage = 2000
|
||||||
flags = OPENCONTAINER | NOREACT
|
flags = OPENCONTAINER | NOREACT
|
||||||
clicksound = "button"
|
clicksound = "button"
|
||||||
clickvol = "30"
|
clickvol = 30
|
||||||
|
|
||||||
var/operating = FALSE // Is it on?
|
var/operating = FALSE // Is it on?
|
||||||
var/dirty = 0 // = {0..100} Does it need cleaning?
|
var/dirty = 0 // = {0..100} Does it need cleaning?
|
||||||
|
|||||||
@@ -1778,6 +1778,8 @@
|
|||||||
if(stat)
|
if(stat)
|
||||||
return
|
return
|
||||||
var/datum/category_group/underwear/UWC = input(usr, "Choose underwear:", "Show/hide underwear") as null|anything in global_underwear.categories
|
var/datum/category_group/underwear/UWC = input(usr, "Choose underwear:", "Show/hide underwear") as null|anything in global_underwear.categories
|
||||||
|
if(!UWC)
|
||||||
|
return
|
||||||
var/datum/category_item/underwear/UWI = all_underwear[UWC.name]
|
var/datum/category_item/underwear/UWI = all_underwear[UWC.name]
|
||||||
if(!UWI || UWI.name == "None")
|
if(!UWI || UWI.name == "None")
|
||||||
to_chat(src, "<span class='notice'>You do not have [UWC.gender==PLURAL ? "[UWC.display_name]" : "any [UWC.display_name]"].</span>")
|
to_chat(src, "<span class='notice'>You do not have [UWC.gender==PLURAL ? "[UWC.display_name]" : "any [UWC.display_name]"].</span>")
|
||||||
|
|||||||
@@ -174,7 +174,7 @@
|
|||||||
playsound(user, W.usesound, 100, 1)
|
playsound(user, W.usesound, 100, 1)
|
||||||
if (do_after(user, 20/W.toolspeed))
|
if (do_after(user, 20/W.toolspeed))
|
||||||
new /obj/item/stack/material/steel(get_turf(src.loc), steel_sheet_cost)
|
new /obj/item/stack/material/steel(get_turf(src.loc), steel_sheet_cost)
|
||||||
src.visible_message("\The [user] disassembles \the [src].",
|
user.visible_message("\The [user] disassembles \the [src].",
|
||||||
"You disassemble \the [src].",
|
"You disassemble \the [src].",
|
||||||
"You hear a ratchet.")
|
"You hear a ratchet.")
|
||||||
qdel(src)
|
qdel(src)
|
||||||
|
|||||||
Reference in New Issue
Block a user