mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 16:05:12 +08:00
feat: 为 ID 生成添加随机后缀并增强 GM 面板功能
- 为战斗报告、星球、月球、任务通知和舰队任务等 ID 添加随机后缀,避免重复 ID - 在 GM 面板中添加预设管理系统,支持保存和应用建筑、研究、舰船和防御的配置 - 在外交界面添加 NPC 排序功能,支持按声望、星球数量、难度和盟友数量排序 - 修复数据迁移中的重复星球 ID 问题,确保月球与母星关联正确 - 优化 GM 面板的资源最大化功能,基于实际存储容量设置资源 - 为所有支持的语言添加相关翻译文本
This commit is contained in:
@@ -515,7 +515,7 @@ export const createQuestNotification = (
|
||||
): QuestNotification => {
|
||||
const quest = getQuestById(questId)
|
||||
return {
|
||||
id: `quest_notification_${Date.now()}`,
|
||||
id: `quest_notification_${Date.now()}_${Math.random().toString(36).substring(2, 9)}`,
|
||||
timestamp: Date.now(),
|
||||
questId,
|
||||
questTitleKey: quest?.titleKey || '',
|
||||
|
||||
Reference in New Issue
Block a user