mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 11:40:25 +00:00
female armor version bug fix
This commit is contained in:
parent
466256f793
commit
480f589643
1 changed files with 3 additions and 1 deletions
|
|
@ -26,7 +26,9 @@ setupModelFns = (model) ->
|
|||
|
||||
model.fn '_user._armor', '_user.items.armor', '_user.preferences.gender', (armor, gender) ->
|
||||
if gender == 'f'
|
||||
"armor#{armor}_f.png"
|
||||
str = "armor#{armor}_f"
|
||||
version = if parseInt(armor) > 1 then 'v1' #TODO implement different version
|
||||
"#{str}_#{version}.png"
|
||||
else
|
||||
"armor#{armor}_m.png"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue