Perk Rolls

if currentWeapon.agility>=7 && currentWeapon.endurance <=5 { //travel light canDoublejump=true; currentWeapon.perks |=$08 //allows you to double jump } if currentWeapon.luck>=6 { if currentWeapon.endurance >=4 && currentWeapon.endurance <6 { //toughness //gives you increased physical defense if currentWeapon.agility>=4{ basePDef=1.1; currentWeapon.perks |=$01 }        else { basePDef=1.2; currentWeapon.perks |=$02 }        physicalDefenseMod=basePDef; }    else if currentWeapon.endurance >=6{ if currentWeapon.agility>=4{ basePDef=1.2; currentWeapon.perks |=$02 }        else { basePDef=1.3; currentWeapon.perks |=$04 }        physicalDefenseMod=basePDef; } } if currentWeapon.luck>=7 && currentWeapon.charisma>=4 { //bloody mess //increases all damage you do and makes all your kills explosive kills currentWeapon.perks |=$10 } if currentWeapon.charisma>=5 && currentWeapon.endurance>=3 && currentWeapon.perception>=3 { //faster healing //regain a bit more hp with stimpacks currentWeapon.perks |=$20 } if currentWeapon.charisma>=6 && (currentWeapon.strength<=5 || currentWeapon.intelligence<=5) { //cult of personality //increases heal aura boost currentWeapon.perks |=$40 } if currentWeapon.charisma<=6 && currentWeapon.luck>=5 { //scrounger //regain 1 ammo whenever you pick up a health pickup while you have less than max ammo and hp    currentWeapon.perks |=$80 } if currentWeapon.strength<=6 && currentWeapon.luck>=5 && currentWeapon.agility>=4 && currentWeapon.perception>=4 { //weapon handling //less spread on your ranged weapon currentWeapon.perks |=$100 } if currentWeapon.agility>=5 && currentWeapon.perception>=7 { //bonus rate of fire //faster refire rate on your ranged weapon currentWeapon.perks |=$200 } if currentWeapon.agility>=5 && currentWeapon.luck>=4 && currentWeapon.intelligence<=6{ //rapid reload //faster ammo reload on ranged weapon currentWeapon.perks |=$400 } if currentWeapon.charisma<=4 && (currentWeapon.strength>=6 || currentWeapon.endurance>=6) { //terrifying presence //decreases nearby enemy physical and elemental offense currentWeapon.perks |=$800 } if currentWeapon.strength>=6 && currentWeapon.endurance>=7 && currentWeapon.agility>=4{ //super slam //gives you some stun on your melee attacks currentWeapon.perks |=$1000 } if currentWeapon.endurance>=7 && currentWeapon.agility>=7 && currentWeapon.charisma>=4{ //slayer //increases melee weapon damage currentWeapon.perks |=$2000 } if currentWeapon.perception>=7 && currentWeapon.agility>=7 && currentWeapon.charisma>=4{ //sniper //increases ranged weapon damage currentWeapon.perks |=$4000 } if currentWeapon.luck>=8 && currentWeapon.charisma<=3 && currentWeapon.agility>=7{ //grim reaper's sprint //gives you life leech on your ranged and melee attacks currentWeapon.perks |=$8000 }