mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
feat: 重构战报弹窗与模拟器视图,优化UI与逻辑
重构BattleReportDialog和BattleSimulatorView相关静态资源,替换旧版JS/CSS文件,提升界面一致性和交互体验。新增和优化空状态、滚动区域等通用UI组件,移除部分冗余composable,完善多语言内容。引入导弹逻辑,补充版本检测工具,提升整体代码结构和可维护性。
This commit is contained in:
@@ -3,6 +3,9 @@ import { TechnologyType, BuildingType } from '@/types/game'
|
||||
import { TECHNOLOGIES } from '@/config/gameConfig'
|
||||
import * as pointsLogic from './pointsLogic'
|
||||
|
||||
// 用于生成唯一ID的计数器
|
||||
let researchQueueIdCounter = 0
|
||||
|
||||
/**
|
||||
* 计算科技研究成本
|
||||
*/
|
||||
@@ -77,8 +80,9 @@ export const checkTechnologyRequirements = (
|
||||
*/
|
||||
export const createResearchQueueItem = (techType: TechnologyType, targetLevel: number, researchTime: number): BuildQueueItem => {
|
||||
const now = Date.now()
|
||||
researchQueueIdCounter++
|
||||
return {
|
||||
id: `research_${now}`,
|
||||
id: `research_${now}_${researchQueueIdCounter}`,
|
||||
type: 'technology',
|
||||
itemType: techType,
|
||||
targetLevel,
|
||||
|
||||
Reference in New Issue
Block a user