From b478bc68d58e6ccc8e5a730f9a972723e1e6efd7 Mon Sep 17 00:00:00 2001 From: Timberpoes Date: Thu, 21 Jan 2021 14:42:50 +0000 Subject: [PATCH] Fixes Codex Cicatrix having infinite charges - Maintainer edition (#56307) Gets rid of pointless text2num. EK is a path and not an object. Fixes it being used as if it was an object through using initial. --- code/modules/antagonists/eldritch_cult/eldritch_book.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/antagonists/eldritch_cult/eldritch_book.dm b/code/modules/antagonists/eldritch_cult/eldritch_book.dm index 7b3a088ab84..705a3f9d1da 100644 --- a/code/modules/antagonists/eldritch_cult/eldritch_book.dm +++ b/code/modules/antagonists/eldritch_cult/eldritch_book.dm @@ -131,7 +131,7 @@ if(initial(EK.name) != ekname) continue if(cultie.gain_knowledge(EK)) - charge -= text2num(EK.cost) + charge -= initial(EK.cost) return TRUE update_icon() // Not applicable to all objects.