Ledger v3 · C# · Godot 4.7 Get started

Cone

A swing in a cone at the aim

✓ 1 play, 22 steps, all passingFrom ARPG, content\cleave.ledger
within R across DEG toward targetholder.Attack

A swing in a cone, lifted from the ARPG slice's content\cleave.ledger (Cleave) and the hero's Attack from content\hero.ledger. Aimed at a point, it hits every foe within 3 and 55 degrees either side of the aim, for 18 and the swinger's Attack. The slice's cleave also knocks each one back: request Push, with command Push declared, which the plane carries out, each foe driven away from the swinger; how far is the game's to tune, so it is left out here.

content/cookbook/mechanics/cone.ledgerthe content
1# A swing in a cone, lifted from the ARPG slice's content\cleave.ledger (Cleave) and the hero's Attack from
2# content\hero.ledger. Aimed at a point, it hits every foe within 3 and 55 degrees either side of the aim, for 18 and
3# the swinger's Attack. The slice's cleave also knocks each one back: request Push, with command Push declared, which
4# the plane carries out, each foe driven away from the swinger; how far is the game's to tune, so it is left out here.
5
6rate 60
7stat MaxHealth
8stat Attack
9pool Health max MaxHealth
10damage Health
11link team
12allegiance team
13tags Physical Heavy
15ability Cleave
16 tags Physical Heavy
17 target point
18 cooldown 0.7s
19 deal 18 + holder.Attack Physical to all enemies within 3 across 110 toward target
21archetype Side
23archetype Hero
24 base MaxHealth 300
25 base Attack 10
26 full Health
27 grants Cleave
29archetype Dummy
30 base MaxHealth 1000
31 full Health
content/cookbook/mechanics/cone.playwhat it must do
1catalog cone.ledger
2
3# The cleave's numbers, from Cleave: 18 and the Hero's Attack 10, 3 deep and 110 degrees across. A hero of side r at
4# (0, 0) swings toward (5, 0); dummies of side b at 1000 stand in and out of the cone.
5
6play "28 to each foe in the cone; none behind, none past 3, none at 61 degrees; and its cooldown"
7 make r Side
8 make b Side
9 make h Hero with team = r at 0 0
10 make front Dummy with team = b at 2 0
11 make edge Dummy with team = b at 1 1.4
12 make wide Dummy with team = b at 1 1.8
13 make behind Dummy with team = b at -1 0
14 make far Dummy with team = b at 3.5 0
15 act h Cleave at 5 0
16 expect done
17 expect front.Health = 972 from content: 1000 less 18 + the Hero's Attack 10
18 expect edge.Health = 972 from content: about 54.5 degrees off the aim, inside 55: 28
19 expect wide.Health = 1000 from content: about 61 degrees off, outside
20 expect behind.Health = 1000 from content: behind the aim
21 expect far.Health = 1000 from content: 3.5 away, past 3
22 act h Cleave at 5 0
23 expect refused OnCooldown
24 save
25 advance 0.7s
26 act h Cleave at 5 0
27 expect done
28 expect front.Health = 944 from content: 972 less a second swing's 28, its 0.7 s cooldown through

Run it yourself

ledger check content/cookbook/mechanics/cone.ledger content/cookbook/mechanics/cone.play
ledger play content/cookbook/mechanics/cone.play