diff --git a/dist/habitrpg-shared.js b/dist/habitrpg-shared.js index e479d4159d..c042dfcaf4 100644 --- a/dist/habitrpg-shared.js +++ b/dist/habitrpg-shared.js @@ -9782,15 +9782,6 @@ var global=self;/** var _ref; return +((_ref = u.backer) != null ? _ref.tier : void 0) >= 300; }) - }, - candycane: { - text: "Candy Cane Hat", - notes: 'A hat adorned in candy, a wintery treat!', - value: 10, - canOwn: (function(u) { - var _ref; - return moment((_ref = u.auth.timestamps) != null ? _ref.created : void 0).isBefore(new Date('01/10/2014')); - }) } } }, @@ -10263,9 +10254,14 @@ var global=self;/** mana: 0, value: 1, target: 'user', - notes: "Throw a snowball at a party member! What could possibly go wrong?", + notes: "Throw a snowball at a party member, what could possibly go wrong? Lasts until member's new day.", cast: function(user, target) { + var _base; target.stats.buffs.snowball = true; + if ((_base = target.achievements).snowball == null) { + _base.snowball = 0; + } + target.achievements.snowball++; return user.items.special.snowball--; } }, diff --git a/script/content.coffee b/script/content.coffee index 729e3bdaff..7f7b879c35 100644 --- a/script/content.coffee +++ b/script/content.coffee @@ -131,7 +131,7 @@ gear = 0: text: "Shade Helm", notes:'Blood and ash, lava and obsidian give this helm its imagery and power. Increases INT by 20.', int: 20, value:150, canOwn: ((u)-> +u.backer?.tier >= 45) 1: text: "Crystal Helm", notes:'The favored crown of those who lead by example. Increases all attributes by 6.', con: 6, str: 6, per: 6, int: 6, value:170, canOwn: ((u)-> +u.contributor?.level >= 3) 2: text: "Nameless Helm", notes:'A testament to those who gave of themselves while asking nothing in return. Increases INT and STR by 25 each.', int: 25, str: 25, value:200, canOwn: ((u)-> +u.backer?.tier >= 300) - candycane: text: "Candy Cane Hat", notes: 'A hat adorned in candy, a wintery treat!', value:10, canOwn: ((u)-> moment(u.auth.timestamps?.created).isBefore(new Date '01/10/2014')) + #candycane: text: "Candy Cane Hat", notes: 'A hat adorned in candy, a wintery treat!', value:10, canOwn: ((u)-> moment(u.auth.timestamps?.created).isBefore(new Date '01/10/2014')) shield: base: @@ -390,6 +390,8 @@ api.spells = notes: "Throw a snowball at a party member, what could possibly go wrong? Lasts until member's new day." cast: (user, target) -> target.stats.buffs.snowball = true + target.achievements.snowball ?= 0 + target.achievements.snowball++ user.items.special.snowball-- salt: