Caster
Numbers worked out from the caster's rank.
v2's cookbook, numbers worked out from the caster (G275-G282). How far a caster has taken its line of skills is its Rank, and every recipe here reads it from whoever applied or cast: a proc's chance, a root's turns, a drum's beat, a hoard's height, a bolt's speed, how many wards a blow breaks and how much might a blessing is worth. A fighter's vigor starts at its own share, unless what made it says otherwise.
1
# v2's cookbook, numbers worked out from the caster (G275-G282). How far a caster has taken its line of skills is its2
# Rank, and every recipe here reads it from whoever applied or cast: a proc's chance, a root's turns, a drum's beat, a3
# hoard's height, a bolt's speed, how many wards a blow breaks and how much might a blessing is worth. A fighter's4
# vigor starts at its own share, unless what made it says otherwise.6
rate 607
stat MaxHealth8
stat MaxVigor9
stat Rank10
stat Grit11
stat Might12
pool Health max MaxHealth13
pool Vigor max MaxVigor14
damage Health15
link owner16
link victim17
tags Proc18
event TurnStarted Arrived19
turn TurnStarted21
archetype Archer22
base MaxHealth 10023
base MaxVigor 10024
base Rank 425
base Grit 5026
base Might 1027
full Health28
with Vigor = holder.MaxVigor * holder.Grit / 10029
grants Barb Root Drum Hoarding QuickBolt Shatter Empower31
archetype Novice32
base MaxHealth 10033
base MaxVigor 10034
base Rank 135
base Grit 10036
base Might 1037
full Health38
with Vigor = holder.MaxVigor * holder.Grit / 10039
grants Barb Root Drum Hoarding QuickBolt Shatter Empower Raise41
archetype Untrained42
base MaxHealth 10043
base MaxVigor 10044
base Grit 10045
base Might 1046
full Health47
with Vigor = holder.MaxVigor * holder.Grit / 10048
grants Barb Shatter50
archetype Stump51
base MaxHealth 50052
base MaxVigor 10053
base Might 2054
full Health55
with Vigor = 4057
# ---- G275 barbed: its chance to land is the caster's rank over four ----59
effect Barbed60
lasts 10s61
Might - 10%63
ability Barb64
tags Proc65
target one66
if chance(holder.Rank / 4)67
apply Barbed to target69
# ---- G276 a root for as many of its holder's turns as its caster's rank ----71
effect Rooted72
lasts source.Rank turns74
ability Root75
target one76
apply Rooted to target78
# ---- G277 the quickening drum: 5 vigor every 4 less its drummer's rank of its holder's turns ----80
effect Quickening81
var count = 082
after TurnStarted of holder83
self.count += 184
if self.count >= 4 - source.Rank85
gain Vigor 586
self.count = 088
ability Drum89
target one90
apply Quickening to target92
# ---- G278 a hoard: 5 might a stack, as tall as the rank of whoever adds the stack ----94
effect Hoard95
stack add max source.Rank96
Might + 598
ability Hoarding99
target one100
apply Hoard to target102
# ---- G279 a bolt flying 10 paces a second for each of its caster's ranks; landing, it empowers for 5 seconds ----104
effect BoltFlight105
lasts 1s * distance(holder.owner, holder.victim) / (10 * holder.owner.Rank)106
expire107
raise Arrived of holder.victim by holder109
effect BoltHead110
after Arrived by holder111
apply Empowered to event.subject from holder.owner112
destroy holder114
effect Empowered115
lasts 5s117
archetype Bolt118
has BoltFlight119
has BoltHead121
ability QuickBolt122
target one within 100123
create Bolt with owner = holder, victim = target125
# ---- G280 shatter breaks as many of the target's ward charges as its striker's rank, one at least ----127
effect Warded128
stack add max 5130
ability Shatter131
target one132
remove Warded max(1, holder.Rank) from target134
# ---- G281 empower: might of five times its caster's rank, for good ----136
effect Blessing137
var might = 0138
Might + self.might140
ability Empower141
target self142
apply Blessing with might = 5 * holder.Rank144
# ---- G282 a fighter's vigor starts at its own grit's share, unless what made it says how much ----146
archetype Revenant147
base MaxHealth 100148
base MaxVigor 100149
base Grit 100150
full Health151
with Vigor = holder.MaxVigor * holder.Grit / 100153
ability Raise154
target self155
create Revenant with Vigor = 251
catalog caster.ledger2
row G275 Barbed Barb Archer Untrained Stump3
row G276 Rooted Root Archer Novice Stump4
row G277 Quickening Drum Novice Stump5
row G278 Hoard Hoarding Archer Novice Stump6
row G279 BoltFlight BoltHead Empowered QuickBolt Archer Novice Stump Bolt7
row G280 Warded Shatter Archer Novice Untrained Stump8
row G281 Blessing Empower Archer Novice9
row G282 Raise Archer Novice Revenant11
play G275 "Barbed lands as often as its caster's rank over four: always from the rank-4 archer, never from an untrained hand"12
make a Archer13
make u Untrained14
make s Stump15
act a Barb at s16
expect s has Barbed17
expect s.Might = 18 from G275: s.Might * (1 + "-10% might")18
save19
remove Barbed from s20
act u Barb at s21
expect s lacks Barbed23
play G276 "A root lasts as many of its holder's turns as its caster's rank: four from the archer, one from the novice"24
make a Archer25
make n Novice26
make s Stump27
make t Stump28
act a Root at s29
act n Root at t30
raise TurnStarted of s31
raise TurnStarted of t32
expect s has Rooted33
expect t lacks Rooted34
save35
raise TurnStarted of s36
raise TurnStarted of s37
expect s has Rooted38
raise TurnStarted of s39
expect s lacks Rooted41
play G277 "The novice's drum beats every third of its holder's turns, 5 vigor a beat: two beats in six turns"42
make n Novice43
make s Stump44
act n Drum at s45
raise TurnStarted of s46
raise TurnStarted of s47
expect s.Vigor = 40 from G277: s.Vigor48
raise TurnStarted of s49
expect s.Vigor = 45 from content: G277 leaves open whether a beat lands at the start or end of its turn; the content's lands at the start of the third, adding 5 to the content's 4050
save51
raise TurnStarted of s52
raise TurnStarted of s53
raise TurnStarted of s54
expect s.Vigor = 50 from content: G277 leaves open whether a beat lands at the start or end of its turn; the content's land at the start of turns 3 and 6: 40 + 5 + 5 = 5056
play G278 "A hoard is as tall as the rank of whoever adds to it: the archer stacks it four deep, 20 might; the novice adding to it is turned away"57
make a Archer58
make n Novice59
make s Stump60
act a Hoarding at s61
act a Hoarding at s62
act a Hoarding at s63
act a Hoarding at s64
act a Hoarding at s65
expect s has Hoard 4 from G278: "four deep"66
expect s.Might = 40 from G278: s.Might + "four deep" * "+5 might per stack"67
save68
act n Hoarding at s69
expect s has Hoard 4 from content: G278 leaves open what happens when the stack is already above a new adder's cap; the content's only blocks adding, so the archer's 4 stand70
make t Stump71
act n Hoarding at t72
act n Hoarding at t73
expect t has Hoard 1 from G278: "one for the novice"75
play G279 "A quick bolt flies 10 paces a second for each of its caster's ranks: 20 paces in half a second from the archer, in two from the novice, and empowers what it lands on for 5 seconds"76
make a Archer at 077
make n Novice at 078
make s Stump at 2079
make t Stump at 2080
act a QuickBolt at s81
act n QuickBolt at t82
advance 0.5s83
expect s has Empowered84
expect t lacks Empowered85
save86
advance 1.5s87
expect t has Empowered88
expect t remaining Empowered = 5s from content: G279 leaves open whether the arrival at the very end of the advance has resolved; the content's has, so the 5 seconds of Empowered have just begun90
play G280 "Shatter breaks as many of five wards as its striker's rank: the archer four, the novice one, and an untrained hand one, never none"91
make a Archer92
make n Novice93
make u Untrained94
make s Stump95
make t Stump96
make v Stump97
apply Warded 5 to s98
apply Warded 5 to t99
apply Warded 5 to v100
act a Shatter at s101
expect s has Warded 1 from G280: "Warded 5 to s" - "breaks four"102
act n Shatter at t103
expect t has Warded 4 from G280: "Warded 5 to t" - "the novice one"104
save105
act u Shatter at v106
expect v has Warded 4 from content: G280 leaves open what an attacker with no rank breaks; the content gives the untrained hand no rank, and G280's floor of one leaves 5 - 1 = 4108
play G281 "Empower is might of five times its caster's rank, for good: 20 for the archer, 5 for the novice"109
make a Archer110
make n Novice111
act a Empower112
act n Empower113
expect a.Might = 30 from G281: a.Might + "expiring: 20"114
expect n.Might = 15 from G281: n.Might + "5 for the novice"115
save116
advance 60s117
expect a.Might = 30 from G281: a.Might + "expiring: 20"119
play G282 "A fighter's vigor starts at its grit's share: the archer's 50, the novice's 100; a revenant the novice raises starts at the 25 it was raised with"120
make a Archer121
make n Novice122
expect a.Vigor = 50 from G282: "50 for the archer"123
expect n.Vigor = 100 from G282: "100 for the novice"124
act n Raise125
find r Revenant126
expect r.Vigor = 25 from G282: "25 for the revenant"Run it yourself
ledger check content/cookbook/caster.ledger content/cookbook/caster.play
ledger play content/cookbook/caster.play