505 lines
28 KiB
Python
505 lines
28 KiB
Python
import json
|
|
from pathlib import Path
|
|
|
|
OUT = Path('/home/prime/.openclaw/workspace/cardgen/frosthallow_card_plan.json')
|
|
|
|
RARITY = {
|
|
'arch1': 'Rare',
|
|
'arch2': 'Epic',
|
|
'arch3': 'Legendary',
|
|
'common': 'Common',
|
|
'uncommon': 'Uncommon',
|
|
'rare': 'Rare',
|
|
'legendary': 'Legendary',
|
|
}
|
|
|
|
|
|
def base_unit(name, description, card_type, affinity, sp, st, hp, defense, damage, move_type, mp, atk_min, atk_max, atk_type, genus, rarity):
|
|
return {
|
|
'name': name,
|
|
'description': description,
|
|
'cardType': card_type,
|
|
'affinity': affinity,
|
|
'spCost': sp,
|
|
'stCost': st,
|
|
'maxHealth': hp,
|
|
'maxDefense': defense,
|
|
'damage': damage,
|
|
'movementType': move_type,
|
|
'movementPoints': mp,
|
|
'minAttackRange': atk_min,
|
|
'maxAttackRange': atk_max,
|
|
'attackType': atk_type,
|
|
'requiresLos': False,
|
|
'canAttack': True,
|
|
'canDefend': True,
|
|
'canBeAttacked': True,
|
|
'canBeBlocked': True,
|
|
'canMove': True,
|
|
'canBeObstructed': True,
|
|
'canUseAbility': True,
|
|
'canBeSacrificed': card_type != 'ArchSpirit',
|
|
'genus': genus,
|
|
'rarity': rarity,
|
|
}
|
|
|
|
|
|
def passive_affinity_stat(name, affinities, effects, desc):
|
|
return {
|
|
'Name': name,
|
|
'Type': 'Passive',
|
|
'Actions': [
|
|
{
|
|
'Target': {'Type': 'Unit', 'Count': {'All': True}, 'Scope': 'Battlefield', 'Ownership': 'Owner'},
|
|
'Effects': effects,
|
|
'Conditions': [{'$type': 'IsOnTileWithAffinity', 'Subject': 'Target', 'Affinity': aff}]
|
|
}
|
|
for aff in affinities
|
|
],
|
|
'Description': desc,
|
|
}
|
|
|
|
|
|
def until_turn(effects):
|
|
return {'Effects': effects, 'Duration': {'Type': 'UntilEndOfTurn'}}
|
|
|
|
|
|
plan = []
|
|
|
|
# ArchSpirit line
|
|
c = base_unit(
|
|
'Ulla, Keeper of the Distress Fires',
|
|
'A massive yeti matriarch stands beside a distress brazier on a blackwater snow shelf where pine roots claw down into a half-frozen fjord. Wind-driven cinders and aurora light mix in the dark.',
|
|
'ArchSpirit', 'Swamp', 10, 0, 8, 2, 1, 'Walk', 2, 1, 1, 'Melee', ['Yeti', 'Leader'], RARITY['arch1']
|
|
)
|
|
c.update({
|
|
'minChannelRange': 1, 'maxChannelRange': 3, 'tier': 1,
|
|
'abilitiesJson': [
|
|
passive_affinity_stat('Shelter Is Sacred', ['Lake', 'Forest', 'Swamp'], [{'$type': 'ModifyDefense', 'Amount': {'Fixed': 1}, 'StatTarget': 'Max'}], 'Friendly units on Lake, Forest, or Swamp gain +1 Defense.'),
|
|
{
|
|
'Name': 'Drag Them to Safety',
|
|
'Type': 'Active',
|
|
'Actions': [
|
|
{
|
|
'Target': {'Type': 'Unit', 'Count': {'N': 1}, 'Scope': 'Battlefield', 'Ownership': 'Owner'},
|
|
'Effects': [{'$type': 'ModifyMP', 'Amount': {'Fixed': 1}, 'StatTarget': 'Current'}],
|
|
'Duration': {'Type': 'UntilEndOfTurn'}
|
|
},
|
|
{
|
|
'Target': {'Type': 'Unit', 'Count': {'N': 1}, 'Scope': 'Battlefield', 'Ownership': 'Target'},
|
|
'Effects': [{'$type': 'HealDamage', 'Amount': {'Fixed': 1}}],
|
|
'Conditions': [{'$type': 'IsOnTileWithAffinity', 'Subject': 'Target', 'Affinity': 'Swamp'}]
|
|
}
|
|
],
|
|
'Description': 'Target friendly unit gains +1 MP this turn. If it is on Swamp, heal it 1.',
|
|
'Cost': [{'Type': 'SpiritPoints', 'Amount': 1}],
|
|
'Range': {'Min': 1, 'Max': 3},
|
|
'UsesPerTurn': 1,
|
|
},
|
|
{
|
|
'Name': 'Rescue Bell Answered',
|
|
'Type': 'Triggered',
|
|
'Actions': [{
|
|
'Target': {'Type': 'Unit', 'Count': {'N': 1}, 'Scope': 'Battlefield', 'Ownership': 'Target'},
|
|
'Effects': [{'$type': 'ModifyDefense', 'Amount': {'Fixed': 1}, 'StatTarget': 'Current'}]
|
|
}],
|
|
'Description': 'When a friendly Spirit enters the battlefield in this aura range, it gains +1 current Defense.',
|
|
'AuraRange': {'Min': 1, 'Max': 3},
|
|
'TriggerEvent': {'$type': 'OnEnterAuraRange', 'AuraOwnership': 'Owner', 'UnitOwnership': 'Owner', 'Filter': {'$type': 'CardTypeIs', 'CardType': 'Spirit'}},
|
|
}
|
|
]
|
|
})
|
|
plan.append(c)
|
|
|
|
c = base_unit(
|
|
'Ulla, Shelter in the Storm',
|
|
'Ulla stands at the mouth of Hollowglass as blizzard curtains swallow the mountainside. Around her, oath ropes, rescue bells, and storm lanterns form a ring of warmth in otherwise lethal white.',
|
|
'ArchSpirit', 'Swamp', 6, 1, 10, 3, 2, 'Walk', 2, 1, 2, 'Ranged', ['Yeti', 'Leader'], RARITY['arch2']
|
|
)
|
|
c.update({
|
|
'minChannelRange': 1, 'maxChannelRange': 4, 'tier': 2, 'previousTierName': 'Ulla, Keeper of the Distress Fires',
|
|
'abilitiesJson': [
|
|
{
|
|
'Name': 'Mercy Holds the Line',
|
|
'Type': 'Passive',
|
|
'Actions': [{
|
|
'Target': {'Type': 'Spirit', 'Count': {'All': True}, 'Scope': 'Battlefield', 'Ownership': 'Owner'},
|
|
'Effects': [{'$type': 'ModifyDamage', 'Amount': {'Fixed': 1}}, {'$type': 'SetCanBeBlocked', 'Value': False}],
|
|
'Conditions': [{'$type': 'IsOnTileWithAffinity', 'Subject': 'Target', 'Affinity': 'Swamp'}]
|
|
}],
|
|
'Description': 'Friendly Spirits on Swamp gain +1 Damage and cannot be blocked.'
|
|
},
|
|
{
|
|
'Name': 'White Truce',
|
|
'Type': 'Active',
|
|
'Actions': [
|
|
{
|
|
'Target': {'Type': 'Unit', 'Count': {'N': 1}, 'Scope': 'Battlefield', 'Ownership': 'Enemy'},
|
|
'Effects': [{'$type': 'SetCanAttack', 'Value': False}],
|
|
'Duration': {'Type': 'UntilEndOfTurn'}
|
|
},
|
|
{
|
|
'Target': {'Type': 'Unit', 'Count': {'N': 1}, 'Scope': 'Battlefield', 'Ownership': 'Target'},
|
|
'Effects': [{'$type': 'SetCanMove', 'Value': False}],
|
|
'Conditions': [{'$type': 'IsOnTileWithAffinity', 'Subject': 'Target', 'Affinity': 'Swamp'}],
|
|
'Duration': {'Type': 'UntilEndOfTurn'}
|
|
}
|
|
],
|
|
'Description': 'Target enemy loses CanAttack until end of turn. If it is on Swamp, it also loses CanMove until end of turn.',
|
|
'Cost': [{'Type': 'SpiritPoints', 'Amount': 2}],
|
|
'Range': {'Min': 1, 'Max': 4},
|
|
'UsesPerTurn': 1,
|
|
},
|
|
{
|
|
'Name': 'Shared Hearth',
|
|
'Type': 'Triggered',
|
|
'Actions': [{
|
|
'Target': {'Type': 'Unit', 'Count': {'N': 1}, 'Scope': 'Battlefield', 'Ownership': 'Target'},
|
|
'Effects': [{'$type': 'HealDamage', 'Amount': {'Fixed': 1}}]
|
|
}],
|
|
'Description': 'The first time each turn a friendly unit enters this aura range, heal it 1.',
|
|
'AuraRange': {'Min': 1, 'Max': 2},
|
|
'TriggerEvent': {'$type': 'OnEnterAuraRange', 'AuraOwnership': 'Owner', 'UnitOwnership': 'Owner'},
|
|
'TriggerLimitPerTurn': 1,
|
|
}
|
|
]
|
|
})
|
|
plan.append(c)
|
|
|
|
c = base_unit(
|
|
'Ulla, Hearth of Hollowglass',
|
|
'Ascended Ulla appears as a living sanctuary of fur, stone, and firelight, framed by glacier walls and black thawwater. Every bell in Hollowglass seems to ring in answer to her breath.',
|
|
'ArchSpirit', 'Swamp', 7, 2, 12, 4, 3, 'Walk', 2, 1, 2, 'Ranged', ['Yeti', 'Leader'], RARITY['arch3']
|
|
)
|
|
c.update({
|
|
'minChannelRange': 1, 'maxChannelRange': 5, 'tier': 3, 'previousTierName': 'Ulla, Shelter in the Storm',
|
|
'abilitiesJson': [
|
|
passive_affinity_stat('No One Dies Alone in Snow', ['Lake', 'Forest', 'Swamp'], [
|
|
{'$type': 'ModifyDamage', 'Amount': {'Fixed': 1}},
|
|
{'$type': 'ModifyHealth', 'Amount': {'Fixed': 1}, 'StatTarget': 'Max'}
|
|
], 'Friendly units on Lake, Forest, or Swamp gain +1/+1.'),
|
|
{
|
|
'Name': 'Mark the Winter Refuge',
|
|
'Type': 'Active',
|
|
'Actions': [
|
|
{
|
|
'Target': {'Type': 'Tile', 'Count': {'N': 1}, 'Scope': 'Battlefield', 'Ownership': 'Any'},
|
|
'Effects': [{'$type': 'PushFinalAffinity', 'Affinity': {'Fixed': 'Swamp'}}]
|
|
},
|
|
{
|
|
'Target': {'Type': 'Unit', 'Count': {'N': 1}, 'Scope': 'Battlefield', 'Ownership': 'Owner'},
|
|
'Effects': [{'$type': 'ModifyMP', 'Amount': {'Fixed': 1}, 'StatTarget': 'Current'}],
|
|
'Duration': {'Type': 'UntilEndOfTurn'}
|
|
}
|
|
],
|
|
'Description': 'Target tile becomes Swamp. Then target friendly unit gains +1 MP this turn.',
|
|
'Cost': [{'Type': 'SpiritPoints', 'Amount': 3}],
|
|
'Range': {'Min': 1, 'Max': 5},
|
|
'UsesPerTurn': 1,
|
|
},
|
|
{
|
|
'Name': 'Covenant of Survival',
|
|
'Type': 'Triggered',
|
|
'Actions': [{
|
|
'Target': {'Type': 'Unit', 'Count': {'N': 1}, 'Scope': 'Battlefield', 'Ownership': 'Target'},
|
|
'Effects': [{'$type': 'PreventDeath'}, {'$type': 'SetHealthMinimum', 'Minimum': 1}],
|
|
'Conditions': [{'$type': 'IsOnTileWithAffinity', 'Subject': 'Target', 'Affinity': 'Swamp'}]
|
|
}],
|
|
'Description': 'The first time each turn a friendly unit on Swamp would die, prevent that death and set its health minimum to 1.',
|
|
'TriggerEvent': {'$type': 'BeforeUnitDeath', 'UnitType': 'Unit', 'Ownership': 'Owner'},
|
|
'TriggerLimitPerTurn': 1,
|
|
}
|
|
]
|
|
})
|
|
plan.append(c)
|
|
|
|
# Terramorpha from design doc
|
|
plan += [
|
|
{
|
|
'name': 'Blackwater Monomorpha',
|
|
'description': 'A patch of ice gives way to dark reflective meltwater veined with blue moonlight.',
|
|
'cardType': 'Terramorpha',
|
|
'affinity': 'Lake',
|
|
'spCost': 2,
|
|
'stCost': 0,
|
|
'terramorphaMode': 'Mono',
|
|
'rarity': 'Common',
|
|
'effectsJson': [{
|
|
'Target': {'Type': 'Tile', 'Count': {'N': 1}, 'Scope': 'Battlefield', 'Ownership': 'Any'},
|
|
'Effects': [{'$type': 'PushAffinity', 'Affinity': {'Fixed': 'Lake'}}]
|
|
}]
|
|
},
|
|
{
|
|
'name': 'Pine-Hollow Dimorpha',
|
|
'description': 'Two connected bands of frostbound pine and root-shadow spread across the snow.',
|
|
'cardType': 'Terramorpha',
|
|
'affinity': 'Forest',
|
|
'spCost': 3,
|
|
'stCost': 0,
|
|
'terramorphaMode': 'Di',
|
|
'rarity': 'Common',
|
|
'effectsJson': [{
|
|
'Target': {'Type': 'Tile', 'Count': {'N': 2}, 'Scope': 'Battlefield', 'Ownership': 'Any'},
|
|
'Effects': [{'$type': 'PushAffinity', 'Affinity': {'Fixed': 'Forest'}}]
|
|
}]
|
|
}
|
|
]
|
|
|
|
# Spirits
|
|
spirits = [
|
|
('Fjord Oath Ferrier','A dark-maned ferrier glides across shelf ice where black water yawns under the crust.','Lake',1,0,2,0,1,'Walk',3,1,1,'Melee',['Kelpie'],'Common',[
|
|
{'Name':'Thawlane Intake','Type':'Triggered','Actions':[{
|
|
'Target': {'Type':'Player','Count':{'N':1},'Scope':'Player','Ownership':'Owner'},
|
|
'Effects':[{'$type':'DrawCards','N':1,'Player':'Owner'},{'$type':'DiscardCards','N':1,'Player':'Owner'}],
|
|
'Conditions':[{'$type':'IsOnTileWithAffinity','Subject':'Self','Affinity':'Swamp'}]
|
|
}],'Description':'When this enters on Swamp, draw 1 then discard 1.','TriggerEvent':{'$type':'OnUnitEnterBattlefield','UnitType':'Unit','Ownership':'Owner','Filter':{'$type':'IsSelf'}}}
|
|
]),
|
|
('Snowpine Trackguard','A pale-furred tracker reads wind-carved spoor through frozen scrub and pine.','Forest',1,0,2,1,1,'Walk',3,1,1,'Melee',['Werewolf','Scout'],'Common',[
|
|
{'Name':'Track the Thaw','Type':'Triggered','Actions':[{
|
|
'Target': {'Type':'Player','Count':{'N':1},'Scope':'Player','Ownership':'Owner'},
|
|
'Effects':[{'$type':'ModifySP','Amount':{'Fixed':1}}]
|
|
}],'Description':'When this moves onto Swamp, gain 1 SP.','TriggerEvent':{'$type':'OnUnitMPSpent','Ownership':'Owner','Filter':{'$type':'IsSelf'}},'ActivationConditions':[{'$type':'DestinationTileAffinityIs','Affinity':'Swamp'}]}
|
|
]),
|
|
('Bell Loft Witness','A hooded owl archivist peers down from a rimed bell tower over a storm-lit valley.','Forest',2,0,2,1,1,'Flight',2,1,2,'Ranged',['Barn Owl','Witness'],'Common',[
|
|
{'Name':'Silence Under Bell','Type':'Active','Actions':[{
|
|
'Target': {'Type':'Unit','Count':{'N':1},'Scope':'Battlefield','Ownership':'Enemy'},
|
|
'Effects':[{'$type':'SetCanUseAbility','Value':False}],
|
|
'Duration': {'Type':'UntilEndOfTurn'}
|
|
}],'Description':'On channel, target enemy loses CanUseAbility until end of turn.','Cost':[{'Type':'SpiritPoints','Amount':1}],'Range':{'Min':1,'Max':2},'UsesPerTurn':1}
|
|
]),
|
|
('Ice-Ring Tender','A compact colony guardian shelters chicks and refugees within a windbreak of packed snow.','Lake',2,0,2,2,1,'Walk',2,1,1,'Melee',['Emperor Penguin'],'Common',[
|
|
{'Name':'Rookery Shelter','Type':'Aura','Actions':[{
|
|
'Target': {'Type':'Unit','Count':{'All':True},'Scope':'Battlefield','Ownership':'Owner'},
|
|
'Effects':[{'$type':'ModifyDefense','Amount':{'Fixed':1},'StatTarget':'Max'}]
|
|
}],'Description':'Aura 1: friendly units gain +1 Defense.','AuraRange':{'Min':1,'Max':1}}
|
|
]),
|
|
('Thawland Oathbound','A broad rescue-warden plants an oath staff in wet snow beside a fissured crossing.','Swamp',2,0,2,1,2,'Walk',2,1,1,'Melee',['Yeti','Guardian'],'Uncommon',[
|
|
{'Name':'Hard Crossing','Type':'Triggered','Actions':[{
|
|
'Target': {'Type':'Unit','Count':{'N':1},'Scope':'Battlefield','Ownership':'Target'},
|
|
'Effects':[{'$type':'SetCanAttack','Value':False}],
|
|
'Duration': {'Type':'UntilEndOfTurn'}
|
|
}],'Description':'When an enemy enters this aura range on or adjacent to Swamp, it loses CanAttack until end of turn.','AuraRange':{'Min':1,'Max':1},'TriggerEvent':{'$type':'OnEnterAuraRange','AuraOwnership':'Owner','UnitOwnership':'Enemy'},'ActivationConditions':[{'$type':'IsOnOrAdjacentToTileWithAffinity','Subject':'Target','Affinity':'Swamp'}]}
|
|
]),
|
|
('Rimefjord Ledger Warden','An iron granary guardian stands before carved fish-oil stores in a cliffside dock monastery.','Lake',3,0,3,2,1,'Walk',2,1,2,'Ranged',['Iron Golem','Warden'],'Uncommon',[
|
|
{'Name':'Granary Count','Type':'Triggered','Actions':[{
|
|
'Target': {'Type':'Player','Count':{'N':1},'Scope':'Player','Ownership':'Owner'},
|
|
'Effects':[{'$type':'ModifySP','Amount':{'Fixed':1}}],
|
|
'Conditions':[{'$type':'ControlledTileCountWithAffinity','Subject':'Target','Affinity':'Swamp','Comparator':'GreaterThanOrEqual','N':1,'Ownership':'Owner'}]
|
|
}],'Description':'On enter, gain 1 SP if you control a Swamp tile.','TriggerEvent':{'$type':'OnUnitEnterBattlefield','UnitType':'Unit','Ownership':'Owner','Filter':{'$type':'IsSelf'}}}
|
|
]),
|
|
('Whiteout Pack Mediator','A scarred pack envoy paces between armed camps with snow stuck in her coat.','Forest',3,0,3,1,2,'Walk',3,1,1,'Melee',['Werewolf'],'Uncommon',[
|
|
{'Name':'Freeze the Feud','Type':'Active','Actions':[{
|
|
'Target': {'Type':'Unit','Count':{'N':1},'Scope':'Battlefield','Ownership':'Enemy'},
|
|
'Effects':[{'$type':'SetCanMove','Value':False}],
|
|
'Duration': {'Type':'UntilEndOfTurn'}
|
|
}],'Description':'Target enemy loses CanMove until end of turn.','Cost':[{'Type':'SpiritPoints','Amount':1}],'Range':{'Min':1,'Max':2},'UsesPerTurn':1}
|
|
]),
|
|
('Selene Hollow Covenantor','A valley oath-keeper traces aurora-lit contract circles into thawing ground.','Swamp',3,0,3,2,2,'Walk',2,1,2,'Ranged',['Barn Owl','Monk'],'Uncommon',[
|
|
{'Name':'Thawland Rite','Type':'Aura','Actions':[{
|
|
'Target': {'Type':'Unit','Count':{'All':True},'Scope':'Battlefield','Ownership':'Owner'},
|
|
'Effects':[{'$type':'ModifyDamage','Amount':{'Fixed':1}}],
|
|
'Conditions':[{'$type':'IsOnTileWithAffinity','Subject':'Target','Affinity':'Swamp'}]
|
|
}],'Description':'Friendly units on Swamp in aura range gain +1 Damage.','AuraRange':{'Min':1,'Max':2}}
|
|
]),
|
|
('Avalanche Bell-Mother','A great-furred rescuer hauls a bell frame through whiteout dark toward trapped lights below.','Forest',4,0,4,2,2,'Walk',2,1,2,'Ranged',['Yeti','Matriarch'],'Rare',[
|
|
{'Name':'Bell-Mother Respite','Type':'Triggered','Actions':[{
|
|
'Target': {'Type':'Unit','Count':{'N':1},'Scope':'Battlefield','Ownership':'Target'},
|
|
'Effects':[{'$type':'HealDamage','Amount':{'Fixed':1}}]
|
|
}],'Description':'When another friendly unit enters this aura range, heal it 1.','AuraRange':{'Min':1,'Max':2},'TriggerEvent':{'$type':'OnEnterAuraRange','AuraOwnership':'Owner','UnitOwnership':'Owner'}}
|
|
]),
|
|
('Blackwater Bargain-Keeper','A sleek fjord spirit rises from moon-slashed water with treaty cords wound around one arm.','Lake',4,0,4,1,3,'Walk',3,1,2,'Ranged',['Kelpie'],'Rare',[
|
|
{'Name':'Treaty Undertow','Type':'Triggered','Actions':[{
|
|
'Target': {'Type':'Unit','Count':{'N':1},'Scope':'Battlefield','Ownership':'Enemy'},
|
|
'Effects':[{'$type':'PullUnit','Tiles':1}]
|
|
}],'Description':'When this attacks a unit, pull that unit 1 tile.','TriggerEvent':{'$type':'OnUnitAttack','Ownership':'Owner','Filter':{'$type':'IsSelf'}}}
|
|
]),
|
|
('Circle of the Seventh Egg','A rookery circle closes around the weak while gale-driven snow sheets over them.','Swamp',4,0,4,3,1,'Walk',2,1,1,'Melee',['Emperor Penguin'],'Rare',[
|
|
{'Name':'Rookery Circle','Type':'Passive','Actions':[{
|
|
'Target': {'Type':'Unit','Count':{'All':True},'Scope':'Battlefield','Ownership':'Owner','Filters':[{'$type':'IsAdjacentToSource'}]},
|
|
'Effects':[{'$type':'SetCanBeAttacked','Value':False}],
|
|
'Conditions':[{'$type':'IsOwnTurn'}]
|
|
}],'Description':'Friendly adjacent units cannot be attacked during your turn.'}
|
|
]),
|
|
('Glacier Forgebinder','A furnace giant hammers heated chain into frozen anchor points beneath the aurora.','Lake',4,0,4,2,3,'Walk',2,1,1,'Melee',['Fire Giant'],'Rare',[
|
|
{'Name':'Forgebind the Crossing','Type':'Triggered','Actions':[{
|
|
'Target': {'Type':'Unit','Count':{'N':1},'Scope':'Battlefield','Ownership':'Enemy'},
|
|
'Effects':[{'$type':'SetCanMove','Value':False}],
|
|
'Duration': {'Type':'UntilEndOfTurn'}
|
|
}],'Description':'When this attacks while on Swamp, the attacked unit loses CanMove until end of turn.','TriggerEvent':{'$type':'OnUnitAttack','Ownership':'Owner','Filter':{'$type':'IsSelf'}},'ActivationConditions':[{'$type':'IsOnTileWithAffinity','Subject':'Self','Affinity':'Swamp'}]}
|
|
]),
|
|
('Stormcrown Omen Reader','A towering seer reads snow and lightning across an entire mountain pass from one glacier tower.','Forest',5,0,5,2,2,'Walk',2,1,2,'Ranged',['Cloud Giant'],'Rare',[
|
|
{'Name':'Read the Drift','Type':'Triggered','Actions':[{
|
|
'Target': {'Type':'Player','Count':{'N':1},'Scope':'Player','Ownership':'Owner'},
|
|
'Effects':[{'$type':'DrawCards','N':1,'Player':'Owner'},{'$type':'DiscardCards','N':1,'Player':'Owner'}]
|
|
}],'Description':'On enter, draw 1 then discard 1.','TriggerEvent':{'$type':'OnUnitEnterBattlefield','UnitType':'Unit','Ownership':'Owner','Filter':{'$type':'IsSelf'}}}
|
|
]),
|
|
('Red Snow Witness-Dead','War dead rise from a drift where banners and bones share the same red frost.','Swamp',5,0,5,2,3,'Walk',2,1,2,'Ranged',['Revenant'],'Rare',[
|
|
{'Name':'Memory of the Slain','Type':'Aura','Actions':[{
|
|
'Target': {'Type':'Unit','Count':{'All':True},'Scope':'Battlefield','Ownership':'Enemy'},
|
|
'Effects':[{'$type':'ModifyDamage','Amount':{'Fixed':-1}}]
|
|
}],'Description':'Enemies in aura range have -1 Damage.','AuraRange':{'Min':1,'Max':2}}
|
|
]),
|
|
('Hask, Fang Against the Feud','A white-furred guardian stands between snarling kin and shivering strangers with equal fury.','Forest',5,0,5,2,3,'Walk',4,1,1,'Melee',['Werewolf','Heroic'],'Legendary',[
|
|
{'Name':'Break the Pursuit','Type':'Triggered','Actions':[{
|
|
'Target': {'Type':'Unit','Count':{'N':1},'Scope':'Battlefield','Ownership':'Target'},
|
|
'Effects':[{'$type':'ModifyMP','Amount':{'Fixed':1},'StatTarget':'Current'}],
|
|
'Duration': {'Type':'UntilEndOfTurn'}
|
|
}],'Description':'When a friendly unit enters this aura range on Swamp, it gains +1 MP this turn.','AuraRange':{'Min':1,'Max':2},'TriggerEvent':{'$type':'OnEnterAuraRange','AuraOwnership':'Owner','UnitOwnership':'Owner'},'ActivationConditions':[{'$type':'IsOnTileWithAffinity','Subject':'Target','Affinity':'Swamp'}]}
|
|
]),
|
|
('Long Night Covenant Whale','A spectral whale-shadow glides under black thawwater and ice glass, its song carrying through the valley.','Swamp',7,1,7,3,3,'Walk',2,1,2,'Ranged',['Mythic Beast'],'Legendary',[
|
|
{'Name':'Song Through Thawwater','Type':'Passive','Actions':[{
|
|
'Target': {'Type':'Unit','Count':{'All':True},'Scope':'Battlefield','Ownership':'Owner'},
|
|
'Effects':[{'$type':'ModifyDamage','Amount':{'Fixed':1}},{'$type':'ModifyHealth','Amount':{'Fixed':1},'StatTarget':'Max'}],
|
|
'Conditions':[{'$type':'IsOnTileWithAffinity','Subject':'Target','Affinity':'Swamp'}]
|
|
}],'Description':'Friendly Swamp units gain +1/+1.'},
|
|
{'Name':'First Song of the Long Night','Type':'Triggered','Actions':[{
|
|
'Target': {'Type':'Unit','Count':{'N':1},'Scope':'Battlefield','Ownership':'Target'},
|
|
'Effects':[{'$type':'HealDamage','Amount':{'Fixed':1}}]
|
|
}],'Description':'The first time each turn a friendly unit enters this aura range, heal it 1.','AuraRange':{'Min':1,'Max':2},'TriggerEvent':{'$type':'OnEnterAuraRange','AuraOwnership':'Owner','UnitOwnership':'Owner'},'TriggerLimitPerTurn':1}
|
|
]),
|
|
]
|
|
for name, desc, aff, sp, st, hp, df, dmg, mt, mp, amin, amax, atype, genus, rarity, abilities in spirits:
|
|
c = base_unit(name, desc, 'Spirit', aff, sp, st, hp, df, dmg, mt, mp, amin, amax, atype, genus, rarity)
|
|
c['abilitiesJson'] = abilities
|
|
plan.append(c)
|
|
|
|
# Repentance
|
|
plan += [
|
|
{
|
|
'name': 'Shelter Bell Toll',
|
|
'description': 'A bronze rescue bell rings through blizzard static and everyone hears the command to stop killing.',
|
|
'cardType': 'Repentance', 'affinity': 'Forest', 'spCost': 1, 'stCost': 0, 'rarity': 'Common',
|
|
'effectsJson': [{
|
|
'Target': {'Type': 'Unit', 'Count': {'N': 1}, 'Scope': 'Battlefield', 'Ownership': 'Owner'},
|
|
'Effects': [{'$type': 'SetCanBeAttacked', 'Value': False}],
|
|
'Duration': {'Type': 'UntilEndOfTurn'}
|
|
}]
|
|
},
|
|
{
|
|
'name': 'Blackwater Crossing',
|
|
'description': 'Thin ice cracks open into a route only the sworn know how to cross.',
|
|
'cardType': 'Repentance', 'affinity': 'Lake', 'spCost': 2, 'stCost': 0, 'rarity': 'Common',
|
|
'effectsJson': [{
|
|
'Target': {'Type': 'Unit', 'Count': {'N': 1}, 'Scope': 'Battlefield', 'Ownership': 'Owner'},
|
|
'Effects': [{'$type': 'ModifyMP', 'Amount': {'Fixed': 2}, 'StatTarget': 'Current'}],
|
|
'Duration': {'Type': 'UntilEndOfTurn'}
|
|
}]
|
|
},
|
|
{
|
|
'name': 'Mercy Before Feud',
|
|
'description': 'Rivals lower their weapons in the thawland while snow falls into dark water around them.',
|
|
'cardType': 'Repentance', 'affinity': 'Swamp', 'spCost': 2, 'stCost': 0, 'rarity': 'Uncommon',
|
|
'effectsJson': [
|
|
{
|
|
'Target': {'Type': 'Unit', 'Count': {'N': 1}, 'Scope': 'Battlefield', 'Ownership': 'Enemy'},
|
|
'Effects': [{'$type': 'SetCanAttack', 'Value': False}],
|
|
'Duration': {'Type': 'UntilEndOfTurn'}
|
|
},
|
|
{
|
|
'Target': {'Type': 'Unit', 'Count': {'N': 1}, 'Scope': 'Battlefield', 'Ownership': 'Target'},
|
|
'Effects': [{'$type': 'SetCanUseAbility', 'Value': False}],
|
|
'Conditions': [{'$type': 'IsOnTileWithAffinity', 'Subject': 'Target', 'Affinity': 'Swamp'}],
|
|
'Duration': {'Type': 'UntilEndOfTurn'}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
'name': 'Renew the Winter Covenant',
|
|
'description': 'Aurora-lit oath cords are rewoven around standing stones in Selene Hollow.',
|
|
'cardType': 'Repentance', 'affinity': 'Swamp', 'spCost': 3, 'stCost': 0, 'rarity': 'Rare',
|
|
'effectsJson': [
|
|
{
|
|
'Target': {'Type': 'Tile', 'Count': {'N': 1}, 'Scope': 'Battlefield', 'Ownership': 'Any'},
|
|
'Effects': [{'$type': 'PushFinalAffinity', 'Affinity': {'Fixed': 'Swamp'}}]
|
|
},
|
|
{
|
|
'Target': {'Type': 'Unit', 'Count': {'N': 1}, 'Scope': 'Battlefield', 'Ownership': 'Owner'},
|
|
'Effects': [{'$type': 'HealDamage', 'Amount': {'Fixed': 1}}]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
'name': 'The Circle Holds',
|
|
'description': 'Refugees, monks, pack guardians, and rookery keepers brace shoulder to shoulder through a killing gale.',
|
|
'cardType': 'Repentance', 'affinity': 'Swamp', 'spCost': 4, 'stCost': 0, 'rarity': 'Rare',
|
|
'effectsJson': [{
|
|
'Target': {'Type': 'Unit', 'Count': {'All': True}, 'Scope': 'Battlefield', 'Ownership': 'Owner'},
|
|
'Effects': [
|
|
{'$type': 'ModifyDamage', 'Amount': {'Fixed': 1}},
|
|
{'$type': 'ModifyHealth', 'Amount': {'Fixed': 1}, 'StatTarget': 'Max'},
|
|
{'$type': 'SetCanBeBlocked', 'Value': False}
|
|
],
|
|
'Conditions': [{'$type': 'IsOnTileWithAffinity', 'Subject': 'Target', 'Affinity': 'Swamp'}],
|
|
'Duration': {'Type': 'UntilEndOfTurn'}
|
|
}]
|
|
}
|
|
]
|
|
|
|
# Ruin
|
|
plan.append({
|
|
'name': 'Oathstone Beneath the Drift',
|
|
'description': 'A treaty stone half-buried in bloody snow glows whenever a sworn survivor stands atop it.',
|
|
'cardType': 'Ruin', 'affinity': 'Swamp', 'spCost': 3, 'stCost': 0, 'rarity': 'Rare',
|
|
'abilitiesJson': [
|
|
{
|
|
'Name': 'Distress Cache',
|
|
'Type': 'Triggered',
|
|
'Actions': [
|
|
{
|
|
'Target': {'Type': 'Player', 'Count': {'N': 1}, 'Scope': 'Player', 'Ownership': 'Owner'},
|
|
'Effects': [{'$type': 'ModifySP', 'Amount': {'Fixed': 1}}]
|
|
}
|
|
],
|
|
'Description': 'If this Ruin is occupied by a friendly unit when it activates, gain 1 SP.',
|
|
'TriggerEvent': {'$type': 'OnRuinActivation', 'RuinOwnership': 'Owner', 'OccupantOwnership': 'Owner'}
|
|
}
|
|
]
|
|
})
|
|
|
|
# Instinct
|
|
plan += [
|
|
{
|
|
'name': 'Turn Them from the Shelter',
|
|
'description': 'A rescue staff bars the doorway and even the furious hesitate.',
|
|
'cardType': 'Instinct', 'affinity': 'Swamp', 'spCost': 1, 'stCost': 0, 'rarity': 'Common',
|
|
'effectsJson': [{
|
|
'Target': {'Type': 'Unit', 'Count': {'N': 1}, 'Scope': 'Battlefield', 'Ownership': 'Any'},
|
|
'Effects': [{'$type': 'SetCanAttack', 'Value': False}],
|
|
'Duration': {'Type': 'UntilEndOfSequence'}
|
|
}]
|
|
},
|
|
{
|
|
'name': 'Whiteout Step',
|
|
'description': 'A hunted figure vanishes sideways into blowing snow and pine shadow.',
|
|
'cardType': 'Instinct', 'affinity': 'Forest', 'spCost': 2, 'stCost': 0, 'rarity': 'Common',
|
|
'effectsJson': [{
|
|
'Target': {'Type': 'Unit', 'Count': {'N': 1}, 'Scope': 'Battlefield', 'Ownership': 'Owner'},
|
|
'Effects': [{'$type': 'SetCanBeAttacked', 'Value': False}],
|
|
'Duration': {'Type': 'UntilEndOfTurn'}
|
|
}]
|
|
},
|
|
{
|
|
'name': 'Icewake Undertow',
|
|
'description': 'A crust of ice gives way and an attacker is dragged off line by black water.',
|
|
'cardType': 'Instinct', 'affinity': 'Lake', 'spCost': 2, 'stCost': 0, 'rarity': 'Common',
|
|
'effectsJson': [{
|
|
'Target': {'Type': 'Unit', 'Count': {'N': 1}, 'Scope': 'Battlefield', 'Ownership': 'Any'},
|
|
'Effects': [{'$type': 'PullUnit', 'Tiles': 1}]
|
|
}]
|
|
},
|
|
{
|
|
'name': 'No Blood on the Oathground',
|
|
'description': 'Aurora light hardens the air itself against a killing blow in the treaty hollow.',
|
|
'cardType': 'Instinct', 'affinity': 'Swamp', 'spCost': 3, 'stCost': 0, 'rarity': 'Rare',
|
|
'effectsJson': [{
|
|
'Target': {'Type': 'Unit', 'Count': {'N': 1}, 'Scope': 'Battlefield', 'Ownership': 'Owner'},
|
|
'Effects': [{'$type': 'PreventDeath'}, {'$type': 'SetHealthMinimum', 'Minimum': 1}],
|
|
'Conditions': [{'$type': 'IsOnTileWithAffinity', 'Subject': 'Target', 'Affinity': 'Swamp'}],
|
|
'Duration': {'Type': 'UntilEndOfSequence'}
|
|
}]
|
|
}
|
|
]
|
|
|
|
OUT.write_text(json.dumps(plan, indent=2) + '\n')
|
|
print(f'wrote {OUT} with {len(plan)} cards')
|