Also improved the display of features and generally iterated on their manipulation. Characters now fetch the relevant effects directly when making a calculation, simplifying almost everything. Effects now store a reference to their source if they have one. Effect names are now optional, they can be fetched from the source's name if the source exists.
7 lines
146 B
JavaScript
7 lines
146 B
JavaScript
getMod = function(score){
|
|
return Math.floor((score-10)/2);
|
|
}
|
|
|
|
signedString = function(number){
|
|
return number >= 0? "+" + number : "" + number;
|
|
} |