Skipping serialization/deserialization of needless Programmable clones.

This commit is contained in:
Nick Winter 2014-08-23 11:16:02 -07:00
parent 0431f70954
commit f2adb7ec7f

View file

@ -91,6 +91,7 @@ module.exports = class God extends CocoClass
userCodeMap = {}
for spellKey, spell of spells
for thangID, spellThang of spell.thangs
continue if spellThang.thang.programmableMethods[spell.name].cloneOf
(userCodeMap[thangID] ?= {})[spell.name] = spellThang.aether.serialize()
userCodeMap