add correct message for equipping equipment
Currently, when you put on equipment, you see the messageBought notification. There was no messageEquipped notification in the code so I've added one. I've updated ALL locale files IN ENGLISH, following the convention already in place for using English when there is no translation (e.g., locales/pl/messages.json, locales/sv/messages.json).
This commit is contained in:
+1
-1
@@ -649,7 +649,7 @@ api.wrap = (user, main=true) ->
|
||||
item = content.gear.flat[key]
|
||||
if user.items.gear[type][item.type] is key
|
||||
user.items.gear[type][item.type] = "#{item.type}_base_0"
|
||||
message = i18n.t('messageBought', {itemText: item.text(req.language)}, req.language)
|
||||
message = i18n.t('messageEquipped', {itemText: item.text(req.language)}, req.language)
|
||||
else
|
||||
user.items.gear[type][item.type] = item.key
|
||||
message = user.fns.handleTwoHanded(item,type,req)
|
||||
|
||||
Reference in New Issue
Block a user