mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-10-27 11:12:28 +01:00
allow Orb of Rebirth to deequip all types of equipment, even those not invented yet
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user