From a0960653b0bd3913f72475813c0a64602035b462 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Mon, 15 Jul 2024 06:36:56 +0200 Subject: [PATCH] [MIRROR] [NO GBP] Fixes a regression with the no-decal maintenance loot spawner (#28852) * [NO GBP] Fixes a regression with the no-decal maintenance loot spawner (#84896) ## About The Pull Request Accidentally removed the can_spawn proc definition at some point. ## Why It's Good For The Game Fixing the CI. ## Changelog N/A * [NO GBP] Fixes a regression with the no-decal maintenance loot spawner --------- Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com> --- code/game/objects/effects/spawners/random/maintenance.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/game/objects/effects/spawners/random/maintenance.dm b/code/game/objects/effects/spawners/random/maintenance.dm index 997c3bb1f0c..e5bebdef672 100644 --- a/code/game/objects/effects/spawners/random/maintenance.dm +++ b/code/game/objects/effects/spawners/random/maintenance.dm @@ -9,6 +9,11 @@ /// decals such as ashes will cause NeverShouldHaveComeHere() to fail on such turfs, which creates annoying rng based CI failures /obj/effect/spawner/random/maintenance/no_decals +/obj/effect/spawner/random/maintenance/no_decals/can_spawn(loot) + if(ispath(loot, /obj/effect/decal)) + return FALSE + return ..() + /obj/effect/spawner/random/maintenance/examine(mob/user) . = ..() . += span_info("This spawner has an effective loot count of [get_effective_lootcount()].")