From 0c2f0a99d538781347ae4d8d8a666b0a844af175 Mon Sep 17 00:00:00 2001 From: Detective Google <48196179+Detective-Google@users.noreply.github.com> Date: Sun, 19 Apr 2020 17:18:40 -0500 Subject: [PATCH] fixes the fact that some citadel null rods aren't null rod subtypes --- code/game/objects/items/holy_weapons.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/game/objects/items/holy_weapons.dm b/code/game/objects/items/holy_weapons.dm index 5c926e4ca9..171b5a465a 100644 --- a/code/game/objects/items/holy_weapons.dm +++ b/code/game/objects/items/holy_weapons.dm @@ -248,9 +248,11 @@ /obj/item/nullrod/proc/reskin_holy_weapon(mob/living/L) if(GLOB.holy_weapon_type) return + var/obj/item/holy_weapon + var/list/holy_weapons_list = subtypesof(/obj/item/nullrod) + list(HOLY_WEAPONS) var/list/display_names = list() var/list/nullrod_icons = list() - for(var/V in typesof(/obj/item/nullrod)) + for(var/V in holy_weapons_list) var/obj/item/nullrod/rodtype = V if (initial(rodtype.chaplain_spawnable)) display_names[initial(rodtype.name)] = rodtype @@ -263,7 +265,7 @@ return var/A = display_names[choice] // This needs to be on a separate var as list member access is not allowed for new - var/obj/item/nullrod/holy_weapon = new A + holy_weapon = new A GLOB.holy_weapon_type = holy_weapon.type