refactor: rename 'user' target to 'source' in slay-the-spire-like

Updates the card effect and intent target types from 'user' to 'source'
within the desert data files and combat effect system to maintain
consistency. Also reformat command tests to use 2-space indentation.
This commit is contained in:
2026-04-23 00:35:28 +08:00
parent f4c96a4a72
commit 8ec95cbf81
6 changed files with 193 additions and 191 deletions
@@ -112,7 +112,7 @@ export function* getEffectTargets(
for (const enemy of getAliveEnemies(game.value)) {
yield enemy;
}
} else if (target === "user") {
} else if (target === "source") {
const entity = getCombatEntity(game.value, sourceEntityKey);
if (entity) yield entity;
} else if (target === "player") {