Skip to content

Commit

Permalink
Add Underwater weapon property rune (#9271)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonward committed Aug 12, 2023
1 parent 5cb35e7 commit e478153
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packs/equipment/lionfish-spear-greater.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
}
},
"propertyRune1": {
"value": "wounding"
"value": "underwater"
},
"propertyRune2": {
"value": null
"value": "wounding"
},
"propertyRune3": {
"value": null
Expand Down
4 changes: 2 additions & 2 deletions packs/equipment/lionfish-spear.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
}
},
"propertyRune1": {
"value": "wounding"
"value": "underwater"
},
"propertyRune2": {
"value": null
"value": "wounding"
},
"propertyRune3": {
"value": null
Expand Down
18 changes: 15 additions & 3 deletions packs/other-effects/effect-aquatic-combat.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
{
"key": "Note",
"predicate": [
"fire"
"fire",
{
"not": "item:rune:property:underwater"
}
],
"selector": "all",
"text": "PF2E.SpecificRule.AquaticCombat.FireNote"
Expand All @@ -44,6 +47,9 @@
"item:category:unarmed",
"self:type:npc"
]
},
{
"not": "item:rune:property:underwater"
}
],
"selector": "melee-attack-roll",
Expand All @@ -61,7 +67,10 @@
{
"definition": [
"item:ranged",
"item:damage:type:piercing"
"item:damage:type:piercing",
{
"not": "item:rune:property:underwater"
}
],
"key": "AdjustStrike",
"mode": "multiply",
Expand All @@ -71,7 +80,10 @@
{
"key": "Note",
"predicate": [
"item:ranged"
"item:ranged",
{
"not": "item:rune:property:underwater"
}
],
"selector": "attack",
"text": "PF2E.SpecificRule.AquaticCombat.RangedNote"
Expand Down
8 changes: 8 additions & 0 deletions src/module/item/physical/runes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,14 @@ export const WEAPON_PROPERTY_RUNES: Record<WeaponPropertyRuneType, WeaponPropert
slug: "thundering",
traits: ["evocation", "magical", "sonic"],
},
underwater: {
level: 3,
name: "PF2E.WeaponPropertyRune.underwater.Name",
price: 50,
rarity: "common",
slug: "underwater",
traits: ["magical", "water"],
},
unholy: {
damage: {
dice: [
Expand Down
1 change: 1 addition & 0 deletions src/module/item/weapon/values.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ const WEAPON_PROPERTY_RUNE_TYPES = new Set([
"spellStoring",
"swarming",
"thundering",
"underwater",
"unholy",
"vorpal",
"wounding",
Expand Down
3 changes: 3 additions & 0 deletions static/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -5204,6 +5204,9 @@
"criticalSuccess": "On a critical hit, the target has to succeed at a @Check[type:fortitude|dc:24|name:Thundering Rune] save or be @UUID[Compendium.pf2e.conditionitems.Item.9PR9y0bi4JPKnHPR]{Deafened} for 1 minute (or 1 hour on a critical failure)."
}
},
"underwater": {
"Name": "Underwater"
},
"unholy": {
"Name": "Unholy",
"Note": {
Expand Down

0 comments on commit e478153

Please sign in to comment.