{index: 7,text: "Dark Souls Blade",classes:'weapon_7',notes:'Increases experience gain by 21%.',str: 21,value:150,canOwn: ((u)->+u.backer?.tier>=70)}
{index: 8,text: "Crystal Blade",classes:'weapon_8',notes:'Increases experience gain by 24%.',str: 24,value:170,canOwn: ((u)->+u.contributor?.level>=4)}
{index: 6,text: "Shade Armor",notes:'Decreases Health loss by 12%.',defense: 12,value:150,canOwn: ((u)->+u.backer?.tier>=45)}
{index: 7,text: "Crystal Armor",notes:'Decreases Health loss by 14%.',defense: 14,value:170,canOwn: ((u)->+u.contributor?.level>=2)}
{index: 6,text: "Shade Helm",notes:'Decreases Health loss by 7%.',defense: 7,value:100,canOwn: ((u)->+u.backer?.tier>=45)}
{index: 7,text: "Crystal Helm",notes:'Decreases Health loss by 8%.',defense: 8,value:120,canOwn: ((u)->+u.contributor?.level>=3)}
{index: 6,text: "Tormented Skull",notes:'Decreases Health loss by 9%.',defense: 9,value:120,canOwn: ((u)->+u.backer?.tier>=45)}
{index: 7,text: "Crystal Shield",notes:'Decreases Health loss by 10%.',defense: 10,value:150,canOwn: ((u)->+u.contributor?.level>=5)}
{index: 0,text: "Practice Bow",notes:'Training weapon. Confers no benefit.',value:0}
{index: 1,text: "Short Bow",notes:'Simple bow best at close ranges. Increases STR by 2.',str: 2,value:20}
{index: 2,text: "Long Bow",notes:'Bow with a strong draw for extra distance. Increases STR by 5.',str: 5,value:50}
{index: 3,text: "Recurve Bow",notes:'Built with advanced techniques. Increases STR by 8.',str: 8,value:80}
{index: 4,text: "Icicle Bow",notes:'Fires arrows of piercing cold. Increases STR by 12.',str: 12,value:120}
{index: 5,text: "Meteor Bow",notes:'Rains flame upon your foes. Increases STR by 16.',str: 16,value:160}
{index: 6,text: "Golden Bow",notes:'As swift as sunlight and as sharp as lightning. Increases STR by 20.',str: 20,value:200}
]
mage: [
{index: 0,text: "Apprentice Staff",notes:'Practice staff. Confers no benefit.',value:0}
{index: 1,text: "Wooden Staff",notes:'Basic implement of carven wood. Increases INT by 3 and PER by 1.',int: 3,per: 1,value:30}
{index: 2,text: "Jeweled Staff",notes:'Focuses power through a precious stone. Increases INT by 6 and PER by 2.',int: 6,per: 2,value:50}
{index: 3,text: "Iron Staff",notes:'Plated in metal to channel heat, cold, and lightning. Increases INT by 9 and PER by 3.',int: 9,per: 3,value:80}
{index: 4,text: "Brass Staff",notes:'As powerful as it is heavy. Increases INT by 12 and PER by 5.',int:12,per: 5,value:120}
{index: 5,text: "Archmage Staff",notes:'Assists in weaving the most complex of spells. Increases INT by 15 and PER by 7.',int: 15,per: 7,value:160}
{index: 6,text: "Golden Staff",notes:'Fashioned of orichalcum, the alchemic gold, mighty and rare. Increases INT by 18 and PER by 9.',int: 18,per: 9,value:200}
items.reroll = type: 'reroll',text: "Re-Roll",notes: "Resets your task values back to 0 (yellow). Useful when everything's red and it's hard to stay alive.",value:0
notes: 'With a crack, flames burst from your staff, scorching a task. You deal much higher damage to the task and gain additional xp.'
cast: (user, target) ->
target.value+=user.stats.int+crit(user)
lightning:
text: 'Lightning Strike'
mana: 15
target: 'task'
notes: 'A bolt a lightning pierces through a task. There is a high chance of a critical hit.'
cast: (user, target) ->
target.value+=user.stats.per*2+crit(user)
frost:
text: 'Chilling Frost'
mana: 35
target: 'party'
notes: "Ice forms of the party's tasks, slowing them down and opening them up to more attacks. Your party gains a buff to xp.",
cast: (user, target) ->
## lasts for 24 hours ##
_.eachtarget,(member) ->
member.stats.buffs.exp = user.stats.int
darkness:
text: 'Shroud of Darkness'
mana: 30
target: 'party'
notes: "Unearthly shadows form and wisp around your party, concealing their presence. Under the shroud, your party can sneak up on tasks, dealing more critical hits.",
cast: (user, target) ->
## lasts for 24 hours ##
_.eachtarget,(member) ->
member.stats.buffs.crit = user.stats.per
warrior:
smash:
text: 'Brutal Smash'
mana: 10
target: 'task'
notes: "You savagely hit a single task with all of your might, beating it into submission. The task's redness decreases."
cast: (user, target) ->
target.value-=user.stat.str
defensiveStance:
text: 'Defensive Stance'
mana: 25
target: 'self'
notes: "You take a moment to relax your body and enter a defensive stance to ready yourself for the tasks' next onslaught. Reduced damage from dailies at the end of the day."
cast: (user, target) ->
## Only affects health loss at cron from dailies ##
user.stats.buffs.con = user.stats.con/2
valorousPresence:
text: 'Valorous Presence'
mana: 20
target: 'party'
notes: "Your presence emboldens the party. Their newfound courage gives them a boost of strength. Party members gain a buff to their STR."
cast: (user, target) ->
## lasts 24 hours ##
_.eachtarget,(member) ->
member.stats.buffs.str = user.stats.str/2
intimidate:
text: 'Intimidating Gaze'
mana: 15
target: 'party'
notes: "Your gaze strikes fear into the hearts of your party's enemies. The party gains a moderate boost to defense."
cast: (user, target) ->
## lasts 24 hours ##
_.eachtarget,(member) ->
member.stats.buffs.con = user.stats.con/2
rogue:
pickPocket:
text: 'Pickpocket'
mana: 10
target: 'task'
notes: "Your nimble fingers run through the task's pockets and 'find' some treasures for yourself. You gain an increased gold bonus on the task and a higher chance of an item drop."
cast: (user, target) ->
user.stats.gp+=user.stats.per*target.value
backStab:
text: 'Backstab'
mana: 15
target: 'task'
notes: "Without a sound, you sweep behind a task and stab it in the back. You deal higher damage to the stat, with a higher chance of a critical hit."
cast: (user, target) ->
target.value-=user.stats.str
crit+=user.stats.per*2
stealth:
text: 'Tools of the Trade'
mana: 20
target: 'party'
notes: "You share your thievery tools with the party to aid them in 'acquiring' more gold. The party's gold bonus for tasks is buffed for a day."
cast: (user, target) ->
## lasts 24 hours ##
_.eachtarget,(member) ->
member.stats.buffs.gp = user.stats.per
speedburst:
text: 'Burst of Speed'
mana: 25
target: 'party'
notes: "You hurry your step and dance circles around your party's enemies. You assist your party, helping them do extra damage to a number of tasks equal to half your strength."
cast: (user, target) ->
# each party member gets this bonus to a number tasks == user.stats.str/2
# the effect lasts 24 hours, or when until the party member has used the effected number of tasks. whichever occurs sooner.
# the 24 hour limit is to help prevent it stacking on a player who has been absent for a long time.
_.eachtarget,(member) ->
member.stats.buffs.str = user.stats.str/2
healer:
heal:
text: 'Healing Light'
mana: 15
target: 'self'
notes: 'Light covers your body, healing your wounds. You gain a boost to your health.'
cast: (user, target) ->
target.stats.hp+=user.stats.con
brightness:
text: 'Searing Brightness'
mana: 15
target: 'self'
notes: "You cast a burst of light that blinds all of your tasks. The redness of your tasks is reduced"
cast: (user, target) ->
target.value-=user.stats.int
protectAura:
text: 'Protective Aura'
mana: 30
target: 'party'
notes: "A magical aura surrounds your party members, protecting them from damage. Your party members gain a buff to their defense."
cast: (user, target) ->
## lasts 24 hours ##
_.eachtarget,(member) ->
member.stats.buffs.con = user.stats.con/2
heallAll:
text: 'Blessing'
mana: 25
target: 'party'
notes: "Soothing light envelops your party and heals them of their injuries. Your party members gain a boost to their health."