From f43576f52605efa7677948194115a9647ae5053b Mon Sep 17 00:00:00 2001 From: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Date: Tue, 4 Nov 2025 01:01:58 +0100 Subject: [PATCH] [NO GBP] Fixes raptor eggs runtiming when spawned by non-raptors (#93745) ## About The Pull Request No idea how this passed C&D in the original PR's CI, but eggs that don't get stats assigned immediately would start throwing runtimes from trying to access their growth modifier. ## Changelog :cl: fix: Fixed raptor eggs runtiming when spawned by non-raptors /:cl: --- code/modules/mob/living/basic/lavaland/raptor/raptor_egg.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/basic/lavaland/raptor/raptor_egg.dm b/code/modules/mob/living/basic/lavaland/raptor/raptor_egg.dm index 698dafac6c2..2f038f02e64 100644 --- a/code/modules/mob/living/basic/lavaland/raptor/raptor_egg.dm +++ b/code/modules/mob/living/basic/lavaland/raptor/raptor_egg.dm @@ -33,7 +33,7 @@ if (!isturf(loc) || length(GLOB.raptor_population) >= MAX_RAPTOR_POP) return - var/growth_value = rand(min_growth_rate, max_growth_rate) * seconds_per_tick * (1 + inherited_stats.growth_modifier) + var/growth_value = rand(min_growth_rate, max_growth_rate) * seconds_per_tick * (1 + inherited_stats?.growth_modifier) // Slower growth off hot lavaland if (!SSmapping.level_trait(z, ZTRAIT_ASHSTORM)) growth_value *= 0.75