Self
What an ability gives its user.
v2's cookbook, what an ability gives its user (G314-G316): a swing that half the time feeds its swinger whether or not it lands, a cry that puts on three stacks at once, and a second wind whose price is paid before its gain.
1
# v2's cookbook, what an ability gives its user (G314-G316): a swing that half the time feeds its swinger whether or2
# not it lands, a cry that puts on three stacks at once, and a second wind whose price is paid before its gain.4
rate 605
stat MaxHealth6
stat Attack7
stat Might8
stat MaxStamina9
pool Health max MaxHealth10
pool Stamina max MaxStamina11
damage Health13
archetype Duelist14
base MaxHealth 10015
base Attack 1216
base Might 10017
base MaxStamina 10018
full Health Stamina19
grants Riposte WarCry SecondWind GainFirst21
archetype Dummy22
base MaxHealth 100023
full Health25
effect Invulnerable26
before Damage of holder27
prevent29
# ---- G314 riposte: the swing deals the attack, and half the time it gives the swinger momentum, landed or not ----31
ability Riposte32
target one33
deal holder.Attack to target34
if chance(50%)35
apply Momentum to holder37
effect Momentum38
stack add max 539
lasts 8s41
# ---- G315 war cry: three stacks of fervour at once, a tenth more might each, five at most; again in 12 seconds ----43
ability WarCry44
cooldown 12s45
apply Fervour 3 to holder47
effect Fervour48
stack add max 549
lasts 10s50
Might + 10%52
# ---- G316 second wind: 40 stamina paid, then 30 gained; gained first, the 30 would be thrown against the cap ----54
ability SecondWind55
cost Stamina 4056
gain Stamina 3058
ability GainFirst59
gain Stamina 3060
lose Stamina 401
catalog self.ledger2
row G314 Invulnerable Momentum Riposte Duelist Dummy3
row G315 Fervour WarCry Duelist4
row G316 SecondWind GainFirst Duelist6
play G314 "Each swing deals 12; the roll gives momentum on some swings and not others, and a swing on an invulnerable dummy that lands nothing still rolls"7
seed 6 # a run's: the draws under it fall as the play says8
make d Duelist9
make t Dummy10
act d Riposte at t11
expect t.Health = 988 from G314: t.Health - d.Attack12
expect d has Momentum 1 from G314: count "act d Riposte at t"13
act d Riposte at t14
expect t.Health = 976 from G314: t.Health - count "act d Riposte at t" * d.Attack15
expect d has Momentum 1 from a run: seed 6's second half-chance roll, on the second swing, fails: momentum stays at one16
save17
apply Invulnerable to t18
act d Riposte at t19
expect t.Health = 976 from content: G314 gives no invulnerability; the content's prevents the swing's damage, so 976 stands20
expect d has Momentum 2 from a run: seed 6's third half-chance roll, on the swing that lands nothing, succeeds: a second momentum stack22
play G315 "The war cry puts on three stacks, 130 might, and can't be cried again for 12 seconds; the stacks gone at 10, the cry is ready at 12; three more on three are five, 150"23
make d Duelist24
act d WarCry25
expect d has Fervour 3 from G315: "three buff"26
expect d.Might = 130 from content: G315 gives +10% a stack but not how stacks combine or the might they raise; the content's 100 with 3 x 10% added27
act d WarCry28
expect refused OnCooldown29
save30
advance 10s31
expect d lacks Fervour32
advance 2s33
act d WarCry34
expect done35
apply Fervour 3 to d36
expect d has Fervour 5 from G315: "maximum of 5"37
expect d.Might = 150 from content: G315 leaves open how stacks combine; the content's 100 with 5 x 10% added39
play G316 "From a full 100, second wind pays 40 and gains 30, 90; the gain first is thrown against the cap and the 40 then paid, 60"40
make d Duelist41
make e Duelist42
act d SecondWind43
expect d.Stamina = 90 from G316: "100 stamina" - "40 stamina" + "back 30"44
save45
act e GainFirst46
expect e.Stamina = 60 from G316: "100 stamina" - "40 stamina"47
covers concept stepWhat 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 no stage Invulnerable: Damage of holder (content/cookbook/self.ledger:26) prevents it, stops the phase: no rule after it runs; held by no archetype and applied by no content: the game or a play puts it on no archetype lacks a layer its like hold
Run it yourself
ledger check content/cookbook/self.ledger content/cookbook/self.play
ledger play content/cookbook/self.play
ledger pipeline content/cookbook/self.ledger Health