Recharge
A shield that refills after a pause each hit starts again
pool ... regen STATSTAT = 0stack refreshafter Damage of holderA shield that refills after a pause, lifted from the shooter slice's content\arena.ledger (the Shield pool and its regen, ShieldSoak, Struck and Guarded) and its player from content\player.ledger. Hits go into the 50 shield first and the rest to Health; any hit stops the refill for 2 seconds, each hit starting the 2 again; then it refills 25 a second to its most.
1
# A shield that refills after a pause, lifted from the shooter slice's content\arena.ledger (the Shield pool and its2
# regen, ShieldSoak, Struck and Guarded) and its player from content\player.ledger. Hits go into the 50 shield first3
# and the rest to Health; any hit stops the refill for 2 seconds, each hit starting the 2 again; then it refills 25 a4
# second to its most.6
rate 607
stat MaxHealth8
stat MaxShield9
stat ShieldRate10
pool Health max MaxHealth11
pool Shield max MaxShield regen ShieldRate12
damage Health13
stages Soak15
effect ShieldSoak16
before Damage of holder at Soak when holder.Shield > 017
absorb into Shield19
effect Struck20
stack refresh21
lasts 2s22
ShieldRate = 024
effect Guarded25
after Damage of holder26
apply Struck to holder28
archetype Player29
base MaxHealth 10030
base MaxShield 5031
base ShieldRate 2532
full Health Shield33
has ShieldSoak34
has Guarded36
archetype Dummy37
base MaxHealth 100038
full Health1
catalog recharge.ledger3
# The shield's numbers, from the Player (100 Health, a 50 shield refilling 25 a second) and Struck's 2 s pause.5
play "hits land on the shield first and the rest on Health; it stands still 2 s after the last hit, then refills 25 a second"6
make h Player7
make d Dummy8
deal 30 to h from d9
expect h.Shield = 20 from content: 50 less 30 soaked10
expect h.Health = 100 from content: nothing past the shield11
deal 30 to h from d12
expect h.Shield = 0 from content: 20 soaked of the 3013
expect h.Health = 90 from content: 100 less the 10 past the shield14
advance 1s15
expect h.Shield = 0 from content: Struck's ShieldRate = 0 for 2 s16
deal 5 to h from d17
expect h.Health = 85 from content: 90 less 5, the shield empty18
advance 1.9s19
expect h.Shield = 0 from content: the 2 s started again at the third hit, 1.9 s in20
save21
advance 0.1s22
advance 1s23
expect h.Shield = 25 from content: 1 s at ShieldRate 25 once Struck ended24
advance 2s25
expect h.Shield = 50 from content: full at MaxShield 50What a change to Health meets
Every rule in this recipe a change to Health passes through, in order. Each line is a link to the rule.
Health: a change to it meets 2 rules, in this order before, at Soak ShieldSoak: Damage of holder at Soak when holder.Shield > 0 (content/cookbook/mechanics/recharge.ledger:16) absorbs from it into Shield; held by Player after it lands Guarded: Damage of holder (content/cookbook/mechanics/recharge.ledger:25) hears what landed; held by Player no archetype lacks a layer its like hold
Run it yourself
ledger check content/cookbook/mechanics/recharge.ledger content/cookbook/mechanics/recharge.play
ledger play content/cookbook/mechanics/recharge.play
ledger pipeline content/cookbook/mechanics/recharge.ledger Health