mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Merge pull request #14441 from Heroman3003/runtime-fixes
Some runtime fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
/decl/emote/audible/scream/get_emote_sound(var/atom/user)
|
||||
if(ishuman(user))
|
||||
var/mob/living/carbon/human/H = user
|
||||
if(H.get_gender() == FEMALE)
|
||||
return list(
|
||||
|
||||
@@ -1107,8 +1107,10 @@
|
||||
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)
|
||||
if(src)
|
||||
if(src.loc == user)
|
||||
to_chat(user, "You think \the [src] is ready to eat about now.")
|
||||
heat()
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user