Again
Going again after dying, what was banked kept.
v2's cookbook, going again after dying (G245-G247). The runner is one actor for the whole session: it dies, gets up and goes again, so what it banked is a pool on it, which its death leaves alone. What an attempt gave it carries the Attempt tag, and the attempt's end takes everything with the tag; what it bought with salvage doesn't carry it.
1
# v2's cookbook, going again after dying (G245-G247). The runner is one actor for the whole session: it dies, gets up2
# and goes again, so what it banked is a pool on it, which its death leaves alone. What an attempt gave it carries the3
# Attempt tag, and the attempt's end takes everything with the tag; what it bought with salvage doesn't carry it.5
rate 606
stat MaxHealth7
pool Health max MaxHealth8
pool Salvage max 99999
damage Health10
tags Attempt11
event Died AttemptEnded13
effect Mortal14
after Depleted Health of holder15
raise Died of holder16
destroy holder18
# ---- G245 a kill is worth 25 salvage to whoever made it, banked on the runner itself ----20
effect Salvaging21
after Died credited to holder22
gain Salvage 2524
# ---- G246 the attempt's end: not dead but up again, at half its health, without what the attempt gave it ----26
effect Running27
after Depleted Health of holder28
raise AttemptEnded of holder29
after AttemptEnded of holder30
remove all Attempt31
set Health holder.MaxHealth / 233
effect Sharpened34
tags Attempt35
MaxHealth + 1037
# ---- G247 bought between attempts for 40 salvage, refused with nothing spent when it isn't there, and kept ----39
effect Grit40
stack add41
MaxHealth + 4043
ability BuyGrit44
target self45
cost Salvage 4046
apply Grit48
archetype Runner49
base MaxHealth 10050
full Health51
pools Salvage52
has Salvaging53
has Running54
grants BuyGrit56
archetype Husk57
base MaxHealth 1058
full Health59
has Mortal1
catalog again.ledger2
row G245 Mortal Salvaging Runner Husk3
row G246 Running Sharpened Runner4
row G247 Grit BuyGrit Runner6
play G245 "Two kills bank 50 salvage on the runner; its death takes none of it, and it starts the next attempt with 50"7
make r Runner8
make a Husk9
make b Husk10
deal 10 to a from r11
deal 10 to b from r12
expect a gone13
expect r.Salvage = 50 from G245: "25 salvage" + "25 salvage"14
save15
deal 100 to r16
expect event AttemptEnded of r17
expect r.Salvage = 50 from G245: "still 50"18
expect r.Health = 50 from content: G245 says nothing of the runner's health after a death; the content brings it back at half its 10020
play G246 "Sharpened and with grit bought, the runner holds 150; its attempt's end brings it back at half of 140, 70, the sharpening gone, the grit and its salvage kept"21
make r Runner22
make a Husk23
make b Husk24
deal 10 to a from r25
deal 10 to b from r26
act r BuyGrit27
apply Sharpened to r28
expect max r.Health = 150 from G246: max r.Health + "+40 max health" in G247 + "+10 max health"29
save30
deal 200 to r31
expect r lacks Sharpened32
expect r has Grit33
expect max r.Health = 140 from G246: max r.Health + "+40 max health" in G24734
expect r.Health = 70 from content: G246 leaves open whether half the maximum is taken before or after the stripping; the content takes it after, half of 14035
expect r.Salvage = 10 from G246: "25 salvage" in G245 + "25 salvage" in G245 - "spends 40 salvage" in G24737
play G247 "Grit costs 40 salvage and is 40 health for good; with 10 left it is refused and nothing is spent; it outlives the runner's death"38
make r Runner39
make a Husk40
make b Husk41
deal 10 to a from r42
deal 10 to b from r43
act r BuyGrit44
expect done45
expect r.Salvage = 10 from G247: "25 salvage" in G245 + "25 salvage" in G245 - "spends 40 salvage"46
expect max r.Health = 140 from G247: max r.Health + "+40 max health"47
act r BuyGrit48
expect refused CannotAfford49
expect r.Salvage = 10 from G247: "25 salvage" in G245 + "25 salvage" in G245 - "spends 40 salvage"50
save51
deal 200 to r52
expect max r.Health = 140 from G247: max r.Health + "+40 max health"53
expect r.Health = 70 from content: the play plays G247 alone, which says nothing of the health after a death; the content brings the runner back at half its 140Run it yourself
ledger check content/cookbook/again.ledger content/cookbook/again.play
ledger play content/cookbook/again.play