mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-15 05:01:08 +01:00
Fixed armor healing
This commit is contained in:
parent
3984417a17
commit
110bfa3492
16 changed files with 27 additions and 27 deletions
|
|
@ -897,7 +897,7 @@
|
||||||
"name": "Hope",
|
"name": "Hope",
|
||||||
"abbreviation": "HO"
|
"abbreviation": "HO"
|
||||||
},
|
},
|
||||||
"armorSlot": {
|
"armor": {
|
||||||
"name": "Armor Slot",
|
"name": "Armor Slot",
|
||||||
"abbreviation": "AS"
|
"abbreviation": "AS"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -148,10 +148,10 @@ export const healingTypes = {
|
||||||
label: 'DAGGERHEART.CONFIG.HealingType.hope.name',
|
label: 'DAGGERHEART.CONFIG.HealingType.hope.name',
|
||||||
abbreviation: 'DAGGERHEART.CONFIG.HealingType.hope.abbreviation'
|
abbreviation: 'DAGGERHEART.CONFIG.HealingType.hope.abbreviation'
|
||||||
},
|
},
|
||||||
armorSlot: {
|
armor: {
|
||||||
id: 'armorSlot',
|
id: 'armor',
|
||||||
label: 'DAGGERHEART.CONFIG.HealingType.armorSlot.name',
|
label: 'DAGGERHEART.CONFIG.HealingType.armor.name',
|
||||||
abbreviation: 'DAGGERHEART.CONFIG.HealingType.armorSlot.abbreviation'
|
abbreviation: 'DAGGERHEART.CONFIG.HealingType.armor.abbreviation'
|
||||||
},
|
},
|
||||||
fear: {
|
fear: {
|
||||||
id: 'fear',
|
id: 'fear',
|
||||||
|
|
@ -262,7 +262,7 @@ export const defaultRestOptions = {
|
||||||
actionType: 'action',
|
actionType: 'action',
|
||||||
chatDisplay: false,
|
chatDisplay: false,
|
||||||
healing: {
|
healing: {
|
||||||
applyTo: healingTypes.armorSlot.id,
|
applyTo: healingTypes.armor.id,
|
||||||
value: {
|
value: {
|
||||||
custom: {
|
custom: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
|
@ -350,7 +350,7 @@ export const defaultRestOptions = {
|
||||||
actionType: 'action',
|
actionType: 'action',
|
||||||
chatDisplay: false,
|
chatDisplay: false,
|
||||||
healing: {
|
healing: {
|
||||||
applyTo: healingTypes.armorSlot.id,
|
applyTo: healingTypes.armor.id,
|
||||||
value: {
|
value: {
|
||||||
custom: {
|
custom: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
|
|
||||||
|
|
@ -675,7 +675,7 @@ export const weaponFeatures = {
|
||||||
},
|
},
|
||||||
cost: [
|
cost: [
|
||||||
{
|
{
|
||||||
type: 'armorSlot',
|
type: 'armor',
|
||||||
value: 1
|
value: 1
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage {
|
||||||
|
|
||||||
getTargetList() {
|
getTargetList() {
|
||||||
const targets = this.system.hitTargets;
|
const targets = this.system.hitTargets;
|
||||||
return targets.map(target => game.canvas.tokens.documentCollection.find(t => t.actor.uuid === target.actorId));
|
return targets.map(target => game.canvas.tokens.documentCollection.find(t => t.actor?.uuid === target.actorId));
|
||||||
}
|
}
|
||||||
|
|
||||||
async onDamage(event) {
|
async onDamage(event) {
|
||||||
|
|
@ -139,9 +139,9 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage {
|
||||||
}
|
}
|
||||||
|
|
||||||
consumeOnSuccess() {
|
consumeOnSuccess() {
|
||||||
if(!this.system.successConsumed && !this.system.targetSelection) {
|
if (!this.system.successConsumed && !this.system.targetSelection) {
|
||||||
const action = this.system.action;
|
const action = this.system.action;
|
||||||
if(action) action.consume(this.system, true);
|
if (action) action.consume(this.system, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -490,7 +490,7 @@
|
||||||
"dice": "d6",
|
"dice": "d6",
|
||||||
"bonus": null
|
"bonus": null
|
||||||
},
|
},
|
||||||
"applyTo": "armorSlot",
|
"applyTo": "armor",
|
||||||
"base": false,
|
"base": false,
|
||||||
"resultBased": false,
|
"resultBased": false,
|
||||||
"valueAlt": {
|
"valueAlt": {
|
||||||
|
|
|
||||||
|
|
@ -255,7 +255,7 @@
|
||||||
"dice": "d6",
|
"dice": "d6",
|
||||||
"bonus": null
|
"bonus": null
|
||||||
},
|
},
|
||||||
"applyTo": "armorSlot",
|
"applyTo": "armor",
|
||||||
"base": false,
|
"base": false,
|
||||||
"resultBased": false,
|
"resultBased": false,
|
||||||
"valueAlt": {
|
"valueAlt": {
|
||||||
|
|
|
||||||
|
|
@ -291,7 +291,7 @@
|
||||||
"dice": "d6",
|
"dice": "d6",
|
||||||
"bonus": null
|
"bonus": null
|
||||||
},
|
},
|
||||||
"applyTo": "armorSlot",
|
"applyTo": "armor",
|
||||||
"type": [],
|
"type": [],
|
||||||
"base": false,
|
"base": false,
|
||||||
"resultBased": false,
|
"resultBased": false,
|
||||||
|
|
|
||||||
|
|
@ -298,7 +298,7 @@
|
||||||
"dice": "d6",
|
"dice": "d6",
|
||||||
"bonus": null
|
"bonus": null
|
||||||
},
|
},
|
||||||
"applyTo": "armorSlot",
|
"applyTo": "armor",
|
||||||
"base": false,
|
"base": false,
|
||||||
"resultBased": false,
|
"resultBased": false,
|
||||||
"valueAlt": {
|
"valueAlt": {
|
||||||
|
|
|
||||||
|
|
@ -296,7 +296,7 @@
|
||||||
"dice": "d6",
|
"dice": "d6",
|
||||||
"bonus": null
|
"bonus": null
|
||||||
},
|
},
|
||||||
"applyTo": "armorSlot",
|
"applyTo": "armor",
|
||||||
"type": [],
|
"type": [],
|
||||||
"base": false,
|
"base": false,
|
||||||
"resultBased": false,
|
"resultBased": false,
|
||||||
|
|
|
||||||
|
|
@ -365,7 +365,7 @@
|
||||||
"dice": "d6",
|
"dice": "d6",
|
||||||
"bonus": null
|
"bonus": null
|
||||||
},
|
},
|
||||||
"applyTo": "armorSlot",
|
"applyTo": "armor",
|
||||||
"base": false,
|
"base": false,
|
||||||
"resultBased": false,
|
"resultBased": false,
|
||||||
"valueAlt": {
|
"valueAlt": {
|
||||||
|
|
|
||||||
|
|
@ -250,7 +250,7 @@
|
||||||
"dice": "d6",
|
"dice": "d6",
|
||||||
"bonus": null
|
"bonus": null
|
||||||
},
|
},
|
||||||
"applyTo": "armorSlot",
|
"applyTo": "armor",
|
||||||
"type": [],
|
"type": [],
|
||||||
"base": false,
|
"base": false,
|
||||||
"resultBased": false,
|
"resultBased": false,
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
"dice": "d6",
|
"dice": "d6",
|
||||||
"bonus": null
|
"bonus": null
|
||||||
},
|
},
|
||||||
"applyTo": "armorSlot",
|
"applyTo": "armor",
|
||||||
"base": false,
|
"base": false,
|
||||||
"resultBased": false,
|
"resultBased": false,
|
||||||
"valueAlt": {
|
"valueAlt": {
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
"dice": "d6",
|
"dice": "d6",
|
||||||
"bonus": null
|
"bonus": null
|
||||||
},
|
},
|
||||||
"applyTo": "armorSlot",
|
"applyTo": "armor",
|
||||||
"base": false,
|
"base": false,
|
||||||
"resultBased": false,
|
"resultBased": false,
|
||||||
"valueAlt": {
|
"valueAlt": {
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,7 @@
|
||||||
"dice": "d6",
|
"dice": "d6",
|
||||||
"bonus": null
|
"bonus": null
|
||||||
},
|
},
|
||||||
"applyTo": "armorSlot",
|
"applyTo": "armor",
|
||||||
"base": false,
|
"base": false,
|
||||||
"resultBased": false,
|
"resultBased": false,
|
||||||
"valueAlt": {
|
"valueAlt": {
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
"dice": "d6",
|
"dice": "d6",
|
||||||
"bonus": null
|
"bonus": null
|
||||||
},
|
},
|
||||||
"applyTo": "armorSlot",
|
"applyTo": "armor",
|
||||||
"base": false,
|
"base": false,
|
||||||
"resultBased": false,
|
"resultBased": false,
|
||||||
"valueAlt": {
|
"valueAlt": {
|
||||||
|
|
|
||||||
|
|
@ -55,10 +55,10 @@
|
||||||
<div class="status-section">
|
<div class="status-section">
|
||||||
<div class="status-number">
|
<div class="status-number">
|
||||||
<div class='status-value'>
|
<div class='status-value'>
|
||||||
<p>{{document.system.proficiency}}</p>
|
<p>{{document.system.evasion}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="status-label">
|
<div class="status-label">
|
||||||
<h4>{{localize "DAGGERHEART.GENERAL.proficiency"}}</h4>
|
<h4>{{localize "DAGGERHEART.GENERAL.evasion"}}</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -91,10 +91,10 @@
|
||||||
|
|
||||||
<div class="status-number">
|
<div class="status-number">
|
||||||
<div class='status-value'>
|
<div class='status-value'>
|
||||||
<p>{{document.system.evasion}}</p>
|
<p>{{document.system.proficiency}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="status-label">
|
<div class="status-label">
|
||||||
<h4>{{localize "DAGGERHEART.GENERAL.evasion"}}</h4>
|
<h4>{{localize "DAGGERHEART.GENERAL.proficiency"}}</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue