mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Fixes a few runtimes
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
else
|
||||
return 1
|
||||
var/obj/item/organ/external/O = M.get_organ(user.zone_selected)
|
||||
if((is_sharp(src) || (isscrewdriver(src) && O.is_robotic())) && user.a_intent == INTENT_HELP)
|
||||
if((is_sharp(src) || (isscrewdriver(src) && O?.is_robotic())) && user.a_intent == INTENT_HELP)
|
||||
if(!attempt_initiate_surgery(src, M, user))
|
||||
return FALSE
|
||||
else
|
||||
|
||||
@@ -421,13 +421,13 @@
|
||||
return FALSE
|
||||
|
||||
/obj/structure/lattice/catwalk/swarmer_act(mob/living/simple_animal/hostile/swarmer/S)
|
||||
. = ..()
|
||||
var/turf/here = get_turf(src)
|
||||
for(var/A in here.contents)
|
||||
var/obj/structure/cable/C = A
|
||||
if(istype(C))
|
||||
to_chat(S, "<span class='warning'>Disrupting the power grid would bring no benefit to us. Aborting.</span>")
|
||||
return FALSE
|
||||
return ..()
|
||||
|
||||
/obj/item/deactivated_swarmer/IntegrateAmount()
|
||||
return 50
|
||||
|
||||
@@ -37,6 +37,9 @@
|
||||
cuff(C, user)
|
||||
|
||||
/obj/item/restraints/handcuffs/proc/cuff(mob/living/carbon/C, mob/user, remove_src = TRUE)
|
||||
if(!istype(C)) // Shouldn't be able to cuff anything but carbons.
|
||||
return
|
||||
|
||||
if(ishuman(C))
|
||||
var/mob/living/carbon/human/H = C
|
||||
if(!(H.has_left_hand() || H.has_right_hand()))
|
||||
|
||||
@@ -187,7 +187,7 @@ GLOBAL_LIST_INIT(icons_to_ignore_at_floor_init, list("damaged1","damaged2","dama
|
||||
if(T.turf_type == type)
|
||||
return
|
||||
var/obj/item/thing = user.get_inactive_hand()
|
||||
if(!prying_tool_list.Find(thing.tool_behaviour))
|
||||
if(!thing || !prying_tool_list.Find(thing.tool_behaviour))
|
||||
return
|
||||
var/turf/simulated/floor/plating/P = pry_tile(thing, user, TRUE)
|
||||
if(!istype(P))
|
||||
|
||||
Reference in New Issue
Block a user