- P2: Perks with changes[] arrays create Active Effects on drop/delete
- P3: Feature choice UI for Fighting Style (auto-grants Situational
Awareness + selected training perk, ignoring prerequisites)
- P4: Ancestry traits apply Active Effects (Dwarf Darksight/Tough working)
- P5: Caster progression accumulates mana from class progression table
Key patterns:
- Manual UUID construction: Compendium.${pack.collection}.Item.${entry._id}
- ignorePrereqs flag for specific choices bypassing all prerequisites
- Mode 5 (OVERRIDE) for boolean senses like darkvision
- Form data merging with direct DOM reading for reliable selection capture
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
45 lines
1004 B
JSON
45 lines
1004 B
JSON
{
|
|
"_id": "vagabondPerkWeaponMastery",
|
|
"name": "Weapon Mastery",
|
|
"type": "perk",
|
|
"img": "icons/svg/sword.svg",
|
|
"system": {
|
|
"description": "<p>You have trained extensively with melee weapons. Your melee attacks deal +1 damage.</p>",
|
|
"prerequisites": {
|
|
"stats": {
|
|
"might": 4,
|
|
"dexterity": null,
|
|
"awareness": null,
|
|
"reason": null,
|
|
"presence": null,
|
|
"luck": null
|
|
},
|
|
"trainedSkills": ["melee"],
|
|
"spells": [],
|
|
"perks": [],
|
|
"custom": "Melee Training"
|
|
},
|
|
"changes": [
|
|
{
|
|
"key": "system.attacks.melee.damageBonus",
|
|
"mode": 2,
|
|
"value": "1"
|
|
}
|
|
],
|
|
"passive": true,
|
|
"uses": {
|
|
"value": 0,
|
|
"max": 0,
|
|
"per": ""
|
|
},
|
|
"luckCost": 0,
|
|
"grantsLuck": 0,
|
|
"isRitual": false,
|
|
"ritualDuration": 0,
|
|
"ritualComponents": "",
|
|
"tags": ["combat", "melee", "training"]
|
|
},
|
|
"effects": [],
|
|
"_key": "!items!vagabondPerkWeaponMastery"
|
|
}
|