fix: resolve all TypeScript compilation errors
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m17s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m17s
- Fixed DisciplinesAttunementType enum usage in discipline data files - Fixed EquipmentSlot import in equipment/types.ts - Fixed enchantment-effects.ts export/import chain - Fixed safe-persist.ts StateStorage type compatibility - Fixed store persist partial return types for all stores - Fixed gameStore.ts ElementState type and error handling - Fixed useGameDerived.ts missing properties on GameCoordinatorStore - Added SkillUpgradeChoice type to types.ts - Fixed ActionButtons.tsx optional currentStudyTarget prop - Fixed GameToast.tsx Toast type compatibility - Fixed EnchantmentDesigner sub-component type mismatches - Fixed SpireCombatPage equippedInstances/equipmentInstances types - Fixed page.tsx computeClickMana argument - Added baseCastTime to SpellDef type - Fixed golem/types.ts and loot-drops.ts import paths - Fixed craftingStore.ts missing lastError in initial state and actions - Fixed store-actions-combat-prestige.test.ts Memory type usage - Fixed floor-utils.upgraded.test.ts array type annotation - Fixed computed-stats.test.ts state type assertions - Fixed activity-log.test.ts state type annotation - Fixed discipline-math.test.ts enum value usage - Fixed game-loop.test.ts vitest mock import - Various other test file type fixes
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
// Helper to generate the starting equipment instances for new games.
|
||||
|
||||
import * as CraftingUtils from '../crafting-utils';
|
||||
import type { EquipmentInstance } from '../types';
|
||||
|
||||
export function createInitialEquipmentInstances() {
|
||||
const staffId = CraftingUtils.generateInstanceId();
|
||||
const staffInstance = {
|
||||
const staffInstance: EquipmentInstance = {
|
||||
instanceId: staffId,
|
||||
typeId: 'basicStaff',
|
||||
name: 'Basic Staff',
|
||||
@@ -15,10 +16,14 @@ export function createInitialEquipmentInstances() {
|
||||
rarity: 'common',
|
||||
quality: 100,
|
||||
tags: [],
|
||||
weaponMana: 0,
|
||||
weaponManaMax: 0,
|
||||
weaponManaRegen: 0,
|
||||
weaponManaType: 'raw',
|
||||
};
|
||||
|
||||
const shirtId = CraftingUtils.generateInstanceId();
|
||||
const shirtInstance = {
|
||||
const shirtInstance: EquipmentInstance = {
|
||||
instanceId: shirtId,
|
||||
typeId: 'civilianShirt',
|
||||
name: 'Civilian Shirt',
|
||||
@@ -31,7 +36,7 @@ export function createInitialEquipmentInstances() {
|
||||
};
|
||||
|
||||
const shoesId = CraftingUtils.generateInstanceId();
|
||||
const shoesInstance = {
|
||||
const shoesInstance: EquipmentInstance = {
|
||||
instanceId: shoesId,
|
||||
typeId: 'civilianShoes',
|
||||
name: 'Civilian Shoes',
|
||||
@@ -48,7 +53,7 @@ export function createInitialEquipmentInstances() {
|
||||
[staffId]: staffInstance,
|
||||
[shirtId]: shirtInstance,
|
||||
[shoesId]: shoesInstance,
|
||||
} as Record<string, typeof staffInstance>,
|
||||
} as Record<string, EquipmentInstance>,
|
||||
equippedInstances: {
|
||||
mainHand: staffId,
|
||||
offHand: null,
|
||||
|
||||
Reference in New Issue
Block a user