feat: increase strike damage values and implement hive_link passive for Swarm

- Updated `strike` damage values in `data/cards.json` to 10, 20, 30, and 40 respectively.
- Added `hive_link` passive skill to Swarm cards with scaling values (1, 2, 4, 8).
- Modified `CombatEngine.js` to process `hive_link` skills during the `_processOnDeath` phase, ensuring the passive effect triggers when Swarm units die.
This commit is contained in:
Brian Fertig 2026-03-21 11:55:46 -06:00
parent 7237d23363
commit bb61298038
2 changed files with 33 additions and 9 deletions

View File

@ -1591,7 +1591,7 @@
},
{
"name": "strike",
"value": 5,
"value": 10,
"trigger": "preAttack"
}
]
@ -1609,7 +1609,7 @@
},
{
"name": "strike",
"value": 7,
"value": 20,
"trigger": "preAttack"
}
]
@ -1627,7 +1627,7 @@
},
{
"name": "strike",
"value": 10,
"value": 30,
"trigger": "preAttack"
}
]
@ -1645,7 +1645,7 @@
},
{
"name": "strike",
"value": 15,
"value": 40,
"trigger": "preAttack"
}
]
@ -3124,28 +3124,52 @@
"health": 8,
"armor": 0,
"delay": 0,
"skills": []
"skills": [
{
"name": "hive_link",
"value": 1,
"trigger": "passive"
}
]
},
{
"attack": 4,
"health": 12,
"armor": 0,
"delay": 0,
"skills": []
"skills": [
{
"name": "hive_link",
"value": 2,
"trigger": "passive"
}
]
},
{
"attack": 6,
"health": 18,
"armor": 0,
"delay": 0,
"skills": []
"skills": [
{
"name": "hive_link",
"value": 4,
"trigger": "passive"
}
]
},
{
"attack": 9,
"health": 27,
"armor": 0,
"delay": 0,
"skills": []
"skills": [
{
"name": "hive_link",
"value": 8,
"trigger": "passive"
}
]
}
],
"flavorText": "Born to die. Born to swarm.",

View File

@ -363,7 +363,7 @@ export class CombatEngine {
// Process on_death skills for a card that just died
_processOnDeath(deadCard, alliedLanes, side) {
for (const s of deadCard.skills) {
if (s.trigger !== 'on_death') continue;
if (s.trigger !== 'on_death' && s.name !== 'hive_link') continue;
const allies = alliedLanes.filter(a => a.currentHP > 0);
const ctx = {};
this.skillProcessor.process(s, deadCard, null, allies, [], ctx);