mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 00:55:20 +01:00
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:
@@ -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