Add back morph easter egg

This commit is contained in:
hppeng 2022-06-21 22:53:04 -07:00
parent 651ae9f3d5
commit e4466d8095

View file

@ -178,6 +178,24 @@ class ItemInputNode extends InputNode {
return item;
}
}
else if (this.none_item.statMap.get('category') === 'weapon' && item_text.startsWith("Morph-")) {
let replace_items = [ "Morph-Stardust",
"Morph-Steel",
"Morph-Iron",
"Morph-Gold",
"Morph-Topaz",
"Morph-Emerald",
"Morph-Amethyst",
"Morph-Ruby",
item_text.substring(6)
]
for (const [i, x] of zip2(equipment_inputs, replace_items)) { setValue(i, x); }
// NOTE: DO NOT REORDER FOR PERFORMANCE REASONS
for (const node of item_nodes) { node.mark_dirty(); }
for (const node of item_nodes) { node.update(); }
}
return null;
}
}