Armour
Armour that takes a share off physical hits, and none off poison
before Damage ... having TAG at STAGEscaleArmour that takes a share off physical hits, lifted from the tower-defense slice's content\td.ledger (Armoured) and its brute from content\creeps.ledger. Armour takes Armor / (Armor + 100), at its own stage, off a hit carrying Physical, carried by an ability tagged so or a host's deal naming it; a poison's passes whole. 150 lets 40% through.
1
# Armour that takes a share off physical hits, lifted from the tower-defense slice's content\td.ledger (Armoured) and2
# its brute from content\creeps.ledger. Armour takes Armor / (Armor + 100), at its own stage, off a hit carrying3
# Physical, carried by an ability tagged so or a host's deal naming it; a poison's passes whole. 150 lets 40% through.5
rate 606
stat MaxHealth7
stat Armor8
pool Health max MaxHealth9
damage Health10
stages Armor11
tags Physical carried12
tags Poison13
effect Armoured14
before Damage of holder having Physical at Armor15
scale 100 / (holder.Armor + 100)17
archetype Brute18
base MaxHealth 9019
base Armor 15020
full Health21
has Armoured1
catalog armour.ledger3
# The armour's numbers, from Armoured and the Brute: 90 Health, Armor 150, a physical hit scaled by 100 / 250.5
play "a physical hit of 10 lands 4; a poison's 10 lands whole"6
make bt Brute7
deal 10 to bt Physical8
expect bt.Health = 86 from content: 10 x 100 / (150 + 100) = 4 off 909
save10
deal 10 to bt Poison11
expect bt.Health = 76 from content: no Physical tag, so the armour takes none: 86 - 10What a change to Health meets
Every rule in this recipe a change to Health passes through, in order. Each line is a link to the rule.
Health: a change to it meets 1 rule, in this order before, at Armor Armoured: Damage of holder having Physical at Armor (content/cookbook/mechanics/armour.ledger:14) scales it; held by Brute no archetype lacks a layer its like hold
Run it yourself
ledger check content/cookbook/mechanics/armour.ledger content/cookbook/mechanics/armour.play
ledger play content/cookbook/mechanics/armour.play
ledger pipeline content/cookbook/mechanics/armour.ledger Health