[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
🆑
fix: Fixed raptor eggs runtiming when spawned by non-raptors
/🆑
This commit is contained in:
SmArtKar
2025-11-04 01:01:58 +01:00
committed by GitHub
parent f1739d99cd
commit f43576f526
@@ -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