mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-23 19:09:55 +02:00
Critical first 👀
This commit is contained in:
parent
629268caf9
commit
3dc8379ff5
1 changed files with 5 additions and 7 deletions
|
|
@ -778,16 +778,14 @@ export default class TagTeamDialog extends HandlebarsApplicationMixin(Applicatio
|
||||||
const fearResourceMap = actorResourceMaps[tagTeamData.initiator.memberId];
|
const fearResourceMap = actorResourceMaps[tagTeamData.initiator.memberId];
|
||||||
for (const memberId in tagTeamData.members) {
|
for (const memberId in tagTeamData.members) {
|
||||||
const resourceMap = actorResourceMaps[memberId];
|
const resourceMap = actorResourceMaps[memberId];
|
||||||
if (finalRoll.withHope) {
|
if (finalRoll.isCritical) {
|
||||||
resourceMap.addResources([{ key: 'hope', value: 1, enabled: true }]);
|
|
||||||
}
|
|
||||||
else if (finalRoll.isCritical) {
|
|
||||||
resourceMap.addResources([
|
resourceMap.addResources([
|
||||||
{ key: 'stress', value: -1, enabled: true },
|
{ key: 'stress', value: -1, enabled: true },
|
||||||
{ key: 'hope', value: 1, enabled: true }
|
{ key: 'hope', value: 1, enabled: true }
|
||||||
]);
|
]);
|
||||||
}
|
} else if (finalRoll.withHope) {
|
||||||
else if (finalRoll.withFear) {
|
resourceMap.addResources([{ key: 'hope', value: 1, enabled: true }]);
|
||||||
|
} else if (finalRoll.withFear) {
|
||||||
fearResourceMap.addResources([{ key: 'fear', value: 1, enabled: true }]);
|
fearResourceMap.addResources([{ key: 'fear', value: 1, enabled: true }]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue