Skip to content

Commit

Permalink
Merge branch 'TerminatorMachinesAndMorphlingSlimes' of https://github…
Browse files Browse the repository at this point in the history
….com/Spaghetti-bit/Paradise-LazarusReagentChange into TerminatorMachinesAndMorphlingSlimes
  • Loading branch information
Spaghetti-bit committed Nov 16, 2024
2 parents d2b1971 + 1ebdbfb commit 2b5614e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
6 changes: 3 additions & 3 deletions code/_onclick/hud/hud_datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,11 @@
if(HUD_STYLE_ACTIONHUD) //No HUD
hud_shown = TRUE //Governs behavior of other procs
if(static_inventory.len)
mymob.client.screen -= static_inventory
screenmob.client.screen -= static_inventory
if(toggleable_inventory.len)
mymob.client.screen -= toggleable_inventory
screenmob.client.screen -= toggleable_inventory
if(infodisplay.len)
mymob.client.screen -= infodisplay
screenmob.client.screen -= infodisplay

hud_version = display_hud_version
persistent_inventory_update(screenmob)
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/effects/decals/Cleanable/humans.dm
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
else
animate_levitate(src, -1, rand(30,120))

if(weightless_image.icon_state)
if(weightless_image && weightless_image.icon_state)
icon_state = weightless_image.icon_state

overlays -= weightless_image
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/effects/decals/cleanable.dm
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@

/obj/effect/decal/cleanable/Initialize(mapload)
. = ..()
prepare_huds()
if(should_merge_decal(loc))
return INITIALIZE_HINT_QDEL
var/datum/atom_hud/data/janitor/jani_hud = GLOB.huds[DATA_HUD_JANITOR]
prepare_huds()
jani_hud.add_to_hud(src)
jani_hud_set_sign()
if(random_icon_states && length(src.random_icon_states) > 0)
Expand Down
5 changes: 5 additions & 0 deletions code/modules/atmospherics/gasmixtures/gas_mixture.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
3 changes: 3 additions & 0 deletions code/modules/mob/living/simple_animal/hostile/hostile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions code/modules/mob/mob.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 2b5614e

Please sign in to comment.