mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 11:34:19 +01:00
Fixes a bunch of runtimes (#27363)
* hjnbujihbhuji * uioybgyub * Fixes a bunch of crunchy runtimes
This commit is contained in:
@@ -664,6 +664,9 @@ What are the archived variables for?
|
||||
var/total_agent_b = 0
|
||||
|
||||
for(var/datum/gas_mixture/G as anything in mixtures)
|
||||
if(!istype(G))
|
||||
stack_trace("share_many_airs had [G] in mixtures ([json_encode(mixtures)])")
|
||||
continue
|
||||
total_volume += G.volume
|
||||
var/heat_capacity = G.heat_capacity()
|
||||
total_heat_capacity += heat_capacity
|
||||
@@ -685,6 +688,8 @@ What are the archived variables for?
|
||||
|
||||
//Update individual gas_mixtures by volume ratio
|
||||
for(var/datum/gas_mixture/G as anything in mixtures)
|
||||
if(!istype(G))
|
||||
continue
|
||||
G.private_oxygen = total_oxygen * G.volume / total_volume
|
||||
G.private_nitrogen = total_nitrogen * G.volume / total_volume
|
||||
G.private_toxins = total_toxins * G.volume / total_volume
|
||||
|
||||
@@ -472,6 +472,9 @@
|
||||
A.attack_animal(src)//Bang on it till we get out
|
||||
|
||||
/mob/living/simple_animal/hostile/proc/FindHidden()
|
||||
if(QDELETED(target))
|
||||
LoseTarget()
|
||||
return
|
||||
if(istype(target.loc, /obj/structure/closet) || istype(target.loc, /obj/machinery/disposal) || istype(target.loc, /obj/machinery/sleeper) || istype(target.loc, /obj/machinery/bodyscanner) || istype(target.loc, /obj/machinery/recharge_station))
|
||||
var/atom/A = target.loc
|
||||
Goto(A,move_to_delay,minimum_distance)
|
||||
|
||||
@@ -613,6 +613,8 @@ GLOBAL_LIST_INIT(slot_equipment_priority, list( \
|
||||
DEFAULT_QUEUE_OR_CALL_VERB(VERB_CALLBACK(src, PROC_REF(run_examinate), A))
|
||||
|
||||
/mob/proc/run_examinate(atom/A)
|
||||
if(QDELETED(A))
|
||||
return
|
||||
if(A.invisibility > see_invisible)
|
||||
A = get_turf(A)
|
||||
if(!has_vision(information_only = TRUE) && !isobserver(src))
|
||||
|
||||
Reference in New Issue
Block a user