From d98aa768d07dd883057eb9051f91576e05e75fd6 Mon Sep 17 00:00:00 2001 From: Theos Date: Tue, 18 Jun 2024 11:52:23 -0400 Subject: [PATCH] Mob trophies will no longer attempt to drop if there aren't any (#3116) ## About The Pull Request killing 200000 goliaths so I can harvest nothing from them and upgrade my crusher with no trophies ## Why It's Good For The Game runtime I think ## Changelog :cl: fix: mobs will no longer stick around after being butchered sometimes /:cl: Signed-off-by: Theos --- .../living/simple_animal/hostile/mining_mobs/mining_mobs.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/hostile/mining_mobs/mining_mobs.dm b/code/modules/mob/living/simple_animal/hostile/mining_mobs/mining_mobs.dm index eaf546b3f627..19334bc84fcd 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining_mobs/mining_mobs.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining_mobs/mining_mobs.dm @@ -75,7 +75,8 @@ ..(gibbed) /mob/living/simple_animal/hostile/asteroid/proc/spawn_mob_trophy() - butcher_results[mob_trophy] = 1 + if(mob_trophy) + butcher_results[mob_trophy] = 1 /mob/living/simple_animal/hostile/asteroid/handle_temperature_damage() if(bodytemperature < minbodytemp)