mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 11:40:25 +00:00
feat(accessories): add back accessory
This commit is contained in:
parent
33ec10cec7
commit
cdd59adab9
2 changed files with 9 additions and 3 deletions
|
|
@ -10,7 +10,7 @@ moment = require 'moment'
|
|||
###
|
||||
|
||||
classes = ['warrior', 'rogue', 'healer', 'wizard']
|
||||
gearTypes = ['armor', 'weapon', 'shield', 'head']
|
||||
gearTypes = ['armor', 'weapon', 'shield', 'head', 'back']
|
||||
|
||||
events =
|
||||
winter: {start:'2013-12-31',end:'2014-02-01'}
|
||||
|
|
@ -196,6 +196,11 @@ gear =
|
|||
ski: event: events.winter, canOwn: ((u)->u.stats.class is 'rogue' ), text: "Ski-sassin Pole", notes:'Limited Edition 2013 Winter Gear! A weapon capable of destroying hordes of enemies! It also helps the user make very nice parallel turns. Increases STR by 8.', str: 8, value: 90
|
||||
snowflake: event: events.winter, canOwn: ((u)->u.stats.class is 'healer' ), text: "Snowflake Shield", notes:'Limited Edition 2013 Winter Gear! Every shield is unique. Increases CON by 9.', con: 9, value:70
|
||||
|
||||
back:
|
||||
base:
|
||||
0: text: "No Back Accessory", notes:'No Back Accessory.', value:0
|
||||
|
||||
|
||||
###
|
||||
The gear is exported as a tree (defined above), and a flat list (eg, {weapon_healer_1: .., shield_special_0: ...}) since
|
||||
they are needed in different froms at different points in the app
|
||||
|
|
|
|||
|
|
@ -138,8 +138,9 @@ api.updateStore = (user) ->
|
|||
when 'armor' then 2
|
||||
when 'head' then 3
|
||||
when 'shield' then 4
|
||||
when 'potion' then 5
|
||||
else 6
|
||||
when 'back' then 5
|
||||
when 'potion' then 6
|
||||
else 7
|
||||
|
||||
###
|
||||
------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue