Ledger v3 · C# · Godot 4.7 Get started

Aura

An aura round a planted banner that stands 20 s

✓ 1 play, 23 steps, all passingFrom ARPG, content\slice2.ledger
aura ... on all allies having TAG withinexpiredestroy holder

An aura round a standing thing, lifted from the ARPG slice's content\slice2.ledger (the Banner, its Rally and Standing, and PlantBanner). While the banner stands, every summon on its side within 10 of it hits half again as hard and moves a fifth faster; one walking out loses it, one walking in gains it. It stands 20 seconds, where the game stands it at the planted point. The slice's summons are its skeletons (summons.ledger here); these are cut to their tag and numbers.

content/cookbook/mechanics/aura.ledgerthe content
1# An aura round a standing thing, lifted from the ARPG slice's content\slice2.ledger (the Banner, its Rally and
2# Standing, and PlantBanner). While the banner stands, every summon on its side within 10 of it hits half again as
3# hard and moves a fifth faster; one walking out loses it, one walking in gains it. It stands 20 seconds, where the
4# game stands it at the planted point. The slice's summons are its skeletons (summons.ledger here); these are cut to
5# their tag and numbers.
6
7rate 60
8stat MaxHealth
9stat MaxMana
10stat Attack
11stat MoveSpeed
12pool Health max MaxHealth
13pool Mana max MaxMana
14damage Health
15link team owner
16allegiance team
17tags Unit Spell Summon Banner
19effect Rallied
20 Attack + 50%
21 MoveSpeed + 20%
23effect Rally
24 aura Rallied on all allies having Summon within 10
26effect Standing
27 lasts 20s
28 expire
29 destroy holder
31archetype Banner
32 tags Banner
33 has Rally
34 has Standing
36ability PlantBanner
37 tags Spell
38 target point within 8
39 cost Mana 30
40 cooldown 20s
41 create Banner with team = holder.team, owner = holder
43archetype Side
45archetype Hero
46 tags Unit
47 base MaxHealth 300
48 base MaxMana 200
49 full Health Mana
50 grants PlantBanner
52archetype Skeleton
53 tags Unit Summon
54 base MaxHealth 60
55 base Attack 10
56 base MoveSpeed 5
57 full Health
content/cookbook/mechanics/aura.playwhat it must do
1catalog aura.ledger
2
3# The banner's numbers, from Rally and Rallied: Attack + 50% and MoveSpeed + 20% on each summon of its side within 10,
4# for the 20 s it stands. A hero of side r at (0, 0) plants at (5, 0); its skeletons have Attack 10 and MoveSpeed 5.
5
6play "planted at (5, 0): a skeleton 1 off is rallied, Attack 10 to 15; walked 11 off it isn't, walked back it is; at 20 s the banner falls and the rally with it"
7 make r Side
8 make b Side
9 make h Hero with team = r at 0 0
10 make s Skeleton with team = r at 6 0
11 make foe Skeleton with team = b at 6 1
12 act h PlantBanner at 5 0
13 expect done
14 find flag Banner
15 place flag 5 0
16 expect s has Rallied
17 expect s.Attack = 15 from content: the Skeleton's 10 and Rallied's 50%
18 expect s.MoveSpeed = 6 from content: the Skeleton's 5 and Rallied's 20%
19 expect foe lacks Rallied
20 expect h.Mana = 170 from content: the Hero's 200 less PlantBanner's 30
21 place s 16 0
22 expect s lacks Rallied
23 place s 7 0
24 expect s has Rallied
25 save
26 advance 20s
27 expect flag gone
28 expect s lacks Rallied
29 expect s.Attack = 10 from content: the Skeleton's own 10, the banner gone

Run it yourself

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