Bolt
A cast bar that looses a bolt landing by its range at its speed, missing past it, and a mirror turning it back
windup Dfliesflies ARCHETYPE at F up to Dprojectile.STATreflects TAGA caster's bolt, from the raid's flights (its content\party.ledger's Firebolt and FireMote, boss.ledger's Mirrored and flights.play): a 2 s cast bar, broken by its caster moving, that looses a bolt at its mote's Speed; the world works out when it lands, the distance as it is loosed over that speed, and the game only draws it there. Past its range, 4 s of flight, it misses; a mirror turns it back at its caster, timed again from the mirror.
1
# A caster's bolt, from the raid's flights (its content\party.ledger's Firebolt and FireMote, boss.ledger's Mirrored and2
# flights.play): a 2 s cast bar, broken by its caster moving, that looses a bolt at its mote's Speed; the world works3
# out when it lands, the distance as it is loosed over that speed, and the game only draws it there. Past its range, 4 s4
# of flight, it misses; a mirror turns it back at its caster, timed again from the mirror.6
rate 607
stat MaxHealth8
stat MaxMana9
stat CastSpeed default 110
stat Speed11
pool Health max MaxHealth12
pool Mana max MaxMana13
damage Health14
link team15
allegiance team16
tags Spell Bolt17
event Moved18
phases clock CastSpeed19
archetype Side21
# what flies: its speed is its own, a stat its archetype gives22
archetype FireMote23
base Speed 1825
effect Mirrored26
lasts 6s27
reflects Bolt29
ability Firebolt30
tags Spell Bolt31
target one enemy32
cost Mana 1533
windup 2s34
broken by Moved of holder35
flies FireMote at projectile.Speed up to 4s36
deal 50 to target38
archetype Mage39
base MaxHealth 40040
base MaxMana 80041
full Health Mana42
grants Firebolt44
archetype Dummy45
base MaxHealth 10000046
full Health1
catalog bolt.ledger3
# The raid's numbers: Firebolt winds up 2 s and looses a FireMote at its Speed, 18 a second, for up to 4 s: 72 its4
# range. 9 away it lands 0.5 s after its loosing; a mirror turns it back at its caster, 10 back at 18.6
play "a Firebolt winds up 2 s, then lands 9 away 0.5 s on: 50 landed, the game drawing it, not landing it"7
make r Side8
make b Side9
make m Mage with team = r at 0 010
make d Dummy with team = b at 9 011
act m Firebolt at d as fb12
expect m active Firebolt remaining 2s from content: windup 2s13
advance 2s14
expect fb running remaining 0.5s from content: 9 away at FireMote's Speed 1815
advance 0.5s16
expect d.Health = 99950 from content: 100000 less Firebolt's 50, landed as it arrived17
expect fb ended19
play "a Firebolt broken by its caster moving looses nothing and costs nothing"20
make r Side21
make b Side22
make m Mage with team = r at 0 023
make d Dummy with team = b at 9 024
act m Firebolt at d25
advance 1s26
raise Moved of m27
expect m stopped Firebolt Broken28
expect m.Mana = 800 from content: Firebolt's cost is paid as it looses29
expect count FireMote = 0 from content: a broken cast looses no bolt31
play "past its range, 80 away, it misses at its 4 s"32
make r Side33
make b Side34
make m Mage with team = r at 0 035
make d Dummy with team = b at 80 036
act m Firebolt at d as fb37
advance 2s38
expect fb running remaining 4s from content: 80 at 18 a second is 4.4 s, past its 4 s cap39
advance 4s40
expect m stopped Firebolt Missed41
expect d.Health = 100000 from content: nothing landed past its range43
play "a mirror turns it back at its caster, timed again: out 10 at 18, back 10 at 18, its 50 on the mage credited to the boss"44
make r Side45
make b Side46
make m Mage with team = r at 0 047
make k Dummy with team = b at 10 048
apply Mirrored to k49
act m Firebolt at k as fb50
advance 2s51
advance 34t52
expect fb running remaining 34t from content: turned at 10 away, 10 back at 18 a second, 34 ticks rounded up53
expect k.Health = 100000 from content: the mirror takes nothing54
advance 34t55
expect m.Health = 350 from content: the Mage's 400 less its own Firebolt's 5056
expect event Change of m credited to k tagged Damage57
expect fb endedRun it yourself
ledger check content/cookbook/mechanics/bolt.ledger content/cookbook/mechanics/bolt.play
ledger play content/cookbook/mechanics/bolt.play