Lob
A lobbed shell that bursts where it lands, never at a flyer
flies ... up tolandswith PROPevent.PROPof projectileunless TAGA lobbed shell that bursts where it lands, lifted from the tower-defense slice's content\towers.ledger (the cannon's Lob and its Shell). It is lobbed at a creep on the ground, never a flyer; the shell flies 6 a second and lands at its cap, the distance over its speed, so it lands even where its creep died in the air; landing, it bursts on every creep within the shell's Splash of where it came down, flyers too, for the damage it was lobbed with. The game flies it on the plane. In the slice the cannon lobs on its own by its priority (priority.ledger here); here it is ordered.
1
# A lobbed shell that bursts where it lands, lifted from the tower-defense slice's content\towers.ledger (the cannon's2
# Lob and its Shell). It is lobbed at a creep on the ground, never a flyer; the shell flies 6 a second and lands at3
# its cap, the distance over its speed, so it lands even where its creep died in the air; landing, it bursts on every4
# creep within the shell's Splash of where it came down, flyers too, for the damage it was lobbed with. The game flies5
# it on the plane. In the slice the cannon lobs on its own by its priority (priority.ledger here); here it is ordered.7
rate 608
link team owner9
allegiance team10
stat MaxHealth11
stat Damage12
stat Reach13
stat Haste14
stat Splash15
pool Health max MaxHealth16
damage Health17
prop Payload18
tags Tower Creep Flying Physical20
ability Lob21
target one enemy unless Flying within holder.Reach22
cooldown 2s / holder.Haste23
with Payload = holder.Damage24
flies Shell up to 1s * distance(holder, target) / 625
lands26
deal event.Payload Physical to all enemies within projectile.Splash of projectile28
archetype Shell29
base Splash 1.231
archetype Cannon32
tags Tower33
base Damage 1034
base Reach 3.535
base Haste 136
grants Lob38
effect Flight39
tags Flying41
archetype Side43
archetype Creep44
tags Creep45
base MaxHealth 3046
full Health48
archetype Flyer49
tags Creep50
base MaxHealth 3051
full Health52
has Flight1
catalog lob.ledger3
# The shell's numbers, from Lob and Shell: 10 a shell, landing 1 / 6 of a second for each unit of distance, bursting4
# within 1.2 of where it lands. A cannon of side a stands at 0; creeps of side b at 30 Health. The game flies the shell,5
# so the play places it where the game would have by its landing.7
play "lobbed at a creep 3 off: it lands half a second on and bursts on the creep and a flyer 0.5 beside it, 10 each; a creep 2 off the landing is missed"8
make a Side9
make b Side10
make c Creep with team = b at 311
make f Flyer with team = b at 3.512
make off Creep with team = b at 113
make cn Cannon with team = a at 014
act cn Lob at c as shot projectile sh15
expect done16
place sh 317
advance 0.25s18
expect c.Health = 30 from content: still flying: it lands 3 / 6 = 0.5 s on19
save20
advance 0.25s21
expect sh gone22
expect c.Health = 20 from content: 30 less the shell's 10 at its landing23
expect f.Health = 20 from content: 0.5 from the landing, within 1.2: 30 less 1024
expect off.Health = 30 from content: 2 from the landing, past 1.226
play "a flyer can't be lobbed at; a shell whose creep died in the air still lands and bursts"27
make a Side28
make b Side29
make c Creep with team = b at 330
make f Flyer with team = b at 231
make cn Cannon with team = a at 032
act cn Lob at f33
expect refused BadTarget34
act cn Lob at c as shot projectile sh35
expect done36
place sh 337
destroy c38
advance 0.5s39
expect sh gone40
expect f.Health = 20 from content: 1 from where the shell came down at 3, within 1.2: 30 less 10Run it yourself
ledger check content/cookbook/mechanics/lob.ledger content/cookbook/mechanics/lob.play
ledger play content/cookbook/mechanics/lob.play