mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 11:40:25 +00:00
check armor/weapon on userObj (shouldnt have to?)
This commit is contained in:
parent
25227abce9
commit
dce251a767
1 changed files with 2 additions and 2 deletions
|
|
@ -38,8 +38,8 @@ get '/', (page, model, next) ->
|
|||
|
||||
# Setup Item Store
|
||||
_view.items =
|
||||
armor: content.items.armor[parseInt(userObj.items.armor) + 1]
|
||||
weapon: content.items.weapon[parseInt(userObj.items.weapon) + 1]
|
||||
armor: content.items.armor[parseInt(userObj.items?.armor || 0) + 1]
|
||||
weapon: content.items.weapon[parseInt(userObj.items?.weapon || 0) + 1]
|
||||
potion: content.items.potion
|
||||
reroll: content.items.reroll
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue