Added indices, fixed bugs

This commit is contained in:
Stefan Zermatten
2018-09-27 09:39:21 +02:00
parent cf33bfcce1
commit d82031ab0d
4 changed files with 6 additions and 3 deletions

View File

@@ -60,6 +60,7 @@ const computeCharacterById = function (charId){
let char = buildCharacter();
char = computeCharacter(char);
writeCharacter(char);
return char;
};
/*
@@ -339,7 +340,6 @@ const computeEffect = function(effect, char){
effect.result = evaluateCalculation(effect.calculation, char);
}
effect.computed = true;
console.log({effect});
};
/*
@@ -426,7 +426,6 @@ const combineAttribute = function(stat, char){
if (stat.attributeType === "ability") {
stat.mod = Math.floor((stat.result - 10) / 2);
}
console.log({statResult: stat.result})
}
const combineSkill = function(stat, char){