chore: golemancy redesign cleanup — remove orphaned legacy code and update docs
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m19s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m19s
This commit is contained in:
@@ -14,6 +14,7 @@ import {
|
||||
createActiveGolem,
|
||||
} from '@/lib/game/data/golems/utils';
|
||||
import type { GolemDesign } from '@/lib/game/data/golems/types';
|
||||
import type { RuntimeActiveGolem } from '@/lib/game/types';
|
||||
|
||||
// ─── Helper ───────────────────────────────────────────────────────────────────
|
||||
|
||||
@@ -274,9 +275,9 @@ describe('canAffordGolemDesign', () => {
|
||||
// ─── Active Golem Creation ────────────────────────────────────────────────────
|
||||
|
||||
describe('createActiveGolem', () => {
|
||||
it('creates active golem with correct initial state', () => {
|
||||
it('creates RuntimeActiveGolem with correct initial state', () => {
|
||||
const design = makeDesign('basic', 'earth', 'simple');
|
||||
const active = createActiveGolem(design, 5);
|
||||
const active = createActiveGolem(design, 5) as RuntimeActiveGolem;
|
||||
|
||||
expect(active.designId).toBe(design.id);
|
||||
expect(active.summonedFloor).toBe(5);
|
||||
@@ -288,7 +289,7 @@ describe('createActiveGolem', () => {
|
||||
|
||||
it('guardian golem starts with full mana', () => {
|
||||
const design = makeDesign('guardian', 'crystalSteelHybrid', 'guardian');
|
||||
const active = createActiveGolem(design, 10);
|
||||
const active = createActiveGolem(design, 10) as RuntimeActiveGolem;
|
||||
|
||||
expect(active.currentMana).toBe(500);
|
||||
expect(active.roomsRemaining).toBe(8);
|
||||
|
||||
Reference in New Issue
Block a user