Chains
Auras that begin auras, a death walking down a line.
v2's cookbook, auras that begin auras (G288-G289): a line of husks, each dying into a burn that kills the next a tick later, so the death walks down the line a husk a tick however time is advanced; and a patron's sampled aura handing a miser a coin each tick, which the miser drops each time.
1
# v2's cookbook, auras that begin auras (G288-G289): a line of husks, each dying into a burn that kills the next a tick2
# later, so the death walks down the line a husk a tick however time is advanced; and a patron's sampled aura handing a3
# miser a coin each tick, which the miser drops each time.5
rate 606
stat MaxHealth7
pool Health max MaxHealth8
damage Health9
tags Coin10
event Died12
# ---- G288 a husk dying burns: a tick later, and every second after, 1000 to everyone in its reach; each it kills13
# burns in turn ----15
effect Wick16
after Depleted Health of holder17
raise Died of holder18
after Died of holder19
apply Burning21
effect Burning22
stack ignore23
every 1s24
deal 1000 to all others within 1 of holder25
start26
apply Kindling28
effect Kindling29
lasts 1t30
expire31
deal 1000 to all others within 1 of holder33
archetype Husk34
base MaxHealth 10035
full Health36
has Wick38
# ---- G289 the patron's coin: its aura gives anyone within 3 a coin, sampled each tick; the miser drops each coin as it39
# is given, so each tick gives another ----41
effect Coin42
tags Coin44
effect Patronage45
aura Coin on all others within 3 every 1t47
effect Purse48
after Apply of holder having Coin49
remove Coin51
archetype Patron52
base MaxHealth 10053
full Health54
has Patronage56
archetype Miser57
base MaxHealth 10058
full Health59
has Purse1
catalog chains.ledger2
row G288 Wick Burning Kindling Husk3
row G289 Coin Patronage Purse Patron Miser5
play G288 "Four husks in a line, each in reach of the next: the first killed burns, and a tick later the second dies and burns, a husk a tick, stepped a tick at a time or jumped a second at once"6
make a Husk at 07
make b Husk at 18
make c Husk at 29
make d Husk at 310
deal 1000 to a11
expect a has Burning12
expect b.Health = 100 from G288: b.Health13
advance 1t14
expect b.Health = 0 from content: G288's lethal 1000 kills b at the tick; the content's health stops at 0, a floor the row writes no word for15
expect b has Burning16
expect c.Health = 100 from G288: c.Health17
save18
advance 1s19
expect c.Health = 0 from content: G288's lethal 1000 kills c within the second; the content's health stops at 0, a floor the row writes no word for20
expect d.Health = 0 from content: G288's lethal 1000 kills d within the second; the content's health stops at 0, a floor the row writes no word for22
play G289 "A patron's aura gives a miser in reach a coin each tick; the miser drops each, so five ticks give five coins and none is kept"23
make p Patron at 024
make m Miser at 225
advance 5t26
expect event Apply of m tagged Coin 5 times from G289: "five ticks"27
expect m lacks CoinRun it yourself
ledger check content/cookbook/chains.ledger content/cookbook/chains.play
ledger play content/cookbook/chains.play