mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 07:08:00 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user