Crystal and Stellar element recipe inconsistencies between elements.ts and conversion-costs.ts #344

Open
opened 2026-06-09 14:28:55 +02:00 by Anexim · 0 comments
Owner

Bug: Crystal and Stellar element recipe inconsistencies between elements.ts and conversion-costs.ts

Steps to reproduce

  1. Check src/lib/game/constants/elements.tscrystal and stellar entries
  2. Check src/lib/game/data/conversion-costs.tscrystal and stellar entries

Expected

The recipe in elements.ts and the component costs in conversion-costs.ts should match for all elements.

Actual

  • Crystal: elements.ts recipe is ["sand", "sand", "light"] (3 components: 2 sand + 1 light) but conversion-costs.ts has ['sand', 'light'] (2 components: 1 sand + 1 light)
  • Stellar: elements.ts recipe is ["plasma", "light", "fire"] (3 components) but conversion-costs.ts has ['plasma', 'light'] (2 components, missing fire)

The conversion system uses conversion-costs.ts, so the gameplay cost differs from what the UI recipe display suggests.

Root cause

The recipes were likely updated in elements.ts but not propagated to conversion-costs.ts.

Files

  • src/lib/game/constants/elements.ts
  • src/lib/game/data/conversion-costs.ts
## Bug: Crystal and Stellar element recipe inconsistencies between elements.ts and conversion-costs.ts ### Steps to reproduce 1. Check `src/lib/game/constants/elements.ts` → `crystal` and `stellar` entries 2. Check `src/lib/game/data/conversion-costs.ts` → `crystal` and `stellar` entries ### Expected The recipe in `elements.ts` and the component costs in `conversion-costs.ts` should match for all elements. ### Actual - **Crystal**: `elements.ts` recipe is `["sand", "sand", "light"]` (3 components: 2 sand + 1 light) but `conversion-costs.ts` has `['sand', 'light']` (2 components: 1 sand + 1 light) - **Stellar**: `elements.ts` recipe is `["plasma", "light", "fire"]` (3 components) but `conversion-costs.ts` has `['plasma', 'light']` (2 components, missing fire) The conversion system uses `conversion-costs.ts`, so the gameplay cost differs from what the UI recipe display suggests. ### Root cause The recipes were likely updated in `elements.ts` but not propagated to `conversion-costs.ts`. ### Files - `src/lib/game/constants/elements.ts` - `src/lib/game/data/conversion-costs.ts`
Anexim added the ai:todo label 2026-06-09 14:28:55 +02:00
n8n-gitea was assigned by Anexim 2026-06-09 14:28:55 +02:00
Anexim changed title from [Low] [Bug] Crystal element recipe inconsistency between elements.ts and conversion-costs.ts to Crystal and Stellar element recipe inconsistencies between elements.ts and conversion-costs.ts 2026-06-09 14:33:46 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Anexim/Mana-Loop#344