Relations
What an actor reads of those it is tied to.
v2's cookbook, what an actor reads of those it is tied to (G302-G306): a side's research every unit on it reads, a blow between teammates that does nothing and a charm that changes a unit's side while it holds, a paladin's aura on its own side, a summon as strong as its master says and a master that grieves it, and rain the whole world holds.
1
# v2's cookbook, what an actor reads of those it is tied to (G302-G306): a side's research every unit on it reads, a2
# blow between teammates that does nothing and a charm that changes a unit's side while it holds, a paladin's aura on3
# its own side, a summon as strong as its master says and a master that grieves it, and rain the whole world holds.5
rate 606
link team7
link master8
link world global9
allegiance team10
stat MaxHealth11
stat Attack12
stat Armor13
stat MinionPower14
pool Health max MaxHealth15
pool Research max 316
damage Health17
stages Multiply18
event Died20
effect Mortal21
after Depleted Health of holder22
raise Died of holder23
destroy holder25
archetype Team26
pools Research27
grants ResearchWeapons29
archetype World31
# ---- G302 weapon research: 2 attack a level, up to 3, held by the side and read by each unit on it ----33
ability ResearchWeapons34
requires holder.Research < 3 else "researched"35
gain Research 137
effect Upgraded38
Attack + 2 * holder.team.Research live40
archetype Footman41
base MaxHealth 10042
base Attack 1043
full Health44
has Upgraded45
has NoFriendlyFire46
grants Hit Charm48
ability Hit49
target one50
deal holder.Attack to target52
# ---- G303 no friendly fire, and a charm that changes sides until it is released ----54
effect NoFriendlyFire55
before Damage of holder by other allies at Multiply56
prevent58
ability Charm59
target one enemy60
apply Charmed to target62
# Each charm is its own instance: two that overlap leave the newer's side, and the side given once both have ended.63
effect Charmed64
stack separate65
team = source.team67
# ---- G304 devotion: 10 armour to everyone on the paladin's side within 5, itself too ----69
archetype Paladin70
base MaxHealth 10071
full Health72
has Devotion74
effect Devotion75
aura Devoted on all allies within 577
effect Devoted78
Armor + 1080
# ---- G305 the spirit link: the wolf's attack is its master's minion power as it stands, and its death grieves the81
# master, a quarter off its attack for 10 seconds ----83
archetype Necromancer84
base MaxHealth 10085
base Attack 10086
base MinionPower 3087
full Health89
archetype Wolf90
base MaxHealth 5091
base Attack holder.master.MinionPower92
full Health93
has Mortal94
has SpiritLink96
effect SpiritLink97
after Died of holder98
apply Grief to holder.master100
effect Grief101
lasts 10s102
Attack - 25%104
effect DarkPact105
MinionPower + 10107
# ---- G306 swift swim: double attack while the world holds rain, wherever the swimmer stands ----109
effect Rain110
lasts 30s112
effect SwiftSwim113
Attack + 100% * has(world, Rain) live115
archetype Diver116
base MaxHealth 100117
base Attack 10118
full Health119
has SwiftSwim1
catalog relations.ledger2
row G302 Upgraded ResearchWeapons Team Footman3
row G303 Upgraded NoFriendlyFire Charmed Hit Charm Team Footman4
row G304 Devotion Devoted Team Footman Paladin5
row G305 Mortal SpiritLink Grief DarkPact Necromancer Wolf6
row G306 Rain SwiftSwim World Diver8
play G302 "Two levels of research take a red footman from 10 to 14, and one built after; a blue one is 10; a red footman moved to blue reads blue's research at once"9
make red Team10
make blue Team11
make f1 Footman with team = red12
make b1 Footman with team = blue13
act red ResearchWeapons14
act red ResearchWeapons15
expect f1.Attack = 14 from G302: "14 attack"16
make f2 Footman with team = red17
expect f2.Attack = 14 from G302: "14 attack"18
expect b1.Attack = 10 from G302: "footman from 10"19
save20
act blue ResearchWeapons21
expect b1.Attack = 12 from G302: "footman from 10" + "+2 attack per level" * count "act blue ResearchWeapons"22
link f1 team blue23
expect f1.Attack = 12 from G302: "footman from 10" + "+2 attack per level" * count "act blue ResearchWeapons"24
act red ResearchWeapons25
act red ResearchWeapons26
expect refused Requirement "researched"27
expect f2.Attack = 16 from G302: "footman from 10" + "+2 attack per level" * "up to 3 levels"29
play G303 "A red footman's blow on red does nothing, on blue 10, on a teamless one 10; a blue one charmed onto red hits red for nothing and reads red's research until released"30
make red Team31
make blue Team32
make r1 Footman with team = red33
make r2 Footman with team = red34
make b1 Footman with team = blue35
make loner Footman36
act r1 Hit at r237
expect r2.Health = 100 from G303: r2.Health38
act r1 Hit at b139
expect b1.Health = 90 from G303: b1.Health - "deals the full 10"40
act r1 Hit at loner41
expect loner.Health = 90 from G303: loner.Health - "deals the full 10"42
act red ResearchWeapons43
act r1 Charm at b144
expect b1.team = red45
expect b1.Attack = 12 from G302: "footman from 10" + "+2 attack per level" * count "act red ResearchWeapons"46
save47
act b1 Hit at r248
expect r2.Health = 100 from G303: r2.Health49
remove Charmed from b150
expect b1.team = blue51
expect b1.Attack = 10 from G302: "footman from 10"52
act b1 Hit at r253
expect r2.Health = 90 from G303: r2.Health - "deals the full 10"55
play G304 "The paladin's devotion gives 10 armour to itself and a red footman within 5, none to a blue one beside it, a teamless one, or a red one 10 off"56
make red Team57
make blue Team58
make p Paladin with team = red at 059
make ally Footman with team = red at 360
make foe Footman with team = blue at 361
make loner Footman at 262
make far Footman with team = red at 1063
expect p.Armor = 10 from G304: "10 armor"64
expect ally.Armor = 10 from G304: ally.Armor + "+10 armor"65
expect foe.Armor = 0 from G304: foe.Armor66
expect loner.Armor = 0 from G304: loner.Armor67
expect far.Armor = 0 from G304: far.Armor68
save69
place far 470
expect far.Armor = 10 from G304: far.Armor + "+10 armor"72
play G305 "A necromancer's 30 minion power makes its wolf's attack 30, 40 when the power rises; the wolf killed, the necromancer's 100 attack is 75 for 10 seconds"73
make n Necromancer74
make w Wolf with master = n75
expect w.Attack = 30 from G305: "30 makes"76
apply DarkPact to n77
expect w.Attack = 40 from content: G305 gives no figure for the dark pact; the content's +10 on the necromancer's 3078
deal 50 to w79
expect w gone80
expect n.Attack = 75 from G305: n.Attack * (1 + "-25% attack")81
save82
advance 10s83
expect n.Attack = 100 from G305: n.Attack85
play G306 "A diver's 10 attack is 20 while it rains, wherever it stands, and 10 again when the 30 seconds of rain end"86
make world World87
link world world88
make d Diver at 10089
expect d.Attack = 10 from G306: d.Attack90
apply Rain to world91
expect d.Attack = 20 from G306: d.Attack * (1 + "+100% attack")92
save93
advance 29s94
expect d.Attack = 20 from G306: d.Attack * (1 + "+100% attack")95
advance 1s96
expect d.Attack = 10 from G306: d.Attack98
play G303 "Two charms that overlap on a blue footman leave it on the newer's side, still the newer's when the older ends first, and blue when both have ended"99
make red Team100
make blue Team101
make green Team102
make r1 Footman with team = red103
make g1 Footman with team = green104
make b1 Footman with team = blue105
apply Charmed to b1 for 2s from r1106
expect b1.team = red107
apply Charmed to b1 for 4s from g1108
expect b1.team = green109
advance 3s110
expect b1.team = green111
advance 2s112
expect b1.team = blueWhat 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 1 rule, in this order before, at Multiply NoFriendlyFire: Damage of holder by other allies at Multiply (content/cookbook/relations.ledger:55) prevents it, stops the phase: no rule after it runs; held by Footman no archetype lacks a layer its like hold
Run it yourself
ledger check content/cookbook/relations.ledger content/cookbook/relations.play
ledger play content/cookbook/relations.play
ledger pipeline content/cookbook/relations.ledger Health