allow Orb of Rebirth to deequip all types of equipment, even those not invented yet

This commit is contained in:
Alice Harris
2014-08-30 10:25:02 +10:00
parent a1abb5a8df
commit 004ef8809e

View File

@@ -461,6 +461,7 @@ api.wrap = (user, main=true) ->
# Deequip character, set back to base armor and training sword
gear = user.items.gear
_.each ['equipped', 'costume'], (type) ->
gear[type] = {}; # deequip weapon, eyewear, headAccessory, etc, plus future new types
gear[type].armor = 'armor_base_0'
gear[type].weapon = 'weapon_warrior_0'
gear[type].head = 'head_base_0'