Portions
More than one kind of damage in a hit.
v2's cookbook, more than one kind of damage (G285-G287): a sword's hit in two portions, each through its own defence; a skill that turns half its physical into fire before the defences; a state that does the same to every hit, the two conversions one after the other.
1
# v2's cookbook, more than one kind of damage (G285-G287): a sword's hit in two portions, each through its own defence;2
# a skill that turns half its physical into fire before the defences; a state that does the same to every hit, the two3
# conversions one after the other.5
rate 606
stat MaxHealth7
stat Armor8
stat FireResist max 0.759
pool Health max MaxHealth10
damage Health11
stages Convert Mitigation12
portions Physical Fire13
tags Infernal15
archetype Swordsman16
base MaxHealth 10017
full Health18
has InfernalTechnique19
grants Swing InfernalBlow21
archetype Knight22
base MaxHealth 50023
base Armor 10024
base FireResist 0.2525
full Health26
has Defences28
effect Defences29
before Damage of holder having Physical at Mitigation30
scale 1 - holder.Armor / (holder.Armor + 100)31
before Damage of holder having Fire at Mitigation32
scale 1 - holder.FireResist34
# ---- G285 flametongue: a swing of 20 physical and 8 fire, each through its own defence ----36
ability Swing37
target one38
deal 20 Physical + 8 Fire to target40
# ---- G286 infernal blow: half its physical becomes fire before the defences ----42
ability InfernalBlow43
target one44
deal 20 Physical + 8 Fire Infernal to target46
effect InfernalTechnique47
before Damage by holder having Infernal at Convert48
convert 50% of Physical to Fire50
# ---- G287 the avatar of fire: half of every hit's physical becomes fire, whatever the skill; with infernal blow the two51
# conversions run one after the other ----53
effect AvatarOfFire54
before Damage by holder at Convert55
convert 50% of Physical to Fire1
catalog portions.ledger2
row G285 Defences Swing Swordsman Knight3
row G286 InfernalTechnique InfernalBlow Swordsman Knight4
row G287 AvatarOfFire Swing InfernalBlow Swordsman Knight6
play G285 "Flametongue's swing, 20 physical and 8 fire, is 10 through the knight's 100 armour and 6 through its quarter fire resistance, 16"7
make s Swordsman8
make k Knight9
act s Swing at k10
expect k.Health = 484 from G285: k.Health - "= 16. Like"12
play G286 "Infernal blow turns half the physical into fire first: 10 and 18, 5 and 13.5 through the defences, 18.5"13
make s Swordsman14
make k Knight15
act s InfernalBlow at k16
expect k.Health = 481.5 from G286: k.Health - ("5 physical" + "13.5 fire")18
play G287 "As an avatar of fire every swing is 18.5; infernal blow too converts again, 5 physical of the 10 left, 2.5 and 17.25 through, 19.75"19
make s Swordsman20
make k Knight21
apply AvatarOfFire to s22
act s Swing at k23
expect k.Health = 481.5 from G287: k.Health - "any swing is 18.5"24
save25
act s InfernalBlow at k26
expect k.Health = 461.75 from G287: k.Health - "any swing is 18.5" - ("2.5 physical" + "17.25 fire")What 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 4 rules, in this order before, at Convert InfernalTechnique: Damage by holder having Infernal at Convert (content/cookbook/portions.ledger:47) converts Physical to Fire; held by Swordsman AvatarOfFire: Damage by holder at Convert (content/cookbook/portions.ledger:54) converts Physical to Fire; held by no archetype and applied by no content: the game or a play puts it on before, at Mitigation Defences: Damage of holder having Physical at Mitigation (content/cookbook/portions.ledger:29) scales it; held by Knight Defences: Damage of holder having Fire at Mitigation (content/cookbook/portions.ledger:31) scales it; held by Knight no archetype lacks a layer its like hold
Run it yourself
ledger check content/cookbook/portions.ledger content/cookbook/portions.play
ledger play content/cookbook/portions.play
ledger pipeline content/cookbook/portions.ledger Health