Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e19e91f7e0 | ||
|
|
bac9fc98dd |
@@ -165,7 +165,7 @@ function rollAttack(attack, scope) {
|
|||||||
}
|
}
|
||||||
scope['$attackDiceRoll'] = { value };
|
scope['$attackDiceRoll'] = { value };
|
||||||
const result = value + attack.value;
|
const result = value + attack.value;
|
||||||
scope['$attackRoll'] = { result };
|
scope['$attackRoll'] = { value: result };
|
||||||
const { criticalHit, criticalMiss } = applyCrits(value, scope);
|
const { criticalHit, criticalMiss } = applyCrits(value, scope);
|
||||||
return { resultPrefix, result, value, criticalHit, criticalMiss };
|
return { resultPrefix, result, value, criticalHit, criticalMiss };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -428,7 +428,7 @@ const propertyHandlers = {
|
|||||||
let skipChildren;
|
let skipChildren;
|
||||||
let propPath = null;
|
let propPath = null;
|
||||||
if (prop.hideStatsGroup) {
|
if (prop.hideStatsGroup) {
|
||||||
return { skipChildren: true}
|
skipChildren = true;
|
||||||
}
|
}
|
||||||
if (prop.tab === 'stats') {
|
if (prop.tab === 'stats') {
|
||||||
propPath = ['folder', prop.location]
|
propPath = ['folder', prop.location]
|
||||||
@@ -546,7 +546,7 @@ export default {
|
|||||||
if (creature.settings.hideUnusedStats) {
|
if (creature.settings.hideUnusedStats) {
|
||||||
filter.hide = { $ne: true };
|
filter.hide = { $ne: true };
|
||||||
}
|
}
|
||||||
const allProps = CreatureProperties.find(filter, { sort: { order: 1 } });
|
const allProps = CreatureProperties.find(filter, { sort: { order: -1 } });
|
||||||
const forest = nodeArrayToTree(allProps);
|
const forest = nodeArrayToTree(allProps);
|
||||||
const properties = { folder: {}, attribute: {}, skill: {} };
|
const properties = { folder: {}, attribute: {}, skill: {} };
|
||||||
walkDown(forest, node => {
|
walkDown(forest, node => {
|
||||||
|
|||||||
Reference in New Issue
Block a user