Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
moo-man committed Jan 7, 2025
2 parents 6bbb69e + 0919ec9 commit f0e3115
Show file tree
Hide file tree
Showing 591 changed files with 6,179 additions and 5,514 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
debug.log
node_modules
foundryconfig.json
build
build
scripts/loadEffects.js
1 change: 1 addition & 0 deletions effects/0FIA8JbwKG8vwpfC.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
args.fields.pool += 2 * args.actor.system.advances.rank
31 changes: 31 additions & 0 deletions effects/0LckJjaDaLyk3Obu.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
let condition = this.actor.hasCondition("bleeding");

if (condition)
{
await condition.delete();
this.script.notification("Removed Bleeding");
}

condition = this.actor.hasCondition("exhausted");

if (condition)
{
await condition.delete();
this.script.notification("Removed Exhausted");
}

condition = this.actor.hasCondition("poisoned");

if (condition)
{
await condition.delete();
this.script.notification("Removed Poisoned");
}

condition = this.actor.hasCondition("prone");

if (condition)
{
await condition.delete();
this.script.notification("Removed Prone");
}
8 changes: 8 additions & 0 deletions effects/0QqHPcw6j1FdmlvX.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
if (this.actor.system.combat.wounds.value != 0)
{
this.actor.applyHealing({wounds : this.effect.sourceTest.result.wounds}, {messageData : this.script.getChatData()})
}
else if (this.actor.system.combat.shock.value != 0)
{
this.actor.applyHealing({shock : this.effect.sourceTest.result.shock}, {messageData : this.script.getChatData()})
}
3 changes: 3 additions & 0 deletions effects/0R4H5ZmawVzuJ6Lh.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
let items = ["Compendium.wng-core.items.Item.JVz6FoVEc7p1DJUj", "Compendium.wng-core.items.Item.n0bj5UJjgglDzFcB"];

this.actor.createEmbeddedDocuments("Item", (await Promise.all(items.map(fromUuid))), {fromEffect: this.effect.id})
1 change: 1 addition & 0 deletions effects/0cILdPJ3OxVq13jd.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
args.fields.difficulty += (2)
11 changes: 11 additions & 0 deletions effects/0uAhcEEn8mexMNwg.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
let target = Array.from(game.user.targets)[0]?.document?.name;

if (target)
{
this.script.notification(`Target set to ${target}`)
this.effect.update({name : this.effect.setSpecifier(target)})
}
else
{
this.script.notification("Must target a Token");
}
1 change: 1 addition & 0 deletions effects/0us3LU3ENKAXsaoq.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
args.actor.addCondition("vulnerable");
1 change: 1 addition & 0 deletions effects/0wdwMAPUHwmONtVM.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return !this.actor.statuses.has("halfCover") && !this.actor.statuses.has("fullCover")
3 changes: 3 additions & 0 deletions effects/0yKINsHhGL9Mql2j.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
let report = await this.actor.applyDamage(0, {shock: 1});

this.script.message(`<span data-tooltip-direction="LEFT" data-tooltip="${report.breakdown}">Received ${report.shock} Shock</span>`);
1 change: 1 addition & 0 deletions effects/12LtSFtjEQ1I7EJ6.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return args.fields.range != "long"
1 change: 1 addition & 0 deletions effects/14MFhAYpU5TWG7GD.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return !args.options.multi || !args.weapon || !args.weapon.isRanged;
18 changes: 18 additions & 0 deletions effects/19ADzGXrV4XhQa3C.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
let shock = Math.ceil(CONFIG.Dice.randomUniform() * 3);
let mortal = 0

if (this.effect.sourceActor.type == "agent")
{
shock += this.effect.sourceActor.corruptionLevel || 0
}

let test = await this.actor.setupAttributeTest("toughness", {fields : {difficulty : 5}});

if (!test.result.isSuccess)
{
mortal = Math.ceil(CONFIG.Dice.randomUniform() * 3);
}

let report = await this.actor.applyDamage(0, {mortal, shock});

this.script.message(`<span data-tooltip-direction="LEFT" data-tooltip="${report.breakdown}"> Received ${report.wounds} Wounds and ${report.shock} Shock</span>`)
1 change: 1 addition & 0 deletions effects/1CIbPz2M7bjhkuKl.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions effects/1TENfrHWdFXtz1TA.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return !args.weapon || args.fields.distance < 12;
1 change: 1 addition & 0 deletions effects/1bbFeRFCapNGXysD.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
await this.actor.addCondition("staggered");
1 change: 1 addition & 0 deletions effects/1cVdks66HCH9RlIq.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return args.data.skill !== 'weaponSkill';
1 change: 1 addition & 0 deletions effects/1uagy1u9G4bmT0FP.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return !args.actor.statuses.has("blinded")
14 changes: 14 additions & 0 deletions effects/2SZWFMMApmNukV6O.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
if (this.actor.type == "agent")
{
this.actor.update({"system.corruption.current" : this.actor.system.corruption.current + this.effect.sourceTest.result.corruption})
}

let table = await fromUuid("RollTable.5jY4Qiah2VaLmBVT");

let result = await table.roll()

let uuid = `Compendium.${result.results[0].documentCollection}.${result.results[0].documentId}`;

this.actor.addEffectItems(uuid, this.effect)

this.script.notification(`Added ${this.effect.sourceTest.result.corruption} Corruption and ${result.results[0].text}`)
1 change: 1 addition & 0 deletions effects/2cM4UeiXanH2SPFl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
args.fields.pool += args.target.system.advances.tier * 2;
11 changes: 11 additions & 0 deletions effects/2o1X1mbnFEaazgDO.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
let roll = await new Roll("dp").roll();
roll.toMessage(this.script.getChatData());

if (roll.total >= 5)
{
await this.actor.applyHealing({wounds: 1, shock: 1}, {messageData : this.script.getChatData()});
this.actor.removeCondition("dying");
this.actor.removeCondition("exhausted");
this.actor.removeCondition("prone");
this.actor.removeCondition("dead");
}
1 change: 1 addition & 0 deletions effects/2oWIZuaebBy335X7.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return args.weapon || args.power
1 change: 1 addition & 0 deletions effects/2too0w42AmXEGbW1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
args.fields.difficulty -= 2 * (args.options.multi - 1);
1 change: 1 addition & 0 deletions effects/2xUXQUX3f1tUklhl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return !["willpower", "fellowship"].includes(args.attribute) || args.skill == "intimidation"
1 change: 1 addition & 0 deletions effects/3BoZezNKLz0UbcqM.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
args.fields.pool += (args.actor.system.advances.rank) * 3
4 changes: 4 additions & 0 deletions effects/3JxOovChAEOPU068.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
let wounds = Math.ceil(CONFIG.Dice.randomUniform() * 3)
let shock = Math.ceil(CONFIG.Dice.randomUniform() * 6);

await this.actor.applyHealing({wounds, shock}, {messageData : this.script.getChatData()});
1 change: 1 addition & 0 deletions effects/3LchJbIa1VNRwneO.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return args.skill != "medicae"
1 change: 1 addition & 0 deletions effects/3gUH2eynhZbUjqHX.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return !(args.weapon.name === "Paired Hekatarri Blades" && args.options.multi);
4 changes: 4 additions & 0 deletions effects/3hojzkE4Ojom9Kcz.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if (this.effect.sourceActor?.uuid == this.actor.uuid)
{
this.effect.updateSource({"flags.round" : game.combat.round});
}
8 changes: 8 additions & 0 deletions effects/3jdAfVeD9ckNmouC.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
if (this.actor.statuses.has("halfCover"))
{
args.fields.difficulty += 1;
}
else if (this.actor.statuses.has("fullCover"))
{
args.fields.difficulty += 1;
}
1 change: 1 addition & 0 deletions effects/40CuO0G1aCKWkReH.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return args.options.resolve || args.options.corruption
1 change: 1 addition & 0 deletions effects/4JYZtqxPGDojWdqY.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return args.options.resolve
6 changes: 6 additions & 0 deletions effects/4PKyEAY439MdUfCH.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
let weapons = ["Chainsword",
"Chainaxe",
"Power Sword",
"Power Fist",
"Unarmed Strike"]
return args.weapon && (weapons.includes(args.weapon.name) || args.weapon.keywords.includes("BOLT") || args.weapon.keywords.includes("ADEPTUS ASTARTES"))
1 change: 1 addition & 0 deletions effects/4dF20jKPuiuv0gcy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return args.options.conviction || args.options.resolve || args.weapon;
1 change: 1 addition & 0 deletions effects/4uRdeuQHAiO3o2RQ.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this.actor.applyDamage(0, {shock : 1});
1 change: 1 addition & 0 deletions effects/4vVFOoDbyVouBJaI.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions effects/53NTjNWaNTEisoIt.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
args.fields.difficulty += (1)
1 change: 1 addition & 0 deletions effects/56lX5USxmNE0rJoo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return !args.target.system.mob?.value;
1 change: 1 addition & 0 deletions effects/5879j2uObuDQY4R6.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
args.fields.difficulty -= 2;
1 change: 1 addition & 0 deletions effects/5A12EywlpDuJF7Sy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return !args.options.corruption && !args.options.mutation
1 change: 1 addition & 0 deletions effects/5Avn6epl75S6VZHF.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return args.skill != "psychicMastery"
4 changes: 4 additions & 0 deletions effects/5PBjhK6b1paiQSL0.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
let shock = (CONFIG.Dice.randomUniform() * 3) + 1
let report = await this.actor.applyDamage(0, {shock: 1});

this.script.message(`<span data-tooltip-direction="LEFT" data-tooltip="${report.breakdown}">Received ${report.shock} Shock</span>`);
8 changes: 8 additions & 0 deletions effects/5ZI2vWygrweuXVjh.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
if (args.target.statuses.has("fullCover"))
{
args.fields.difficulty -= 2;
}
else if (args.target.statuses.has("halfCover"))
{
args.fields.difficulty -= 1;
}
1 change: 1 addition & 0 deletions effects/5dcXsqAYfSc0XsGu.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return !args.weapon || (args.weapon.isRanged && args.weapon.traitList.pistol)
20 changes: 20 additions & 0 deletions effects/5uMGCreXCE2Lz2Fj.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
condition = this.actor.hasCondition("blinded");
if (condition)
{
await condition.delete();
this.script.notification("Removed Blinded");
}

let condition = this.actor.hasCondition("bleeding");
if (condition)
{
await condition.delete();
this.script.notification("Removed Bleeding");
}

condition = this.actor.hasCondition("poisoned");
if (condition)
{
await condition.delete();
this.script.notification("Removed Poisoned");
}
1 change: 1 addition & 0 deletions effects/5zi5aYysSkGrQaRf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
args.fields.damage += 2;
1 change: 1 addition & 0 deletions effects/62hMTw6MQiiYm0mg.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return args.fileds.range == "short";
1 change: 1 addition & 0 deletions effects/6AC775QniHCQ9WzK.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return !args.weapon.isMelee;
1 change: 1 addition & 0 deletions effects/6GtlOX0l9XA8MgWq.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return !args.target?.system.combat.fly;
7 changes: 7 additions & 0 deletions effects/6MfHNLZcAULy0cPX.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
let attribute = await ItemDialog.create(ItemDialog.objectToArray(systemConfig().attributes, this.effect.img), 1, {title : this.effect.name})

if (attribute[0])
{
this.item.updateSource({name : this.item.name.replace("Attribute", attribute[0].name)});
this.effect.updateSource({name : this.item.name, "flags.wrath-and-glory.attribute" : attribute[0].id})
}
1 change: 1 addition & 0 deletions effects/6O49JUv1z2bf7CGH.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return args.target?.effects.contents.some(e => e.statuses.has("halfCover") || e.statuses.has("fullCover"));
1 change: 1 addition & 0 deletions effects/6cGh0fZBduJtCAEy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return args.skill != "ballisticSkill"
1 change: 1 addition & 0 deletions effects/6gDZdFsjx5Fpn7no.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return !["intimidation", "leadership"].includes(args.skill)
1 change: 1 addition & 0 deletions effects/6jsNtkioqGJW2JJy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return args.attribute != "intellect"
2 changes: 2 additions & 0 deletions effects/6kzMfJv70NiCv84x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
let report = await this.actor.applyDamage(0, {mortal: 1});
this.script.message(`Received ${report.wounds} Mortal Wound`);
1 change: 1 addition & 0 deletions effects/6q2PhkCvoJqmtwdS.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return this.actor.statuses.has("halfCover") || this.actor.statuses.has("fullCover")
1 change: 1 addition & 0 deletions effects/6qyhFOQ3lgjrzusR.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return args.target.statuses.has("fullCover") || args.target.statuses.has("halfCover");
10 changes: 10 additions & 0 deletions effects/6wNMuZ5al7DPtsWX.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
let name = args.item._source.name;
if (name !== "Scything Talon" && name !== "Lash Whip")
{
return;
}

if (!args.item._source.system.traits.list.find(i => i.name == "inflict"))
{
args.item.system.traits.list.push({name : "inflict", rating:"Poisoned(4)"});
}
1 change: 1 addition & 0 deletions effects/6x9mD1GGnzqhjuOh.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this.actor.setupGenericTest("corruption", {fields: {difficulty: 1}})
1 change: 1 addition & 0 deletions effects/7biphiKt2ypBulRr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return !args.weapon || !args.weapon.isMelee;
2 changes: 2 additions & 0 deletions effects/7cDipKtebsB9pCEj.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions effects/7imBh0BPLrQnXG9I.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return args.weapon || args.power;
1 change: 1 addition & 0 deletions effects/7mnXZc4kMpkCGScW.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return args.skill == "scholar"
1 change: 1 addition & 0 deletions effects/7slYBl8Pv8czLe30.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return args.options.conviction || args.options.determination
8 changes: 8 additions & 0 deletions effects/8cWc8m3TKBh9q35p.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
let effects = this.item.effects.contents.filter(i => i.id != this.effect.id);

let choice = await ItemDialog.create(effects, 1, {title : this.effect.name, text: this.script.name});

if (choice[0])
{
choice[0].updateSource({"system.transferData.type" : "document"})
}
2 changes: 2 additions & 0 deletions effects/8gwRPxUjCTtMmJmZ.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
this.actor.combat.resilience.invulnerable = true;
this.actor.combat.resilience.armour += 2;
9 changes: 9 additions & 0 deletions effects/8wvVPtRfQtgAfAzs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
if (!this.actor.hasKeyword("PSYKER"))
{


let keyword = await fromUuid("Compendium.wng-core.items.Item.JVz6FoVEc7p1DJUj");

this.actor.createEmbeddedDocuments("Item", [keyword], {fromEffect: this.effect.id})

}
1 change: 1 addition & 0 deletions effects/91SCyNkOTrw4U4zJ.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return !["willpower", "fellowship"].includes(args.attribute)
1 change: 1 addition & 0 deletions effects/9DVUzshl2xnSKhJW.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return !args.target || !args.target.system.advances?.tier;
1 change: 1 addition & 0 deletions effects/9GC3eLhOC6YMEtdc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return !args.options.conviction && !args.options.determination
1 change: 1 addition & 0 deletions effects/9GRenPwwZaH576mF.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
args.fields.pool += (1);
4 changes: 4 additions & 0 deletions effects/9ItWr4dV38zN8Qsl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if (this.effect.sourceTest.testData.shifted.wounds)
{
await this.actor.applyHealing({wounds: this.effect.sourceTest.testData.shifted.wounds.dice.length, shock: 0}, {messageData : this.script.getChatData()});
}
1 change: 1 addition & 0 deletions effects/9aHFUvD1bKbwBv65.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this.effect.delete();
Loading

0 comments on commit f0e3115

Please sign in to comment.