diff --git a/README.md b/README.md index 51b8118..2cc0cf4 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,8 @@ including a character sheet or an encounter) and **Account**. Aura of Protection, Diamond Soul, Slippery Mind and Jack of All Trades are counted on the sheet, by what is equipped (armor and shields are marked items) and by level in the class that gives them. +- **Armor holds Dexterity back** as in the rules: all of it counts toward AC + in light armor, at most +2 in medium, none in heavy. - **Stricter battles.** A spell with no slot of its level or higher left cannot be cast (cantrips never need one), and a player changes the weapon in hand only as the battle begins or on their own turn after attacking. diff --git a/backend/package.json b/backend/package.json index 66ca479..4c33d8f 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "backend", - "version": "1.30.0", + "version": "1.31.0", "private": true, "type": "commonjs", "main": "src/index.js", diff --git a/backend/seeds/hollowcrown.js b/backend/seeds/hollowcrown.js index 51fa17f..c9a1d50 100644 --- a/backend/seeds/hollowcrown.js +++ b/backend/seeds/hollowcrown.js @@ -1054,6 +1054,7 @@ const book = { }, { "name": "Kevlar Vest", + "armorType": "MEDIUM", "description": "A black Meridian vest of woven fibre, made to stop bullets. Vantage guards wear them.", "damageDice": null, "minLevel": 1, @@ -1069,6 +1070,7 @@ const book = { }, { "name": "Riot Gear", + "armorType": "HEAVY", "description": "A helmet with a clear visor, pads and a vest, as Meridian police wear to a riot. It is hot.", "damageDice": null, "minLevel": 1, @@ -1135,7 +1137,7 @@ const book = { }, { "name": "Silverleaf Mail", - "armorType": "MEDIUM", + "armorType": "LIGHT", "description": "A chain shirt woven from leaves of living silver, cool and quiet, light as a summer shirt. A gift of the Silverbough Court.", "damageDice": null, "minLevel": 5, @@ -1187,6 +1189,7 @@ const book = { }, { "name": "Lanternshield", + "armorType": "SHIELD", "description": "A round Underkin shield with a glass-fronted lantern set in its boss, burning a cold blue fungus-flame that never goes out.", "damageDice": null, "minLevel": 9, @@ -5642,7 +5645,7 @@ const book = { "Magic & Legendary Weapons — special abilities (apply by hand) (2 of 2)\n\nSeamcutter (starts at level 7, Legendary growth)\nSpecial ability.\n- Cut the Veil (once per long rest): as a bonus action, the wielder slashes a tiny Seam in the air, steps through, and appears up to 60 ft away in a space they can see.\n- The price: each time Cut the Veil is used, roll a d20. On a 1, a Rift Surge bursts out (roll on the table in Rift Surges).\n- Two-handed, heavy. No shield.\nWhere found. The wreck of the Rift Abomination in the Act II finale, at level 7.\n\nGloamfang (starts at level 8, Legendary growth)\nSpecial ability.\n- Shadowsheath: in dim light or darkness, the wielder can take the Hide action as a bonus action.\n- Drink the Dark (once per short rest): on a hit, the wielder regains hit points equal to the damage dealt. After the third use without a long rest, the wielder gains one level of exhaustion, and their reflection looks faintly grey until they rest.\n- Finesse, light, thrown (20/60 ft).\nWhere found. For sale at a shadowy stall in the Underkin Market (1,200 gp, or a secret), or as the prize in Market of Lost Things. Award it at level 9 (the party's level in the Market); its starting level of 8 only matters if you drop it earlier, as loot from a Gloam Stalker.\n\nMournbell (starts at level 9, Legendary growth)\nSpecial ability.\n- Toll for the Dead (once per long rest): as an action, the wielder rings the bell. Every undead within 30 ft must make a DC 15 Wisdom save or be frightened for 1 minute (repeating the save at the end of each of its turns). Each ally within 30 ft regains 1d8 hit points.\n- Peaceful passage: undead slain by it crumble to dust and cannot rise again.\nWhere found. From the redeemed Bone Abbess in the Bone Cathedral, Act IV, at level 9. Mournbell already starts at the top level, so its Legendary growth never shows; it is a finished artifact.", "Modern Relics — weapon rules (apply by hand)\n\nThe four modern rules: LOUD (guns, the nail gun and the chainsaw wake everything within 300 feet). JAMS on a natural 1; clearing it takes an action. AMMO is the Magazine item: a pistol magazine holds 15 shots, a shotgun’s 6 shells, a nail gun’s 30 nails. STRANGE to Aldervane: folk think modern weapons are wizardry, or cursed.\n\nPistol (starts at level 3, Standard growth)\nA black semi-automatic handgun, the kind every Vantage Dynamics security agent wears on their hip. It is the most common firearm the heroes will see, and the most tempting.\n- Range: 50/150 ft. Disadvantage on the attack beyond 50 ft, or with an enemy within 5 ft.\n- Ammo: 15 shots per Magazine. Firing uses one shot per attack.\n- Loud, jams on a natural 1.\n- Where found: two pistols from the guards in The Glass Tower (give them at level 4), one from the smugglers in Smugglers of Saltmere (level 4), and on the random loot tables in Appendix G. On the black market in Meridian, 50 gp or more, and Detective Hale will be furious.\n- Damage by level: Lv 3: 2d6 · Lv 4: 1d6+1d8 · Lv 5: 2d8 · Lv 6: 1d8+1d10 · Lv 7: 2d10 · Lv 8: 1d10+1d12 · Lv 9: 2d12.\n\nShotgun (starts at level 5, Standard growth)\nA pump-action shotgun with a scuffed wooden stock. Brutal up close, useless far away.\n- Range: 30/90 ft. Beyond 30 ft, halve the damage as well as rolling with disadvantage: the pellets spread out.\n- Two-handed. No shield while firing it.\n- Ammo: 6 shells per Magazine (call it a box of shells).\n- Loud, jams on a natural 1.\n- Knockback: when it hits a Medium or smaller creature within 15 ft, the creature is pushed 5 ft away.\n- Where found: the Act III random loot table in Appendix G (give it at level 7).\n- Damage by level: Lv 5: 2d8 · Lv 6: 1d8+1d10 · Lv 7: 2d10 · Lv 8: 1d10+1d12 · Lv 9: 2d12.\n\nTaser (starts at level 2, Standard growth)\nA yellow plastic stun gun that fires two barbed darts on crackling wires. It is not meant to kill, and its damage is low, but it stops a charging enemy in its tracks.\n- Range: 15 ft only. It cannot fire further.\n- Stun: a creature hit must make a DC 12 Constitution saving throw. On a failure, its speed drops to 0 and it cannot take reactions until the start of the wielder's next turn. Constructs and undead are immune (no nerves to scramble), and so is anything Huge or bigger.\n- Charges: 3 shots, then it is dead until recharged like a phone (in Meridian, beside a Seam, or with Static Surge). Track the charges on paper, not as magazines.\n- Jams on a natural 1. It is not loud: just a sharp crackle.\n- Where found: three tasers from the guards in The Glass Tower (give them at level 4), and on the random loot tables.\n- Damage by level: Lv 2: 1d6 · Lv 3: 1d8 · Lv 4: 1d10 · Lv 5: 1d12 · Lv 6: 2d6 · Lv 7: 1d6+1d8 · Lv 8: 2d8 · Lv 9: 1d8+1d10.\n\nBaseball Bat (starts at level 1, Standard growth)\nAn aluminium bat with tape on the handle. A hero from Aldervane thinks it is a very well-made club. A hero from Meridian knows exactly what to do with it.\n- Properties: none, really. It is a club that rings like a bell.\n- Clang: on a critical hit, the hollow CLANG echoes. Any creature within 10 ft of the target (other than the wielder) must make a DC 10 Wisdom save or be frightened until the end of its next turn. Goblins hate it.\n- Where found: Fixit Hardware in Port Meridian (about 1 gp), the Act I loot tables in Appendix G (one has \"SLUGGER\" written on it in marker).\n- Damage by level: Lv 1: 1d6 · Lv 2: 1d8 · Lv 3: 1d10 · Lv 4: 1d12 · Lv 5: 2d6 · Lv 6: 1d6+1d8 · Lv 7: 2d8 · Lv 8: 1d8+1d10 · Lv 9: 2d10.\n\nCrowbar (starts at level 1, Standard growth)\nA heavy steel crowbar, hooked at one end and flat at the other. Half weapon, half key.\n- Pry: a hero holding a crowbar has advantage on Strength checks to force open doors, chests, crates, grates and coffins.\n- Where found: the delivery van in The Troll Under Tollbridge, Fixit Hardware in Port Meridian (about 1 gp), and the random loot tables.\n- Damage by level: Lv 1: 1d6 · Lv 2: 1d8 · Lv 3: 1d10 · Lv 4: 1d12 · Lv 5: 2d6 · Lv 6: 1d6+1d8 · Lv 7: 2d8 · Lv 8: 1d8+1d10 · Lv 9: 2d10.\n\nFire Axe (starts at level 1, Standard growth)\nA red emergency axe with a pick on the back and \"IN CASE OF EMERGENCY\" painted on the handle. The first fire axe in the campaign came off Dee's bus.\n- Two-handed. No shield while swinging it.\n- Breaker: a fire axe deals double damage to wooden doors, barricades and objects (and to the Hexed Scarecrows, which the players will love).\n- Where found: from the goblins in Rattlejaw Cave in Act I (level 1); Fixit Hardware in Port Meridian (about 2 gp); the random loot tables.\n- Damage by level: Lv 1: 1d10 · Lv 2: 1d12 · Lv 3: 2d6 · Lv 4: 1d6+1d8 · Lv 5: 2d8 · Lv 6: 1d8+1d10 · Lv 7: 2d10 · Lv 8: 1d10+1d12 · Lv 9: 2d12.\n\nFlare Gun (starts at level 2, Standard growth)\nA fat orange pistol from a boat's emergency kit. It shoots a blazing flare that turns night into a red, flickering day.\n- Range: 40/120 ft. Loading: one shot, then it must be reloaded (an action).\n- Burning: a creature hit catches fire and takes 1d4 fire damage at the start of each of its turns until it (or someone next to it) uses an action to put the flames out. Creatures immune to fire ignore this.\n- Signal: fired into the sky, the flare lights a 60-ft radius with bright light for 1 minute, and can be seen for miles. Gloamlings in that light have disadvantage. It also tells every enemy for miles where you are.\n- Ammo: flares, tracked with the Magazine item (one magazine = one flare). It usually comes with 2.\n- Jams on a natural 1 (the flare fizzles in the barrel). Not loud: a pop and a hiss.\n- Where found: the Act II random loot table (level 4); a fishing boat in Saltmere; a Seam-wrecked lifeboat in Smugglers of Saltmere.\n- Damage by level: Lv 2: 1d8 · Lv 3: 1d10 · Lv 4: 1d12 · Lv 5: 2d6 · Lv 6: 1d6+1d8 · Lv 7: 2d8 · Lv 8: 1d8+1d10 · Lv 9: 2d10.\n\nNail Gun (starts at level 2, Standard growth)\nA battery-powered builder's nail gun. Not designed as a weapon. Very effective as one.\n- Range: 20/60 ft.\n- Rapid fire: once per turn, when the wielder hits with it, they can fire a second nail at the same target as a bonus action (roll another attack). This uses 2 nails.\n- Pin: on a critical hit against a creature standing next to a wall or wooden floor, the creature's clothes or wings are nailed down: its speed is 0 until it uses an action to tear free.\n- Ammo: 30 nails per Magazine (a strip of nails). The battery has 6 charges like a phone; each fight uses one.\n- Loud, jams on a natural 1.\n- Where found: Fixit Hardware in Port Meridian (about 3 gp with a box of nails), the Act II random loot table (level 4).\n- Damage by level: Lv 2: 1d6 · Lv 3: 1d8 · Lv 4: 1d10 · Lv 5: 1d12 · Lv 6: 2d6 · Lv 7: 1d6+1d8 · Lv 8: 2d8 · Lv 9: 1d8+1d10.\n\nChainsaw (starts at level 5, Standard growth)\nA petrol chainsaw with a cracked orange casing. It is heavy, terrifying and absolutely not subtle. Every Meridian horror movie the players have ever seen is about to come true, on their side for once.\n- Two-handed, heavy. No shield. Gnomes and halflings attack with disadvantage.\n- Starting it: an action to pull the cord, or a bonus action on a roll of 11+ on a d20. Once running, it runs until the fuel runs out or it stalls.\n- Fuel: a full tank is 10 rounds of running. Track rounds on paper. It usually turns up with half a tank (5 rounds). A refill of petrol can be bought in Meridian for almost nothing.\n- Timber! It deals an extra 1d10 damage to plant creatures and Blight creatures: Thornlings, the Rotwood Treant, the Blighted Stag and Vessa's Blight-grown horrors. Elves will be appalled to see it used on trees.\n- Loud (very), stalls on a natural 1 (an action to restart).\n- Terrifying: the first time it roars in a fight, enemies with an Intelligence of 7 or lower (beasts, goblins, ogres) must make a DC 12 Wisdom save or be frightened of the wielder until the end of their next turn.\n- Where found: Fixit Hardware in Port Meridian (about 6 gp), the Act III random loot table in Appendix G (level 7).\n- Damage by level: Lv 5: 2d10 · Lv 6: 1d10+1d12 · Lv 7: 2d12 · Lv 8: 3d8 · Lv 9: 2d8+1d10.\nGORE DIAL — read ONE version", "Item rules (what the item cards don’t say)\n\nHealing Potion: Regain 2d4+2 HP (more if given at a higher level). Also called a Potion of Healing in the acts. Price: 50 gp in Thornwick and Highmarch, 40 gp as faun salve, 60 gp in the Underkin Market, 75 gp from Mother Bramblewick. Found: Rattlejaw Cave and Highmarch (Act I), the Elderwood and Skullcrag (act2-rotting-wood, act2-ogre-king), the siege, sq-01, sq-02, sq-03.\n\nGreater Healing Potion: Regain 4d4+4 HP at level 7; more when given at level 9 in Act IV. Price: 150 gp in Highmarch (rare, only 4 for sale), 180 gp in the Underkin Market. Found: Ashpeak and the siege (act3-ashpeak, act3-siege), the Weeping Gate and the Citadel (ch-act4, act4-citadel), sq-14.\n\nHoly Water: Action: throw at a creature within 20 ft (ranged attack, DEX + proficiency) or splash one next to you. An undead or fiend takes 2d6 radiant; anything else is just wet. Poured into the dry font of the Bone Cathedral, it fills it with clean water. Price: 25 gp at the Ferryman's Tower in Highmarch and in the Underkin Market. Found: Quillon's gift (Act I), Vessa's shrine, the chapel in the siege.\n\nAlchemist's Fire: Action: throw at a creature within 20 ft (ranged attack). On a hit it takes the dice shown in fire damage at the start of each of its turns until someone uses an action and makes a DC 10 DEX check to put it out. Deadly to Hexed Scarecrows and the Rotwood Treant. Price: 50 gp. Found: Cinderscale kobold fire-pots.\n\nAntitoxin: Action to drink. Advantage on saves against poison for 1 hour. In the Witchfen it cures fen fever outright. Price: 50 gp in Highmarch, 30 gp from Bramblewick, 60 gp in the Underkin Market. Found: one per PC from Mother Bramblewick (Act I).\n\nBramble-Broth: Action: regain the dice shown and end one curse or the poisoned condition. Found: one of Bramblewick's Boons. Not for sale. \"I don't sell soup.\"\n\nPotion of Fire Resistance: Resistance to fire (half damage) for 1 hour. The best purchase before Ashpeak. Price: 150 gp from Quillon or Highmarch's apothecaries, from Act II onward. Found: the treasure tables.\n\nWyvern Poison: One dose per hit, wasted after 1 minute if unused. Found: 3 doses from the wyvern of Ashpeak with a DC 13 Medicine check.\n\nSpell Scroll: Add one pool entry per spell (\"Spell Scroll: Cure Wounds\") and set Starts at level to the character level needed for that spell under the Unlock Schedule (1st: 1, 2nd: 3, 3rd: 5). A non-caster can't use it. The scroll crumbles after one use. Price: 50 gp (1st), 150 gp (2nd), 300 gp (3rd), only from Quillon. Found: treasure tables.\n\nFlashlight: Gloamlings and other light-hating creatures in the beam have disadvantage on attacks. Recharge in Meridian, an hour within 30 ft of a Seam (1 charge), or Static Surge. The flashlight from sq-08 is a heavy-duty one with 10 charges. Found: Dee's bus kit (Act I), sq-05, the siege, the Gloam Line.\n\nSmartphone: Each scene of use spends a charge. The camera flash startles beasts and blinds a gloamling for 1 round (once per scene). Higher-level phones in the acts (Zuri's at 5, Rob's at 6) are simply sturdier and better charged. Found: Tyler's phone, battery dead (Act I); Zuri's and the Hexers' (act2-glass-tower, sq-02); Rob's phone that can call Meridian; Gus's in the Citadel.\n\nMagazine: Swapping magazines is free. There is no ammunition in Aldervane except what fell through. Found: Vantage Tower, the smugglers, the Underkin Market's Vantage box.\n\nRoad Flare: Bright light 30 ft, dim 30 ft more; seen for a mile in the Hollow Deep. Jammed into a creature (melee attack): the dice in fire damage. Lights a fuse or burns the Hex Doll. Price: 25 gp black-market (Act II), 20 gp in the Underkin Market. Found: Dee's bus kit and Lenny (Act I), act2-finale, the siege, the Gloam Line, sq-05, sq-08.\n\nFirst Aid Kit: Each kit is one use; lower the quantity. A creature can be patched once per short rest. Kits given at level 5 (the hospital's, sq-07) roll bigger dice. Price: $40 in Meridian (under 1 gp). Found: Priya's gift (Act I), Vantage Tower, act2-finale.\n\nEnergy Drink: Gain the dice in temporary HP and advantage on your next save against sleep or exhaustion within the hour. A second can within an hour: DC 10 CON save or jittery (poisoned) for 10 minutes. Price: $3 in Meridian; 25 gp black-market; 15 gp in the Underkin Market. Found: Vantage Tower, the Gloam Line vending machine, sq-05, sq-08.\n\nSmoke Grenade: Heavily obscured area; strong wind clears it in 1 round. Perfect for escaping the Citadel. Price: 75 gp in the Underkin Market (two in stock).\n\nBus Keys: At level 1 they just jingle. After sq-02 Stage 2, raise them to level 3 and the headlight power works. At Stage 4, remove them and give the Rift Runner.\n\nRift Runner: Opens its own Seam once per long rest, starting within 1 mile of a Seam. Speed 60 ft per round, 30 mph on roads, carries the party and 20 more. Headlight Glare as the keys, DC 14. AC 15, 120 HP; Brannoc repairs 10 HP per 10 gp. Ramming: each creature in its path takes 2d6 bludgeoning. Dee drives; a PC can (DC 12 DEX each round). Found: sq-02 Stage 4. Arrives at act3-siege and the finale.\n\nRiftstone: Warns of any Seam opening within 1 mile. Its pull spins confused until the king wakes, then points true. In Act IV it points down at the Shard of Night. Use it whenever the party is lost. Found: Skrit, Rattlejaw Cave (Act I).\n\nShard of Dawn: Its light is real daylight: gloamlings in it have disadvantage, and in the Deep it gives advantage on Whispers saves. Found: Queen Ilyndra, after Vessa falls.\n\nShard of Iron: Reaction-free; declare it after damage is rolled. Keep it at level 4 (2d6). Found: Gorrug's club Thinker.\n\nShard of Ember: Also protects from killing cold. Found: Cindermaw's hoard.\n\nShard of Night: Roleplay the whispers: it promises what the PC wants most. It sees through Shadow Veil. Once it touches the Crown, it snaps into place. Found: Morvain's staff; if Malvoy fled with a shard, he carries it in the Deep.\n\nHex Doll: Only if the party keeps it intact (most burn it). It warns of curses and hexes nearby: a fine early warning of Vessa's moths. Bramblewick offers 100 gp for it. Found: the Sisters' hut (Act I).\n\nHeartroot: The crones' root (level 3) is tainted: anyone healed by it hears Vessa laugh, until she dies. The Elderwood's gift (level 4) is clean. Found: the Sisters' hut (Act I); the Blighted Stag trial.\n\nWardens' Badge: Advantage on Persuasion with Aldervane officials, soldiers and innkeepers; free lodging at royal posts. In the Epilogue it becomes the badge of the Wardens of the Veil: raise it to level 9 as an honour. Found: the knighting (Act I).\n\nFerryman's Coin: One coin per PC per crossing; the Ferryman takes nothing else. Placed on a corpse's eyes, it stops that body being raised as undead. Found: the Old Shrine at the Weeping Gate, the leech swarms, the Bone Abbess, sq-13.\n\nSliver of Black Flame: In the Citadel, its holder has advantage on attacks against Morvain while he is invisible. Found: the ashes of the black heart in the Hollow Deep.\n\nPip's Panpipes: Anyone can play them; bards get advantage on Performance while using them. Found: sq-03.\n\nWard Charm: Declare after the hit is announced, before damage. Price: 200 gp (Ferryman's Tower), 250 gp (Underkin Market). Found: Skullcrag's hoard, the wyvern's nest at level 6, a gloam stalker's cloak at level 9. Bramblewick's charm: the pool entry starts at 5, so if the party finishes sq-06 below level 5, add a second entry, \"Bramblewick's Ward Charm\", identical but starting at level 3.\n\nGloam Lantern: No wandering-monster roll for its light in the Deep. Price: 30 gp (Underkin Market), 100 gp from Quillon in Highmarch (free if asked nicely) (act3-reforging, act4-underkin).\n\nGriffon Whistle: Use the library Griffon. Useless underground or in Meridian. Found: sq-10; used in the siege.\n\nShield Ward: +2 AC while equipped, set as its effect (not with a Shield or Tower Shield); the hand stays free. Once per long rest, as a reaction when hit, +5 AC against that attack. Uses one equip slot. Price: 400 gp (Underkin Market). Found: Cindermaw's hoard.\n\nVessa's Moth Locket: Morvain and anyone under Nondetection show only darkness. Found: treasure tables, Rotheart Grove.\n\nHollow Knight's Helm: A temptation item: very useful, quietly corrupting. Found: a fallen Hollow Knight after the siege.", - "Armor and AC on the site\n\nAC is 10 + Dexterity modifier + whatever equipped gear gives + the DM’s Extra AC. Armor is a flat bonus (its standard AC less 10), so medium and heavy armor need a correction in Extra AC for a nimble hero:\nLight (Padded +1, Leather +1, Studded Leather +2, Motorcycle Leathers +2) · none\nMedium (Hide +2, Chain Shirt +3, Kevlar Vest +3, Scale Mail +4, Breastplate +4, Half Plate +5, Cinderscale Armor +5) · −(DEX mod − 2) if the DEX mod is above +2\nHeavy (Ring Mail +4, Chain Mail +6, Splint +7, Riot Gear +7, Plate +8, Gauntlet Plate +9) · −DEX mod\nSilverleaf Mail (+4) has no DEX cap: no correction. Shields: Shield +2, Riot Shield +2 (+2 more against ranged, in the player’s head), Tower Shield +3, Lanternshield +3; the Shield Ward (+2) takes the place of a shield.\n\nExtra AC is also where class features go: barbarian Unarmored Defense (CON mod, no armor), monk Unarmored Defense (WIS mod, no armor or shield), Draconic Resilience (+3, no armor), the Defense fighting style (+1 in armor), the Toughened boon (+1). Never set it for the Shield spell.\n\nMage Armor: give each caster who knows it the “Mage Armor (spell)” item (+3 AC). They equip it when they cast the spell and unequip it when it ends; it takes an equip slot.\n\nStarting armor is free: a hero who did not pick any is given one that fits their class (leather for rogues and bards, chain mail for fighters and paladins, a chain shirt or hide for clerics, druids and rangers).\n\nMagic armor comes from the story: Silverleaf Mail (level 5) from the Silverbough Court for heroes who earn the queen’s trust; Cinderscale Armor (level 7) in Cindermaw’s hoard or bargain; Gauntlet Plate (level 8) from Dame Rowena after the siege, to a hero who fought on the walls; the Lanternshield (level 9) in the Underkin Market for 900 gp. A Kevlar Vest comes off a Vantage guard; Riot Gear from the police or the Vantage armoury.\n\nWorn gear from the library (one per hero per act at most; never both protection items to one hero before Act III): Sentinel Charm and Gloves of Thievery from level 3, Boots of Striding and Cloak of Elvenkind 4, Ring of Protection 5, Gauntlets of Might and Stone of Good Luck 6, Cloak of Protection and Amulet of Health 7, Headband of Intellect 8." + "Armor and AC on the site\n\nAC is 10 + Dexterity modifier + whatever equipped gear gives + the DM’s Extra AC. Armor is a bonus (its standard AC less 10) and is marked with what kind it is, and the sheet works out how much Dexterity counts in it. No correction in Extra AC is needed:\nLight (Padded +1, Leather +1, Studded Leather +2, Motorcycle Leathers +2) · all of the DEX mod\nMedium (Hide +2, Chain Shirt +3, Kevlar Vest +3, Scale Mail +4, Breastplate +4, Half Plate +5, Cinderscale Armor +5) · at most +2 of it\nHeavy (Ring Mail +4, Chain Mail +6, Splint +7, Riot Gear +7, Plate +8, Gauntlet Plate +9) · none of it\nSilverleaf Mail (+4) has no DEX cap, so it is marked as light armor. Shields: Shield +2, Riot Shield +2 (+2 more against ranged, in the player’s head), Tower Shield +3, Lanternshield +3; the Shield Ward (+2) takes the place of a shield.\n\nThe sheet also works out barbarian Unarmored Defense (CON mod, no armor), monk Unarmored Defense (WIS mod, no armor or shield) and Draconic Resilience (13 + DEX, no armor): do not put those in Extra AC. Extra AC is for what is left: the Defense fighting style (+1 in armor), the Toughened boon (+1). Never set it for the Shield spell.\n\nMage Armor: give each caster who knows it the “Mage Armor (spell)” item (+3 AC). They equip it when they cast the spell and unequip it when it ends; it takes an equip slot.\n\nStarting armor is free: a hero who did not pick any is given one that fits their class (leather for rogues and bards, chain mail for fighters and paladins, a chain shirt or hide for clerics, druids and rangers).\n\nMagic armor comes from the story: Silverleaf Mail (level 5) from the Silverbough Court for heroes who earn the queen’s trust; Cinderscale Armor (level 7) in Cindermaw’s hoard or bargain; Gauntlet Plate (level 8) from Dame Rowena after the siege, to a hero who fought on the walls; the Lanternshield (level 9) in the Underkin Market for 900 gp. A Kevlar Vest comes off a Vantage guard; Riot Gear from the police or the Vantage armoury.\n\nWorn gear from the library (one per hero per act at most; never both protection items to one hero before Act III): Sentinel Charm and Gloves of Thievery from level 3, Boots of Striding and Cloak of Elvenkind 4, Ring of Protection 5, Gauntlets of Might and Stone of Good Luck 6, Cloak of Protection and Amulet of Health 7, Headband of Intellect 8." ], "libraryItems": [ { diff --git a/backend/src/game/calculations.js b/backend/src/game/calculations.js index c8e0428..0a3dd62 100644 --- a/backend/src/game/calculations.js +++ b/backend/src/game/calculations.js @@ -73,6 +73,15 @@ function armorClass(dexMod, armorBonus = 0) { return 10 + dexMod + armorBonus; } +// How much of a Dexterity modifier counts toward AC in the armor worn: all +// of it in light armor or none, at most +2 in medium armor, and none of it +// (a penalty included) in heavy armor. +function armorDexterity(dexMod, worn = null) { + if (worn === 'HEAVY') return 0; + if (worn === 'MEDIUM') return Math.min(dexMod, 2); + return dexMod; +} + function initiative(dexMod) { return dexMod; } @@ -290,7 +299,9 @@ function activeGear(character) { // The armor on their back (the heaviest, should there be two) and whether // a shield is on their arm: class features turn on what is worn. const kinds = held.map((h) => h.entry.armorType).filter(Boolean); - const armor = { worn: ['HEAVY', 'MEDIUM', 'LIGHT'].find((kind) => kinds.includes(kind)) || null, shield: kinds.includes('SHIELD') }; + const worn = ['HEAVY', 'MEDIUM', 'LIGHT'].find((kind) => kinds.includes(kind)) || null; + const suit = worn ? held.find((h) => h.entry.armorType === worn) : null; + const armor = { worn, name: suit ? suit.entry.name : null, shield: kinds.includes('SHIELD') }; for (const { entry } of held) { for (const effect of Array.isArray(entry.effects) ? entry.effects : []) { if (GEAR_STATS.includes(effect.stat) && Number.isInteger(effect.amount) && effect.amount !== 0) { @@ -358,6 +369,14 @@ function computeCharacterSheet(character, skillProficiencies = [], saveProficien // What their class features do to the numbers below (classFeatures.js). const modifiers = Object.fromEntries(ABILITIES.map((ability) => [ability, abilities[ability].modifier])); const features = classFeatureEffects(classes, modifiers, profBonus, gear.armor); + // Medium and heavy armor hold Dexterity back; said on the gear card when it bites. + const acDex = armorDexterity(abilities.DEX.modifier, gear.armor.worn); + if (acDex !== abilities.DEX.modifier) { + gear.notes.push({ + source: gear.armor.name, + note: gear.armor.worn === 'HEAVY' ? 'Heavy armor: Dexterity does not count toward AC.' : 'Medium armor: at most +2 from Dexterity counts toward AC.', + }); + } const saves = {}; for (const ability of ABILITIES) { @@ -398,7 +417,7 @@ function computeCharacterSheet(character, skillProficiencies = [], saveProficien abilities, proficiencyBonus: profBonus, // Unarmored Defense and the like replace the 10 + DEX that AC starts from. - armorClass: (features.acBase !== null ? features.acBase + armorBonus : armorClass(abilities.DEX.modifier, armorBonus)) + fromGear('AC'), + armorClass: (features.acBase !== null ? features.acBase + armorBonus : armorClass(acDex, armorBonus)) + fromGear('AC'), initiative: initiative(abilities.DEX.modifier) + features.halfProficiency + fromGear('INITIATIVE'), // A speed the DM has set is their last word: a class's extra speed is // added to the species' own speed only. @@ -565,6 +584,7 @@ module.exports = { passivePerception, passiveScore, armorClass, + armorDexterity, initiative, hpMax, spellSaveDC, diff --git a/backend/src/game/classFeatures.test.js b/backend/src/game/classFeatures.test.js index fa34121..840742f 100644 --- a/backend/src/game/classFeatures.test.js +++ b/backend/src/game/classFeatures.test.js @@ -132,3 +132,37 @@ describe('multiclassed', () => { expect(effects).toEqual({ acBase: null, speed: 0, hp: 0, saveBonus: 0, saveProficiencies: [], halfProficiency: 0, inForce: [] }); }); }); + +describe('Dexterity in armor', () => { + const { armorDexterity } = require('./calculations'); + // Dexterity 18 (+4), and a clumsy one at 8 (-1). + const nimble = (inventoryItems) => sheet({ characterClass: 'FIGHTER', dexScore: 17, inventoryItems }); + const clumsy = (inventoryItems) => sheet({ characterClass: 'FIGHTER', dexScore: 7, inventoryItems }); + + test('all of it in light armor or none, at most +2 in medium, none in heavy', () => { + expect([null, 'LIGHT', 'MEDIUM', 'HEAVY', 'SHIELD'].map((worn) => armorDexterity(4, worn))).toEqual([4, 4, 2, 0, 4]); + expect([null, 'LIGHT', 'MEDIUM', 'HEAVY'].map((worn) => armorDexterity(-1, worn))).toEqual([-1, -1, -1, 0]); + }); + + test('the sheet’s AC follows, and the gear card says why', () => { + expect(nimble([]).armorClass).toBe(14); + expect(nimble([wearing('Leather Armor', 'LIGHT', 1)]).armorClass).toBe(15); + const scale = nimble([wearing('Scale Mail', 'MEDIUM', 4)]); + expect(scale.armorClass).toBe(16); // 10 + 2 of the 4 + 4 + expect(scale.gear.notes).toEqual([{ source: 'Scale Mail', note: 'Medium armor: at most +2 from Dexterity counts toward AC.' }]); + const plate = nimble([wearing('Plate Armor', 'HEAVY', 8), wearing('Shield', 'SHIELD', 2)]); + expect(plate.armorClass).toBe(20); // 18, and the shield + expect(plate.gear.notes[0]).toEqual({ source: 'Plate Armor', note: 'Heavy armor: Dexterity does not count toward AC.' }); + // Heavy armor hides a Dexterity penalty too; medium does not. + expect(clumsy([wearing('Plate Armor', 'HEAVY', 8)]).armorClass).toBe(18); + expect(clumsy([wearing('Scale Mail', 'MEDIUM', 4)]).armorClass).toBe(13); + // Nothing to say when the armor holds nothing back, and only Dexterity's part in AC changes. + expect(sheet({ characterClass: 'FIGHTER', inventoryItems: [wearing('Scale Mail', 'MEDIUM', 4)] }).gear.notes).toEqual([]); + expect(plate.initiative).toBe(4); + expect(plate.saves.DEX.bonus).toBe(4); + }); + + test('an item with +AC that is not marked as armor holds nothing back', () => { + expect(nimble([wearing('Ring of Protection', null, 1)]).armorClass).toBe(15); + }); +}); diff --git a/backend/src/game/data/itemsLibrary.js b/backend/src/game/data/itemsLibrary.js index 5f35468..55cba01 100644 --- a/backend/src/game/data/itemsLibrary.js +++ b/backend/src/game/data/itemsLibrary.js @@ -3,11 +3,12 @@ // matches the `Item` Prisma model minus `id`/`campaignId`, plus a stable `key` // for "add to campaign" lookups and a `category` for the library picker. // -// Armor here is a flat bonus to AC on top of 10 + Dexterity, because that is -// how gear effects work (game/calculations.js, GEAR_STATS): the standard -// rules' "replaces 10 + DEX" and "DEX bonus capped at 2" are not modelled. -// Each suit's bonus is its standard AC less 10, and what the bonus cannot say -// is in the note. A DM who wants it stricter edits the copy in their campaign. +// Armor's AC is a bonus on top of 10 + Dexterity, because that is how gear +// effects work (game/calculations.js, GEAR_STATS): each suit's bonus is its +// standard AC less 10. What kind of armor it is (armorType, from the category) +// tells the sheet how much Dexterity counts in it: all of it in light armor, +// at most +2 in medium, none in heavy (calculations.js, armorDexterity). +// What neither can say (a Strength requirement, Stealth) is in the note. const STEALTH = 'Disadvantage on Stealth checks.'; const ARMOR_TYPE = { 'Light Armor': 'LIGHT', 'Medium Armor': 'MEDIUM', 'Heavy Armor': 'HEAVY', Shields: 'SHIELD' }; @@ -39,17 +40,17 @@ const ITEM_LIBRARY = [ armor('studded-leather', 'Studded Leather', 'Light Armor', 2, 'Tough leather set with close rivets and spikes.'), // Medium armor - armor('hide-armor', 'Hide Armor', 'Medium Armor', 2, 'Thick furs and pelts.', 'Standard rules: counts at most +2 from Dexterity.'), - armor('chain-shirt', 'Chain Shirt', 'Medium Armor', 3, 'Interlocking rings worn between layers of clothing.', 'Standard rules: counts at most +2 from Dexterity.'), - armor('scale-mail', 'Scale Mail', 'Medium Armor', 4, 'A coat and leggings of leather covered in overlapping metal scales.', `${STEALTH} Standard rules: counts at most +2 from Dexterity.`), - armor('breastplate', 'Breastplate', 'Medium Armor', 4, 'A fitted metal chest piece worn with supple leather.', 'Standard rules: counts at most +2 from Dexterity.'), - armor('half-plate', 'Half Plate', 'Medium Armor', 5, 'Shaped metal plates covering most of the body.', `${STEALTH} Standard rules: counts at most +2 from Dexterity.`), + armor('hide-armor', 'Hide Armor', 'Medium Armor', 2, 'Thick furs and pelts.', 'Medium armor: at most +2 from Dexterity counts (worked out on the sheet).'), + armor('chain-shirt', 'Chain Shirt', 'Medium Armor', 3, 'Interlocking rings worn between layers of clothing.', 'Medium armor: at most +2 from Dexterity counts (worked out on the sheet).'), + armor('scale-mail', 'Scale Mail', 'Medium Armor', 4, 'A coat and leggings of leather covered in overlapping metal scales.', `${STEALTH} Medium armor: at most +2 from Dexterity counts (worked out on the sheet).`), + armor('breastplate', 'Breastplate', 'Medium Armor', 4, 'A fitted metal chest piece worn with supple leather.', 'Medium armor: at most +2 from Dexterity counts (worked out on the sheet).'), + armor('half-plate', 'Half Plate', 'Medium Armor', 5, 'Shaped metal plates covering most of the body.', `${STEALTH} Medium armor: at most +2 from Dexterity counts (worked out on the sheet).`), // Heavy armor: slow, loud, and in the standard rules it ignores Dexterity. - armor('ring-mail', 'Ring Mail', 'Heavy Armor', 4, 'Leather armor with heavy rings sewn into it.', `${STEALTH} Standard rules: adds no Dexterity.`), - armor('chain-mail', 'Chain Mail', 'Heavy Armor', 6, 'Interlocking metal rings over a layer of quilted fabric, with gauntlets.', `${STEALTH} Standard rules: adds no Dexterity, and needs Strength 13.`, [{ stat: 'SPEED', amount: -10 }]), - armor('splint-armor', 'Splint Armor', 'Heavy Armor', 7, 'Narrow vertical strips of metal riveted to a leather backing.', `${STEALTH} Standard rules: adds no Dexterity, and needs Strength 15.`, [{ stat: 'SPEED', amount: -10 }]), - armor('plate-armor', 'Plate Armor', 'Heavy Armor', 8, 'Shaped, interlocking metal plates covering the whole body.', `${STEALTH} Standard rules: adds no Dexterity, and needs Strength 15.`, [{ stat: 'SPEED', amount: -10 }]), + armor('ring-mail', 'Ring Mail', 'Heavy Armor', 4, 'Leather armor with heavy rings sewn into it.', `${STEALTH} Heavy armor: Dexterity does not count (worked out on the sheet).`), + armor('chain-mail', 'Chain Mail', 'Heavy Armor', 6, 'Interlocking metal rings over a layer of quilted fabric, with gauntlets.', `${STEALTH} Heavy armor: Dexterity does not count (worked out on the sheet). Standard rules: needs Strength 13.`, [{ stat: 'SPEED', amount: -10 }]), + armor('splint-armor', 'Splint Armor', 'Heavy Armor', 7, 'Narrow vertical strips of metal riveted to a leather backing.', `${STEALTH} Heavy armor: Dexterity does not count (worked out on the sheet). Standard rules: needs Strength 15.`, [{ stat: 'SPEED', amount: -10 }]), + armor('plate-armor', 'Plate Armor', 'Heavy Armor', 8, 'Shaped, interlocking metal plates covering the whole body.', `${STEALTH} Heavy armor: Dexterity does not count (worked out on the sheet). Standard rules: needs Strength 15.`, [{ stat: 'SPEED', amount: -10 }]), // Shields armor('shield', 'Shield', 'Shields', 2, 'Wood or metal, carried in one hand.'), diff --git a/backend/src/routes/api.integration.test.js b/backend/src/routes/api.integration.test.js index 9c2e836..e5025e7 100644 --- a/backend/src/routes/api.integration.test.js +++ b/backend/src/routes/api.integration.test.js @@ -2638,7 +2638,7 @@ describe('gear effects', () => { const quick = async (auth = playerAuth) => (await request(app).get(`${ch}/quick-stats`).set(auth)).body.quickStats; const before = (await sheet()).sheet; - expect(before.gear).toEqual({ effects: [], notes: [], armor: { worn: null, shield: false } }); + expect(before.gear).toEqual({ effects: [], notes: [], armor: { worn: null, name: null, shield: false } }); // Only the DM says what gear does, and only with numbers the sheet has. const mail = { @@ -4234,11 +4234,12 @@ describe('class features on the sheet', () => { expect(s).toMatchObject({ armorClass: 14, speed: 40 }); expect(s.features.map((f) => f.name)).toEqual(['Fast Movement']); - // The DM says what kind of thing an item is. Heavy: the extra speed goes. Not armor: all of it is back, on top of the +2. + // The DM says what kind of thing an item is. Heavy: the extra speed goes, and Dexterity + // no longer counts (10 + the armor's 2). Not armor: all of it is back, on top of the +2. expect((await request(app).patch(`${c}/items/${hide.id}`).set(playerAuth).send({ armorType: 'HEAVY' })).status).toBe(403); expect((await request(app).patch(`${c}/items/${hide.id}`).set(dmAuth).send({ armorType: 'PLATE' })).status).toBe(400); await request(app).patch(`${c}/items/${hide.id}`).set(dmAuth).send({ armorType: 'HEAVY' }); - expect(await sheet()).toMatchObject({ armorClass: 14, speed: 30 }); + expect(await sheet()).toMatchObject({ armorClass: 12, speed: 30 }); await request(app).patch(`${c}/items/${hide.id}`).set(dmAuth).send({ armorType: null }); expect(await sheet()).toMatchObject({ armorClass: 17, speed: 40 }); diff --git a/docs/CHARACTERS.md b/docs/CHARACTERS.md index 15872c1..43850ec 100644 --- a/docs/CHARACTERS.md +++ b/docs/CHARACTERS.md @@ -816,7 +816,7 @@ themselves. | Stat | Formula | |---|---| -| Armor Class | 10 + DEX modifier (or what a class feature gives without armor, below) + equipped gear + the DM's extra AC | +| Armor Class | 10 + DEX modifier (as much of it as the armor worn lets through; or what a class feature gives without armor, below) + equipped gear + the DM's extra AC | | Initiative | DEX modifier + a bard's Jack of All Trades + equipped gear | | Speed | Species speed + a class's extra speed, unless a speed override is set, + equipped gear | | Passive Perception | 10 + Perception skill bonus + equipped gear | @@ -834,6 +834,21 @@ item is doing what. An effect on an ability score changes the score itself, so everything in sections 5 to 10 that is built on that ability moves too. The full rules are in [ITEMS.md](ITEMS.md), section 5. +**Dexterity in armor.** How much of the DEX modifier counts toward AC goes by +the armor that is equipped (items are marked light, medium or heavy: +[ITEMS.md](ITEMS.md), section 5): + +| Armor worn | DEX modifier counted toward AC | +|---|---| +| None, or light | All of it | +| Medium | At most +2 (a penalty counts in full) | +| Heavy | None of it, a penalty included | + +Only AC is affected: initiative, Dexterity saves and skills use the full +modifier. When the armor is holding something back, the "From Equipped Gear" +card says so. A shield changes nothing here, and neither does an item with ++AC that is not marked as armor. + ### Class features that are counted These class features change a number, so the sheet works them out. Nobody @@ -1381,9 +1396,8 @@ calculations for them. rest and lists conditions, but applies none of their effects - Counters for species traits, talents and Boons, and uses the special abilities give "a few times per day" beyond the ones in section 7 -- Armor rules beyond a flat bonus to AC: medium armor does not cap Dexterity - and heavy armor does not ignore it. (Being unarmored is modelled: see - "Class features that are counted" in section 8) +- Armor proficiency, a Strength score needed for heavy armor, and + disadvantage on Stealth (these are notes on the armor) - Weapon proficiency (everyone is proficient with everything) - Shared rolls: a roll made from the sheet is seen only by whoever clicked, and is not recorded diff --git a/docs/GAME_RULES_REFERENCE.md b/docs/GAME_RULES_REFERENCE.md index c31e852..8085426 100644 --- a/docs/GAME_RULES_REFERENCE.md +++ b/docs/GAME_RULES_REFERENCE.md @@ -66,6 +66,11 @@ passivePerception = 10 + perceptionSkillBonus armorClass = 10 + dexModifier + armorBonus ``` +`dexModifier` here is as much of it as the equipped armor lets through +(`armorDexterity`): all of it with none or light armor, at most +2 in medium +armor, none in heavy armor. Armor is an item marked with its kind +(`Item.armorType`); its own AC is a gear effect. + Without armor, a class feature can replace the `10 + dexModifier` part: Unarmored Defense (barbarian: `10 + DEX + CON`; monk, also without a shield: `10 + DEX + WIS`) and Draconic Resilience (`13 + DEX`). The best one is used, diff --git a/docs/ITEMS.md b/docs/ITEMS.md index 819a560..dbe82a8 100644 --- a/docs/ITEMS.md +++ b/docs/ITEMS.md @@ -170,8 +170,11 @@ for a penalty, on one of the sheet's numbers: **Armor and shields are marked as such.** An item's pop-out has an **Armor** menu: not armor (the default), light, medium, heavy, or shield. Its AC is -still an effect (+AC); the mark says what kind of thing it is, because some -class features depend on what is worn: a barbarian's and a monk's Unarmored +still an effect (+AC, its usual AC less 10); the mark says what kind of thing +it is. The sheet counts **all** of a character's Dexterity modifier toward AC +in light armor, **at most +2** in medium armor and **none** in heavy armor +([CHARACTERS.md](CHARACTERS.md), section 8), so plate is +8 and comes to AC +18 whoever wears it. Some class features depend on what is worn too: a barbarian's and a monk's Unarmored Defense and a draconic sorcerer's scales stop while armor is equipped, a monk's also stop behind a shield, and a barbarian's extra speed stops in heavy armor ([CHARACTERS.md](CHARACTERS.md), section 8). The library's armor @@ -254,8 +257,8 @@ and [ENCOUNTERS.md](ENCOUNTERS.md), section 10. ## 9. What is not modelled -- Armor rules beyond a flat bonus: armor does not replace 10 + DEX, cap the - DEX bonus or need a Strength score (set the AC effect to match) +- A Strength score needed for heavy armor, armor proficiency and Stealth + disadvantage: these are notes on the armor for the table to apply - Effects on attack rolls, damage, spell save DC or proficiency bonus - Effects that depend on something (only at night, only against undead), or that grow with the item's level @@ -275,10 +278,10 @@ and [ENCOUNTERS.md](ENCOUNTERS.md), section 10. Everything "📚 From Library" offers. "While equipped" is what the item does to the sheet of whoever has it on. -Armor is a flat bonus to AC on top of 10 + Dexterity: each suit's bonus is its -standard AC less 10. What a flat bonus cannot say (heavy armor ignoring -Dexterity, a Strength requirement, disadvantage on Stealth) is in the note, -for the DM to apply or to build into the numbers of their own copy. +Armor is a bonus to AC on top of 10 + Dexterity: each suit's bonus is its +standard AC less 10, and it is marked light, medium or heavy, which sets how +much Dexterity counts in it (section 5). What that cannot say (a Strength +requirement, disadvantage on Stealth) is in the note, for the DM to apply. This list is written from the app's own data by `npm run docs:lists` (in `/backend`). Re-run it after changing the data; do not edit the list by hand. @@ -295,20 +298,20 @@ This list is written from the app's own data by `npm run docs:lists` (in `/backe | Item | While equipped | Note | Dice | Description | |---|---|---|---|---| -| Hide Armor | +2 AC | Standard rules: counts at most +2 from Dexterity. | — | Thick furs and pelts. | -| Chain Shirt | +3 AC | Standard rules: counts at most +2 from Dexterity. | — | Interlocking rings worn between layers of clothing. | -| Scale Mail | +4 AC | Disadvantage on Stealth checks. Standard rules: counts at most +2 from Dexterity. | — | A coat and leggings of leather covered in overlapping metal scales. | -| Breastplate | +4 AC | Standard rules: counts at most +2 from Dexterity. | — | A fitted metal chest piece worn with supple leather. | -| Half Plate | +5 AC | Disadvantage on Stealth checks. Standard rules: counts at most +2 from Dexterity. | — | Shaped metal plates covering most of the body. | +| Hide Armor | +2 AC | Medium armor: at most +2 from Dexterity counts (worked out on the sheet). | — | Thick furs and pelts. | +| Chain Shirt | +3 AC | Medium armor: at most +2 from Dexterity counts (worked out on the sheet). | — | Interlocking rings worn between layers of clothing. | +| Scale Mail | +4 AC | Disadvantage on Stealth checks. Medium armor: at most +2 from Dexterity counts (worked out on the sheet). | — | A coat and leggings of leather covered in overlapping metal scales. | +| Breastplate | +4 AC | Medium armor: at most +2 from Dexterity counts (worked out on the sheet). | — | A fitted metal chest piece worn with supple leather. | +| Half Plate | +5 AC | Disadvantage on Stealth checks. Medium armor: at most +2 from Dexterity counts (worked out on the sheet). | — | Shaped metal plates covering most of the body. | ### Heavy Armor (4) | Item | While equipped | Note | Dice | Description | |---|---|---|---|---| -| Ring Mail | +4 AC | Disadvantage on Stealth checks. Standard rules: adds no Dexterity. | — | Leather armor with heavy rings sewn into it. | -| Chain Mail | +6 AC, −10 Speed | Disadvantage on Stealth checks. Standard rules: adds no Dexterity, and needs Strength 13. | — | Interlocking metal rings over a layer of quilted fabric, with gauntlets. | -| Splint Armor | +7 AC, −10 Speed | Disadvantage on Stealth checks. Standard rules: adds no Dexterity, and needs Strength 15. | — | Narrow vertical strips of metal riveted to a leather backing. | -| Plate Armor | +8 AC, −10 Speed | Disadvantage on Stealth checks. Standard rules: adds no Dexterity, and needs Strength 15. | — | Shaped, interlocking metal plates covering the whole body. | +| Ring Mail | +4 AC | Disadvantage on Stealth checks. Heavy armor: Dexterity does not count (worked out on the sheet). | — | Leather armor with heavy rings sewn into it. | +| Chain Mail | +6 AC, −10 Speed | Disadvantage on Stealth checks. Heavy armor: Dexterity does not count (worked out on the sheet). Standard rules: needs Strength 13. | — | Interlocking metal rings over a layer of quilted fabric, with gauntlets. | +| Splint Armor | +7 AC, −10 Speed | Disadvantage on Stealth checks. Heavy armor: Dexterity does not count (worked out on the sheet). Standard rules: needs Strength 15. | — | Narrow vertical strips of metal riveted to a leather backing. | +| Plate Armor | +8 AC, −10 Speed | Disadvantage on Stealth checks. Heavy armor: Dexterity does not count (worked out on the sheet). Standard rules: needs Strength 15. | — | Shaped, interlocking metal plates covering the whole body. | ### Shields (2) diff --git a/frontend/package.json b/frontend/package.json index 42ada2a..8946b61 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "frontend", "private": true, - "version": "1.30.0", + "version": "1.31.0", "type": "module", "scripts": { "dev": "vite", diff --git a/frontend/src/components/InfoTip.tsx b/frontend/src/components/InfoTip.tsx index 8ed2d4a..4320580 100644 --- a/frontend/src/components/InfoTip.tsx +++ b/frontend/src/components/InfoTip.tsx @@ -16,7 +16,7 @@ const STAT_HELP: Record = { SKILL_BONUS: 'Skill Bonus — added when you roll to use a skill. The governing ability modifier, plus your proficiency bonus if you are proficient (doubled if you have expertise).', EXPERTISE: 'Expertise — doubles your proficiency bonus for this skill, on top of being proficient.', ABILITY_MODIFIER: 'Ability Modifier — the number added to rolls that use this ability. floor((score − 10) / 2).', - ARMOR_BONUS: 'Extra AC — a number the DM sets, added to AC on top of 10 + Dex modifier and whatever equipped gear gives. Armor itself is an equipped item. Unarmored Defense (barbarian, monk) and a draconic sorcerer’s scales are worked out for you: do not add them here.', + ARMOR_BONUS: 'Extra AC — a number the DM sets, added to AC on top of 10 + Dex modifier and whatever equipped gear gives. Armor itself is an equipped item, and medium or heavy armor holds back how much Dexterity counts. Unarmored Defense (barbarian, monk) and a draconic sorcerer’s scales are worked out for you: do not add them here.', SPEED: 'Speed — how far you can move on your turn, in feet. Set by your species, unless overridden.', SPELL_SAVE_DC: 'Spell Save DC — the difficulty a target must beat to resist your spell. 8 + proficiency bonus + your spellcasting ability modifier.', SPELL_ATTACK_BONUS: 'Spell Attack Bonus — added when you make a spell attack roll. Proficiency bonus + your spellcasting ability modifier.', diff --git a/frontend/src/components/campaign/EntryDetail.tsx b/frontend/src/components/campaign/EntryDetail.tsx index 9ee6daf..2dde0c7 100644 --- a/frontend/src/components/campaign/EntryDetail.tsx +++ b/frontend/src/components/campaign/EntryDetail.tsx @@ -104,7 +104,9 @@ function GearDetail({ campaignId, pool, entry, added, onClose }: { added: ReactN )}

- Its AC is still set below, as +AC. This says what kind it is, for the class features that depend on what is worn: a barbarian’s and a + Its AC is still set below, as +AC (its usual AC less 10). This says what kind it is. The sheet counts all of a character’s + Dexterity toward AC in light armor, at most +2 in medium armor and none in heavy armor. It also decides the class features + that depend on what is worn: a barbarian’s and a monk’s Unarmored Defense and a draconic sorcerer’s scales stop while armor is equipped, a monk’s also behind a shield, and a barbarian’s extra speed stops in heavy armor.

diff --git a/package-lock.json b/package-lock.json index 6fe3853..2d0706e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,19 +1,19 @@ { "name": "dnd-campaign-manager", - "version": "1.30.0", + "version": "1.31.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dnd-campaign-manager", - "version": "1.30.0", + "version": "1.31.0", "workspaces": [ "backend", "frontend" ] }, "backend": { - "version": "1.30.0", + "version": "1.31.0", "dependencies": { "@prisma/adapter-pg": "^7.10.0", "@prisma/client": "^7.10.0", @@ -33,7 +33,7 @@ } }, "frontend": { - "version": "1.30.0", + "version": "1.31.0", "dependencies": { "@tanstack/react-query": "^5.103.2", "axios": "^1.20.0", diff --git a/package.json b/package.json index 256e5f2..3059bf5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dnd-campaign-manager", - "version": "1.30.0", + "version": "1.31.0", "private": true, "description": "D&D 5e campaign manager — monorepo root", "workspaces": [