Refactoring of Character class to add effect appliers and removers

This commit is contained in:
Thaum
2014-11-03 11:30:14 +00:00
parent e7f7f75436
commit 25b2a95f14
9 changed files with 139 additions and 93 deletions

View File

@@ -0,0 +1,18 @@
//Skills are bonuses to rolls: "+2" etc.
//They are based off of some ability
Skill = function(ability){
//proficiencies of the form {name: "Jack of all Trades", value: 0.5}
//only the highest is used
this.proficiency = [];
//ability name that this skill uses as base for roll
this.ability = ability;
this.add = [];
this.mul = [];
this.min = [];
this.max = [];
this.advantage = []; //effects granting advantage
this.disadvantage = [];
this.passiveAdd = []; //only added to passive checks
this.fail = []; //all checks are failed
this.conditional = []; //conditional modifiers
}