Merge pull request #14441 from Heroman3003/runtime-fixes

Some runtime fixes
This commit is contained in:
Novacat
2023-02-04 22:15:01 -05:00
committed by CHOMPStation2
parent fb1b9498ad
commit 64b0693f63
4 changed files with 21 additions and 18 deletions

View File

@@ -31,13 +31,13 @@ SUBSYSTEM_DEF(xenoarch)
/datum/controller/subsystem/xenoarch/proc/SetupXenoarch()
for(var/turf/simulated/mineral/M in world)
if(!M.density || (M.z in using_map.xenoarch_exempt_levels))
if(!M.density)
continue
if(isnull(M.geologic_data))
M.geologic_data = new /datum/geosample(M)
if(!prob(XENOARCH_SPAWN_CHANCE))
if((M.z in using_map.xenoarch_exempt_levels) || !prob(XENOARCH_SPAWN_CHANCE))
continue
var/farEnough = 1

View File

@@ -1,12 +1,13 @@
/decl/emote/audible/scream/get_emote_sound(var/atom/user)
var/mob/living/carbon/human/H = user
if(H.get_gender() == FEMALE)
return list(
"sound" = H.species.female_scream_sound,
"vol" = emote_volume
)
else
return list(
"sound" = H.species.male_scream_sound,
"vol" = emote_volume
)
if(ishuman(user))
var/mob/living/carbon/human/H = user
if(H.get_gender() == FEMALE)
return list(
"sound" = H.species.female_scream_sound,
"vol" = emote_volume
)
else
return list(
"sound" = H.species.male_scream_sound,
"vol" = emote_volume
)

View File

@@ -1107,10 +1107,12 @@
to_chat(user, "<span class='notice'>The heating chemicals have already been spent.</span>")
return
has_been_heated = 1
user.visible_message("<span class='notice'>[user] crushes \the [src] package.</span>", "You crush \the [src] package and feel a comfortable heat build up.")
user.visible_message("<span class='notice'>[user] crushes \the [src] package.</span>", "You crush \the [src] package and feel a comfortable heat build up. Now just to wait for it to be ready.")
spawn(200)
to_chat(user, "You think \the [src] is ready to eat about now.")
heat()
if(src)
if(src.loc == user)
to_chat(user, "You think \the [src] is ready to eat about now.")
heat()
/obj/item/weapon/reagent_containers/food/snacks/brainburger
name = "brainburger"

View File

@@ -93,12 +93,12 @@
var/list/custom_cold = H.custom_cold
var/list/custom_heat = H.custom_heat
if(msg_type == ENVIRONMENT_COMFORT_MARKER_COLD && length(cold_discomfort_strings) /*&& !covered*/)
if(custom_cold.len > 0)
if(custom_cold && custom_cold.len > 0)
discomfort_message = pick(custom_cold)
else
discomfort_message = pick(cold_discomfort_strings)
else if(msg_type == ENVIRONMENT_COMFORT_MARKER_HOT && length(heat_discomfort_strings) /*&& covered*/)
if(custom_heat.len > 0)
if(custom_heat && custom_heat.len > 0)
discomfort_message = pick(custom_heat)
else
discomfort_message = pick(heat_discomfort_strings)