[Fix] Compendium Advantage Sources (#1796)

* Duration Description field didn't show initially for type temporary

* Corrected SRD
This commit is contained in:
WBHarry 2026-04-13 20:41:28 +02:00 committed by GitHub
parent fb07938e54
commit 8d8dea81fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 92 additions and 69 deletions

View file

@ -68,31 +68,33 @@
"type": "withinRange",
"target": "hostile",
"range": "melee"
}
},
"changes": [
{
"key": "system.resistance.physical.resistance",
"mode": 5,
"value": "1",
"priority": null
"type": "override",
"value": 1,
"priority": null,
"phase": "initial"
},
{
"key": "system.disadvantageSources",
"mode": 2,
"value": "Retract",
"priority": null
"type": "add",
"value": "Action rolls",
"priority": null,
"phase": "initial"
}
],
"duration": {
"type": ""
}
},
"disabled": true,
"duration": {
"startTime": null,
"combat": null,
"seconds": null,
"rounds": null,
"turns": null,
"startRound": null,
"startTurn": null
"value": null,
"units": "seconds",
"expiry": null,
"expired": false
},
"description": "<p>While in your shell, you have resistance to physical damage, you have disadvantage on action rolls, and you cant move.</p>",
"tint": "#ffffff",
@ -102,6 +104,16 @@
"_stats": {
"compendiumSource": null
},
"start": {
"time": 0,
"combat": null,
"combatant": null,
"initiative": null,
"round": null,
"turn": null
},
"showIcon": 1,
"folder": null,
"_key": "!items.effects!UFR67BUOhNGLFyg9.3V4FPoyjJUnFP9WS"
}
],

View file

@ -29,39 +29,28 @@
"type": "withinRange",
"target": "hostile",
"range": "melee"
}
},
"changes": [
{
"key": "system.advantageSources",
"mode": 2,
"value": "In an area with low light or heavy shadow: hide, investigate, or perceive",
"priority": null
},
{
"key": "system.advantageSources",
"mode": 2,
"value": "",
"priority": null
},
{
"key": "",
"mode": 2,
"value": "",
"priority": null
"type": "add",
"value": "Rolls to hide, investigate, or perceive details in low light",
"priority": null,
"phase": "initial"
}
],
"duration": {
"type": ""
}
},
"disabled": false,
"duration": {
"startTime": null,
"combat": null,
"seconds": null,
"rounds": null,
"turns": null,
"startRound": null,
"startTurn": null
"value": null,
"units": "seconds",
"expiry": null,
"expired": false
},
"description": "",
"description": "<p>When youre in an area with low light or heavy shadow, you have advantage on rolls to hide, investigate, or perceive details within that area.</p>",
"origin": null,
"tint": "#ffffff",
"transfer": true,
@ -71,6 +60,16 @@
"_stats": {
"compendiumSource": null
},
"start": {
"time": 0,
"combat": null,
"combatant": null,
"initiative": null,
"round": null,
"turn": null
},
"showIcon": 1,
"folder": null,
"_key": "!items.effects!aMla3xQuCHEwORGD.pCp32u7UwqxCI4WW"
}
],

View file

@ -132,27 +132,29 @@
"type": "withinRange",
"target": "hostile",
"range": "melee"
}
},
"changes": [
{
"key": "system.advantageSources",
"mode": 2,
"value": "1",
"priority": null
"type": "add",
"value": "On Attacks",
"priority": null,
"phase": "initial"
}
],
"duration": {
"type": "temporary",
"description": "<p>Until you or an ally rolls a failure with Fear.</p>"
}
},
"disabled": false,
"duration": {
"startTime": null,
"combat": null,
"seconds": null,
"rounds": null,
"turns": null,
"startRound": null,
"startTurn": null
"value": null,
"units": "seconds",
"expiry": null,
"expired": false
},
"description": "",
"description": "<p>You gain advantage on attack rolls until you or an ally rolls a failure with Fear.</p>",
"tint": "#ffffff",
"statuses": [],
"sort": 0,
@ -160,6 +162,16 @@
"_stats": {
"compendiumSource": null
},
"start": {
"time": 0,
"combat": null,
"combatant": null,
"initiative": null,
"round": null,
"turn": null
},
"showIcon": 1,
"folder": null,
"_key": "!items.effects!Ef1JsUG50LIoKx2F.s7ma4TNgAvt0ZgEW"
}
],

View file

@ -26,7 +26,7 @@
{{formGroup systemFields.duration.fields.type value=source.system.duration.type localize=true }}
<div class="form-group slim duration-description">
<div class="form-group slim duration-description {{#if (eq source.system.duration.type 'temporary')}}visible{{/if}}">
<div class="form-fields">
{{formInput systemFields.duration.fields.description value=source.system.duration.description localize=true }}
</div>