From 2c2dc377fe6d682fe1a2bcda4d0887b153bf8ecc Mon Sep 17 00:00:00 2001 From: Mikhail Dzianishchyts Date: Fri, 10 May 2024 22:43:00 +0300 Subject: [PATCH] Remove EMP spellbook from random pool (#25304) * Remove EMP spellbook from random pool * Wait, that won't work * Update code/game/gamemodes/wizard/spellbook.dm Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> --------- Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> --- code/game/gamemodes/wizard/spellbook.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/gamemodes/wizard/spellbook.dm b/code/game/gamemodes/wizard/spellbook.dm index 022c69dc6aa..d56cf4ad226 100644 --- a/code/game/gamemodes/wizard/spellbook.dm +++ b/code/game/gamemodes/wizard/spellbook.dm @@ -1151,7 +1151,7 @@ /obj/item/spellbook/oneuse/random/initialize() . = ..() - var/static/banned_spells = list(/obj/item/spellbook/oneuse/mime, /obj/item/spellbook/oneuse/mime/fingergun, /obj/item/spellbook/oneuse/mime/fingergun/fake, /obj/item/spellbook/oneuse/mime/greaterwall) + var/static/list/banned_spells = typesof(/obj/item/spellbook/oneuse/mime, /obj/item/spellbook/oneuse/emp) var/real_type = pick(subtypesof(/obj/item/spellbook/oneuse) - banned_spells) new real_type(loc) qdel(src)