diff --git a/wg-greyknights/module.json b/wg-greyknights/module.json index 6ac3fd3..81a6552 100644 --- a/wg-greyknights/module.json +++ b/wg-greyknights/module.json @@ -1,7 +1,8 @@ { "id": "wng-daemonhunters", "title": "Wrath & Glory: Daemonhunters (Grey Knights)", - "version": "0.6.4.1", + "description": "Grey Knights add-on for Wrath & Glory. Restored GK Archetype in compendium; GK items; Aegis/Brotherhood abilities; Sanctic powers; single-dialog autoload.", + "version": "0.6.4.2", "compatibility": { "minimum": "11", "verified": "13" diff --git a/wg-greyknights/packs/daemonhunters.db b/wg-greyknights/packs/daemonhunters.db index 466ced2..6a4ff0d 100644 --- a/wg-greyknights/packs/daemonhunters.db +++ b/wg-greyknights/packs/daemonhunters.db @@ -1,4 +1,4 @@ -{"name": "Aegis Power Armour", "type": "armour", "img": "modules/wng-core/assets/icons/armour/aquila-mk-vii.webp", "effects": [{"_id": "25aqxUBwyQtSAdxb", "name": "Aegis Wards (Constant)", "origin": null, "disabled": false, "duration": {"startTime": null, "combat": null}, "changes": [{"key": "system.skills.psychicMastery.bonus", "mode": 2, "value": "1", "priority": 20}, {"key": "system.combat.resolve.bonus", "mode": 2, "value": "1", "priority": 20}], "tint": "#ffffff", "transfer": true, "flags": {}, "system": {"transferData": {"equipTransfer": true, "type": "document", "originalType": "document", "documentType": "Actor", "avoidTest": {"value": "none", "opposed": false, "prevention": true, "reversed": false}, "testIndependent": false, "selfOnly": false, "prompt": false, "area": {"templateData": {"borderColor": null, "fillColor": null, "texture": null}, "keep": false, "aura": {"transferred": false, "render": false}, "duration": "sustained"}, "zone": {"type": "zone", "transferred": false, "traits": {}, "skipImmediateOnPlacement": false, "keep": false}}, "itemTargetData": {"ids": [], "allItems": false}, "scriptData": [], "zone": {"type": "zone", "traits": {}, "skipImmediateOnPlacement": false}, "sourceData": {"test": {}}}, "_stats": {"coreVersion": "13.347", "systemId": "wrath-and-glory", "systemVersion": "7.1.1", "lastModifiedBy": null}, "img": "icons/svg/aura.svg", "type": "base", "description": "", "statuses": [], "sort": 0}, {"_id": "LfRNsXknme6JLgSC", "name": "Aegis Warding Runes (Toggle)", "origin": null, "disabled": true, "duration": {"startTime": null, "combat": null}, "changes": [{"key": "system.combat.resilience.bonus", "mode": 2, "value": "1", "priority": 20}, {"key": "system.combat.defence.bonus", "mode": 2, "value": "-1", "priority": 20}], "tint": "#ffffff", "transfer": true, "flags": {}, "system": {"transferData": {"equipTransfer": true, "type": "document", "originalType": "document", "documentType": "Actor", "avoidTest": {"value": "none", "opposed": false, "prevention": true, "reversed": false}, "testIndependent": false, "selfOnly": false, "prompt": false, "area": {"templateData": {"borderColor": null, "fillColor": null, "texture": null}, "keep": false, "aura": {"transferred": false, "render": false}, "duration": "sustained"}, "zone": {"type": "zone", "transferred": false, "traits": {}, "skipImmediateOnPlacement": false, "keep": false}}, "itemTargetData": {"ids": [], "allItems": false}, "scriptData": [], "zone": {"type": "zone", "traits": {}, "skipImmediateOnPlacement": false}, "sourceData": {"test": {}}}, "_stats": {"coreVersion": "13.347", "systemId": "wrath-and-glory", "systemVersion": "7.1.1", "lastModifiedBy": null}, "img": "icons/svg/explosion.svg", "type": "base", "description": "", "statuses": [], "sort": 0}], "flags": {"wng-core": {"initialization-folder": "Armour", "sort": 0}, "core": {}}, "system": {"quantity": 1, "rarity": "", "description": "
Grey Knights sanctified power armour with hexagrammic wards and storm bolter forearm mount.
Grey Knights sanctified power armour with hexagrammic wards and storm bolter forearm mount.
Integrated forearm storm bolter. Integrated: does not occupy hands; may fire while wielding two‑handed melee. Treat as Pistol for firing in melee.
", "value": 4, "keywords": "BOLT, INTEGRATED, IMPERIUM, ADEPTUS ASTARTES, GREY KNIGHTS, INQUISITION, DAEMONHUNTERS", "equipped": false, "attack": {"base": 0, "bonus": 0, "rank": "none"}, "damage": {"base": 10, "bonus": 0, "rank": 0, "ed": {"base": 2, "bonus": 0, "rank": 0, "dice": ""}, "ap": {"base": 0, "bonus": 0, "rank": 0, "dice": ""}, "enabled": false, "otherDamage": {"mortal": "0", "wounds": "0", "shock": "0"}, "dice": ""}, "ed": {"base": 0, "bonus": 0, "rank": 0}, "ap": {"base": 0, "bonus": 0, "rank": 0}, "category": "ranged", "range": {"short": 12, "medium": 24, "long": 36, "melee": 1, "thrown": null}, "ammo": {"id": ""}, "salvo": 1, "traits": {"list": [{"name": "brutal"}, {"name": "pistol"}, {"name": "rapidFire", "rating": "2"}]}, "upgrades": [], "otherDamage": {}, "combi": {}, "twinned": false}, "folder": "85dkcvhBYli5TJrZ", "_id": "SDFwequVtp6WsCFj"} {"name": "Terminator Aegis (Grey Knights)", "type": "armour", "img": "modules/wng-core/assets/icons/armour/terminator-armour.webp", "effects": [{"_id": "OvE7cPAtNLDdEj6j", "name": "Aegis Wards (Constant)", "origin": null, "disabled": false, "duration": {"startTime": null, "combat": null}, "changes": [{"key": "system.skills.psychicMastery.bonus", "mode": 2, "value": "1", "priority": 20}, {"key": "system.combat.resolve.bonus", "mode": 2, "value": "1", "priority": 20}], "tint": "#ffffff", "transfer": true, "flags": {}, "system": {"transferData": {"equipTransfer": true, "type": "document", "originalType": "document", "documentType": "Actor", "avoidTest": {"value": "none", "opposed": false, "prevention": true, "reversed": false}, "testIndependent": false, "selfOnly": false, "prompt": false, "area": {"templateData": {"borderColor": null, "fillColor": null, "texture": null}, "keep": false, "aura": {"transferred": false, "render": false}, "duration": "sustained"}, "zone": {"type": "zone", "transferred": false, "traits": {}, "skipImmediateOnPlacement": false, "keep": false}}, "itemTargetData": {"ids": [], "allItems": false}, "scriptData": [], "zone": {"type": "zone", "traits": {}, "skipImmediateOnPlacement": false}, "sourceData": {"test": {}}}, "_stats": {"coreVersion": "13.347", "systemId": "wrath-and-glory", "systemVersion": "7.1.1", "lastModifiedBy": null}, "img": "icons/svg/aura.svg", "type": "base", "description": "", "statuses": [], "sort": 0}, {"_id": "RXHERg7YjunnEQ8h", "name": "Aegis Warding Runes (Toggle)", "origin": null, "disabled": true, "duration": {"startTime": null, "combat": null}, "changes": [{"key": "system.combat.resilience.bonus", "mode": 2, "value": "1", "priority": 20}, {"key": "system.combat.defence.bonus", "mode": 2, "value": "-1", "priority": 20}], "tint": "#ffffff", "transfer": true, "flags": {}, "system": {"transferData": {"equipTransfer": true, "type": "document", "originalType": "document", "documentType": "Actor", "avoidTest": {"value": "none", "opposed": false, "prevention": true, "reversed": false}, "testIndependent": false, "selfOnly": false, "prompt": false, "area": {"templateData": {"borderColor": null, "fillColor": null, "texture": null}, "keep": false, "aura": {"transferred": false, "render": false}, "duration": "sustained"}, "zone": {"type": "zone", "transferred": false, "traits": {}, "skipImmediateOnPlacement": false, "keep": false}}, "itemTargetData": {"ids": [], "allItems": false}, "scriptData": [], "zone": {"type": "zone", "traits": {}, "skipImmediateOnPlacement": false}, "sourceData": {"test": {}}}, "_stats": {"coreVersion": "13.347", "systemId": "wrath-and-glory", "systemVersion": "7.1.1", "lastModifiedBy": null}, "img": "icons/svg/explosion.svg", "type": "base", "description": "", "statuses": [], "sort": 0}], "flags": {"wng-core": {"initialization-folder": "Armour", "sort": 0}, "core": {}}, "system": {"quantity": 1, "rarity": "", "description": "Grey Knights Tactical Dreadnought armour with Aegis wards and storm bolter hard‑mount.
Scavenged Black Templars plate, patched & lightened. Designed for incognito operations.
Innate sanctity of a Grey Knight. +1 bonus die to Deny the Witch; +1 to resist Corruption. If equipped with Aegis armour, gain an additional +1 to resist Corruption.
", "cost": 0, "requirements": "GREY KNIGHTS"}, "_id": "4fbdc9cbbdce43b6"} -{"name": "Brotherhood of Psykers", "type": "ability", "img": "modules/wng-core/assets/icons/abilities/adeptus-astartes.webp", "effects": [], "system": {"description": "You gain the PSYKER Keyword and know Universal Psyker Abilities and Smite. When you gain this Ability, choose one Discipline: Librarius or Sanctic. Learn one power from the chosen Discipline.
", "cost": 0, "requirements": "GREY KNIGHTS"}, "_id": "8e147a2e47594051"} -{"name": "Hammerhand (Sanctic)", "type": "psychicPower", "img": "modules/wng-core/assets/icons/powers/power.webp", "effects": [], "system": {"dn": "7", "cost": 10, "activation": "action", "duration": "Sustained", "range": "Self", "keywords": "PSYCHIC, SANCTIC", "description": "Melee attacks gain +1ED until the start of your next Turn (persists while Sustained). Optionally spend 3 Shock on activation to gain +1 DN to resist Disarm/Shove.
"}, "_id": "62d8b2491f1b408d"} -{"name": "Sanctuary (Sanctic)", "type": "psychicPower", "img": "modules/wng-core/assets/icons/powers/power.webp", "effects": [], "system": {"dn": "7", "cost": 15, "activation": "action", "duration": "Sustained", "range": "Aura 5 m", "keywords": "PSYCHIC, SANCTIC", "description": "Allies in the aura gain +1 to Resolve vs Fear/Corruption; their attacks count as Sanctified vs DAEMON for overcoming Resistances (GM adjudication). Ends if you are Incapacitated.
"}, "_id": "604ee438dd144a72"} -{"name": "The Shrouding (Sanctic)", "type": "psychicPower", "img": "modules/wng-core/assets/icons/powers/power.webp", "effects": [], "system": {"dn": "7", "cost": 10, "activation": "action", "duration": "Sustained", "range": "Self or Ally within 15 m", "keywords": "PSYCHIC, SANCTIC", "description": "Attacks against the target suffer +1 DN (ranged) while Sustained; moving more than normal Speed ends the effect at end of Turn. Potency (table): also +1 DN melee.
"}, "_id": "3326bd6d147441ae"} -{"name": "Might of Titan (Sanctic)", "type": "psychicPower", "img": "modules/wng-core/assets/icons/powers/power.webp", "effects": [], "system": {"dn": "7", "cost": 15, "activation": "action", "duration": "Sustained", "range": "15 m", "keywords": "PSYCHIC, SANCTIC", "description": "Target ally gains +1 to Strength-based Tests and +1ED on melee attacks; while Sustained, the bonuses persist. Potency (table): also +1 to Toughness Tests.
"}, "_id": "169a9cb337844a44"} +{"name": "Nemesis Force Halberd", "type": "weapon", "img": "modules/wng-core/assets/icons/weapons/force-stave.webp", "system": {"quantity": 1, "rarity": "unique", "value": 7, "description": "Grey Knight Nemesis Halberd (treated as Force Stave; +1 DMG baseline for GK; +1ED vs Daemons & Psykers — narrative).", "keywords": "FORCE, ADEPTUS ASTARTES, GREY KNIGHTS, 2-HANDED", "equipped": false, "damage": {"base": 12, "ed": {"base": 2}, "ap": {"base": -1}, "enabled": false, "otherDamage": {"mortal": "0", "wounds": "0", "shock": "0"}}, "category": "melee", "range": {"melee": 2, "short": 0, "medium": 0, "long": 0}, "traits": {"list": [{"name": "force"}, {"name": "parry"}]}}, "effects": [], "flags": {}, "_id": "71e5ec3cd2b14fa4"} +{"name": "Aegis of Titan", "type": "ability", "img": "modules/wng-core/assets/icons/abilities/adeptus-astartes.webp", "effects": [{"name": "Aegis of Titan (Innate)", "img": "modules/wng-core/assets/icons/abilities/adeptus-astartes.webp", "_id": "8872d1e71d2c4b2a", "type": "base", "system": {"transferData": {"type": "document", "originalType": "document", "documentType": "Actor", "avoidTest": {"value": "none", "opposed": false, "prevention": true, "reversed": false}, "testIndependent": false, "equipTransfer": true, "selfOnly": false, "prompt": false, "area": {"templateData": {"borderColor": null, "fillColor": null, "texture": null}, "keep": false, "aura": {"transferred": false, "render": false}, "duration": "sustained"}, "zone": {"type": "zone", "transferred": false, "traits": {}, "skipImmediateOnPlacement": false, "keep": false}}, "scriptData": [], "itemTargetData": {"ids": [], "allItems": false}, "zone": {"type": "zone", "traits": {}, "skipImmediateOnPlacement": false}, "sourceData": {"test": {}}}, "changes": [{"key": "flags.wng-daemonhunters.denyBonus", "mode": 2, "value": "1", "priority": 10}, {"key": "flags.wng-daemonhunters.corruptionResistInnate", "mode": 2, "value": "1", "priority": 10}], "disabled": false, "transfer": true}], "system": {"description": "Innate sanctity of a Grey Knight. +1 bonus die to Deny the Witch; +1 to resist Corruption. If equipped with Aegis armour, gain an additional +1 to resist Corruption.
", "cost": 0, "requirements": "GREY KNIGHTS"}, "_id": "bb3bccb475804f5c"} +{"name": "Brotherhood of Psykers", "type": "ability", "img": "modules/wng-core/assets/icons/abilities/adeptus-astartes.webp", "effects": [], "system": {"description": "You gain the PSYKER Keyword and know Universal Psyker Abilities and Smite. When you gain this Ability, choose one Discipline: Librarius or Sanctic. Learn one power from the chosen Discipline.
", "cost": 0, "requirements": "GREY KNIGHTS"}, "_id": "afd071e300664fc6"} +{"name": "Might of Heroes", "type": "psychicPower", "img": "modules/wng-core/assets/icons/powers/power.webp", "effects": [{"_id": "dE9A7AKv5dhN9tmI", "changes": [{"key": "system.attributes.strength.bonus", "mode": 2, "value": "@test.result.bonus", "priority": null}, {"key": "system.attributes.toughness.bonus", "mode": 2, "value": "@test.result.bonus", "priority": null}, {"key": "system.attributes.initiative.bonus", "mode": 2, "value": "@test.result.bonus", "priority": null}], "disabled": false, "duration": {"startTime": null, "seconds": null, "combat": null, "rounds": null, "turns": null, "startRound": null, "startTurn": null}, "transfer": false, "flags": {"wrath-and-glory": {"migrated": true, "manualEffectKeys": false}}, "tint": "#ffffff", "origin": null, "name": "Might of Heroes", "description": "", "statuses": [], "_stats": {"coreVersion": "13.347", "systemId": "wrath-and-glory", "systemVersion": "7.1.1", "lastModifiedBy": null}, "img": "modules/wng-core/assets/icons/powers/power.webp", "type": "base", "system": {"transferData": {"type": "target", "originalType": "document", "documentType": "Actor", "avoidTest": {"value": "none", "opposed": false, "prevention": true, "reversed": false}, "testIndependent": false, "equipTransfer": false, "selfOnly": false, "prompt": false, "area": {"templateData": {"borderColor": null, "fillColor": null, "texture": null}, "keep": false, "aura": {"transferred": false, "render": false}, "duration": "sustained"}, "zone": {"type": "zone", "transferred": false, "traits": {}, "skipImmediateOnPlacement": false, "keep": false}}, "scriptData": [{"script": "[Script.iUUp4ouubYFUgtuB]", "label": "Delete", "trigger": "updateCombat", "options": {"targeter": false, "deleteEffect": false, "defending": false}, "async": false}], "itemTargetData": {"ids": [], "allItems": false}, "zone": {"type": "zone", "traits": {}, "skipImmediateOnPlacement": false}, "sourceData": {"test": {}}}, "sort": 0}], "folder": "XeqLNhxj3ih0QuHM", "flags": {"wng-forsaken": {"initialization-folder": "Psychic Powers", "sort": 0}, "core": {}}, "system": {"dn": "7", "description": "Summoning the labyrinthine lore of your Librarius, you bestow the martial might of ancestral Astartes brethren unto your ally, siphoning the Warp to empower their form.
\nYour target gains +1 Strength, Toughness, and Initiative until the start of your next Turn.
", "effect": "", "cost": 15, "activation": "action", "duration": "Sustained", "range": "15 m", "multiTarget": false, "keywords": "PSYCHIC", "prerequisites": "ADEPTUS ASTARTES Keyword", "damage": {"base": 0, "bonus": 0, "rank": 0, "ed": {"base": 0, "bonus": 0, "rank": 0}, "otherDamage": {"wounds": "", "shock": "", "mortal": "0"}, "enabled": false, "ap": {"base": 0, "bonus": 0, "rank": 0}}, "potency": {"list": [{"description": "Your target gains an additional +1 Strength, Toughness, and Initiative.", "cost": 3, "property": "bonus", "initial": "1", "value": "1", "single": false}]}, "test": {"dn": null, "type": "", "self": false}, "traits": {"list": []}}, "_id": "t3zyqiQP8J16yRpS"} +{"name": "Hammerhand (Sanctic)", "type": "psychicPower", "img": "modules/wng-core/assets/icons/powers/power.webp", "effects": [], "system": {"dn": "7", "cost": 10, "activation": "action", "duration": "Sustained", "range": "Self", "keywords": "PSYCHIC, SANCTIC", "description": "Melee attacks gain +1ED until the start of your next Turn (persists while Sustained). Optionally spend 3 Shock on activation to gain +1 DN to resist Disarm/Shove.
"}, "_id": "9e8737e9f92e4532"} +{"name": "Sanctuary (Sanctic)", "type": "psychicPower", "img": "modules/wng-core/assets/icons/powers/power.webp", "effects": [], "system": {"dn": "7", "cost": 15, "activation": "action", "duration": "Sustained", "range": "Aura 5 m", "keywords": "PSYCHIC, SANCTIC", "description": "Allies in the aura gain +1 to Resolve vs Fear/Corruption; their attacks count as Sanctified vs DAEMON for overcoming Resistances (GM adjudication). Ends if you are Incapacitated.
"}, "_id": "a15a5a18f5974dca"} +{"name": "The Shrouding (Sanctic)", "type": "psychicPower", "img": "modules/wng-core/assets/icons/powers/power.webp", "effects": [], "system": {"dn": "7", "cost": 10, "activation": "action", "duration": "Sustained", "range": "Self or Ally within 15 m", "keywords": "PSYCHIC, SANCTIC", "description": "Attacks against the target suffer +1 DN (ranged) while Sustained; moving more than normal Speed ends the effect at end of Turn. Potency: also +1 DN melee.
"}, "_id": "df6a8672ccb14f55"} +{"name": "Might of Titan (Sanctic)", "type": "psychicPower", "img": "modules/wng-core/assets/icons/powers/power.webp", "effects": [], "system": {"dn": "7", "cost": 15, "activation": "action", "duration": "Sustained", "range": "15 m", "keywords": "PSYCHIC, SANCTIC", "description": "Target ally gains +1 to Strength-based Tests and +1ED on melee attacks; while Sustained, the bonuses persist. Potency: also +1 to Toughness Tests.
"}, "_id": "3a2f1d3395884f24"} +{"name": "Grey Knight", "type": "archetype", "img": "modules/wng-core/assets/images/archetype-astartes-librarian.webp", "effects": [], "system": {"tier": 4, "journal": "", "species": {"name": "Adeptus Astartes", "id": ""}, "faction": {"name": "Adeptus Astartes", "id": ""}, "influence": 2, "cost": 360, "keywords": ["IMPERIUM", "ADEPTUS ASTARTES", "GREY KNIGHTS", "INQUISITION", "DAEMONHUNTERS"], "attributes": {"strength": 5, "toughness": 5, "agility": 5, "initiative": 5, "willpower": 6, "intellect": 3, "fellowship": 2}, "skills": {"athletics": 3, "awareness": 3, "ballisticSkill": 5, "leadership": 1, "psychicMastery": 4, "scholar": 2, "stealth": 3, "survival": 1, "weaponSkill": 5}, "ability": {"name": "Aegis of Titan", "id": ""}, "wargear": {"structure": {"type": "and", "groupId": "root", "id": "root", "options": []}, "options": []}}, "_id": "57753a87bde04745"} diff --git a/wg-greyknights/scripts/auto-gk-archetype.js b/wg-greyknights/scripts/auto-gk-archetype.js index 15cda79..3aa99e7 100644 --- a/wg-greyknights/scripts/auto-gk-archetype.js +++ b/wg-greyknights/scripts/auto-gk-archetype.js @@ -1,4 +1,4 @@ -// WNG-Daemonhunters 0.6.4.1 — single dialog GK autoload (no clashes) +// WNG-Daemonhunters 0.6.4.2 — GK autoload (single dialog, restored Archetype in pack) Hooks.once('ready', () => console.log("WNG-Daemonhunters | Auto-loadout ready")); async function addFromPackByName(actor, packKey, name, equip=false) { @@ -27,14 +27,14 @@ Hooks.on('createItem', async (item, options, userId) => { const actor = item.parent; if (!actor || item.type !== 'archetype' || item.name !== 'Grey Knight') return; if (game.userId !== userId) return; - if (actor.getFlag('wng-daemonhunters','gkLoaded')) return; // prevent double-run + if (actor.getFlag('wng-daemonhunters','gkLoaded')) return; const content = `Select initial loadout for Grey Knight: