From cdd59adab93e3f959232d394e508656dcb81c00c Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Sat, 22 Feb 2014 20:40:50 -0800 Subject: [PATCH] feat(accessories): add back accessory --- script/content.coffee | 7 ++++++- script/index.coffee | 5 +++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/script/content.coffee b/script/content.coffee index da500fe6c5..84c6ae7476 100644 --- a/script/content.coffee +++ b/script/content.coffee @@ -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 diff --git a/script/index.coffee b/script/index.coffee index f46f8afbd8..9fbce33d58 100644 --- a/script/index.coffee +++ b/script/index.coffee @@ -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 ### ------------------------------------------------------