Beam
A channel along a direction, paid a beat at a time, released or broken
channeleverycostwithin L wide W toward targetreleaseA channel, lifted from the ARPG slice's content\frostbeam.ledger (FrostBeam), with the slow it lays from content\arena.ledger (Chilled). Aimed along a direction, it runs up to 3 seconds, 5 Mana as it starts and 4 a beat; each quarter-second beat hurts and chills every foe in a line 9 long and 1.5 wide. Released, it ends at once; a hit of 40 or more to the caster breaks it. The slice's hero regenerates mana; this one doesn't.
1
# A channel, lifted from the ARPG slice's content\frostbeam.ledger (FrostBeam), with the slow it lays from2
# content\arena.ledger (Chilled). Aimed along a direction, it runs up to 3 seconds, 5 Mana as it starts and 4 a beat;3
# each quarter-second beat hurts and chills every foe in a line 9 long and 1.5 wide. Released, it ends at once; a hit4
# of 40 or more to the caster breaks it. The slice's hero regenerates mana; this one doesn't.6
rate 607
stat MaxHealth8
stat MaxMana9
stat CastSpeed default 110
stat MoveSpeed11
pool Health max MaxHealth12
pool Mana max MaxMana13
damage Health14
link team15
allegiance team16
tags Spell Frost18
# every phase of every ability runs on its caster's CastSpeed19
phases clock CastSpeed21
effect Chilled22
tags Frost23
stack refresh24
lasts 2s25
CastSpeed - 40%26
MoveSpeed - 40%28
ability FrostBeam29
tags Spell Frost30
target direction31
cost Mana 532
channel 3s33
broken by Damage of holder when event.landed >= 4034
every 0.25s35
cost Mana 436
deal 5 Frost to all enemies within 9 wide 1.5 toward target37
apply Chilled to all enemies within 9 wide 1.5 toward target39
archetype Side41
archetype Hero42
base MaxHealth 30043
base MaxMana 20044
base MoveSpeed 645
full Health Mana46
grants FrostBeam48
archetype Dummy49
base MaxHealth 100050
full Health1
catalog beam.ledger3
# The beam's numbers, from FrostBeam: 5 Mana to start, then every 0.25 s for up to 3 s, 4 Mana, 5 Frost and a chill to4
# each foe on a line 9 long and 1.5 wide. A hero of side r at (0, 0) beams east; dummies of side b stand at 1000.6
play "beamed east: 5 Mana as it starts; four beats by 1 s, 5 each to a foe on the line and none to one 2 off it; 4 Mana a beat; chilled"7
make r Side8
make b Side9
make h Hero with team = r at 0 010
make on Dummy with team = b at 5 011
make off Dummy with team = b at 5 212
act h FrostBeam toward 1 013
expect done14
expect h.Mana = 195 from content: the Hero's 200 less FrostBeam's 5 as it starts15
expect h active FrostBeam elapsed 0s remaining 3s next beat 0.25s from content: channel 3s, every 0.25s16
advance 1s17
expect on.Health = 980 from content: 1000 less four beats' 5, at 0.25, 0.5, 0.75 and 1 s18
expect off.Health = 1000 from content: 2 off the axis, past the line's 0.75 each side19
expect h.Mana = 179 from content: 195 less four beats' 420
expect on has Chilled21
expect off lacks Chilled23
play "held to its length: twelve beats, 60 off a foe on the line, and it finishes"24
make r Side25
make b Side26
make h Hero with team = r at 0 027
make on Dummy with team = b at 5 028
act h FrostBeam toward 1 029
expect done30
advance 3s31
expect on.Health = 940 from content: 1000 less twelve beats' 5, every 0.25 s to 3 s32
expect h.Mana = 147 from content: 195 less twelve beats' 433
expect h finished FrostBeam35
play "released at 0.6 s: two beats landed, and it finishes"36
make r Side37
make b Side38
make h Hero with team = r at 0 039
make on Dummy with team = b at 5 040
act h FrostBeam toward 1 0 as beam41
expect done42
advance 0.6s43
release beam44
expect done45
expect h finished FrostBeam46
expect on.Health = 990 from content: 1000 less two beats' 5, at 0.25 and 0.5 s48
play "a hit of 40 to the caster breaks it; 39 doesn't"49
make r Side50
make b Side51
make h Hero with team = r at 0 052
make on Dummy with team = b at 5 053
act h FrostBeam toward 1 054
expect done55
advance 0.5s56
deal 39 to h57
expect h active FrostBeam58
save59
deal 40 to h60
expect h stopped FrostBeam BrokenRun it yourself
ledger check content/cookbook/mechanics/beam.ledger content/cookbook/mechanics/beam.play
ledger play content/cookbook/mechanics/beam.play