mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
[MIRROR] Fixes Codex Cicatrix having infinite charges - Maintainer edition (#2822)
* 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. * Fixes Codex Cicatrix having infinite charges - Maintainer edition Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user