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.
This commit is contained in:
Timberpoes
2021-01-21 14:42:50 +00:00
committed by GitHub
parent 51a80885ea
commit b478bc68d5
@@ -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.