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

View file

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

View file

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

View file

@ -26,7 +26,7 @@
{{formGroup systemFields.duration.fields.type value=source.system.duration.type localize=true }} {{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"> <div class="form-fields">
{{formInput systemFields.duration.fields.description value=source.system.duration.description localize=true }} {{formInput systemFields.duration.fields.description value=source.system.duration.description localize=true }}
</div> </div>