This commit is contained in:
Forrest 2026-09-29 14:46:56 -04:00
parent 5d771eed1b
commit 5368464042
28 changed files with 887 additions and 187 deletions

View file

@ -2,7 +2,7 @@ import assert from 'node:assert/strict';
import { test } from 'node:test';
import { addBugs } from '../src/cards/util.ts';
import { avatarCores, canWear, executionActions, executionCost, programCost } from '../src/engine.ts';
import { portsFree } from '../src/query.ts';
import { healthOf, portsFree } from '../src/query.ts';
import { card } from './card.ts';
import { Table, type Side } from './table.ts';
@ -20,7 +20,8 @@ const attackerDice = (t: Table) => t.logText().match(/Roll: Broken Bits \[([\d,]
card('RAM Expansion', () => {
const t = scene({ south: { main: ['RAM Expansion'] } });
t.hardware(0, 1, 'RAM Expansion');
assert.equal(avatarCores(t.s, 0, 1, 'defend'), 6);
assert.equal(avatarCores(t.s, 0, 1, 'defend'), 4, 'no Cores');
assert.equal(healthOf(t.s, { player: 0, slot: 1 }), 9 + 2, 'Broken Bits: 9 Health, +2');
});
card('Additional Core', () => {