mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
Update App.vue
This commit is contained in:
@@ -695,7 +695,7 @@
|
|||||||
const spyReport = fleetLogic.processSpyArrival(mission, targetPlanet, gameStore.player, null, npcStore.npcs)
|
const spyReport = fleetLogic.processSpyArrival(mission, targetPlanet, gameStore.player, null, npcStore.npcs)
|
||||||
if (spyReport) gameStore.player.spyReports.push(spyReport)
|
if (spyReport) gameStore.player.spyReports.push(spyReport)
|
||||||
} else if (mission.missionType === MissionType.Deploy) {
|
} else if (mission.missionType === MissionType.Deploy) {
|
||||||
const deployed = fleetLogic.processDeployArrival(mission, targetPlanet, gameStore.player.id)
|
const deployed = fleetLogic.processDeployArrival(mission, targetPlanet, gameStore.player.id, gameStore.player.technologies)
|
||||||
// 生成部署任务报告
|
// 生成部署任务报告
|
||||||
if (!gameStore.player.missionReports) {
|
if (!gameStore.player.missionReports) {
|
||||||
gameStore.player.missionReports = []
|
gameStore.player.missionReports = []
|
||||||
@@ -710,14 +710,14 @@
|
|||||||
targetPlanetId: targetPlanet?.id,
|
targetPlanetId: targetPlanet?.id,
|
||||||
targetPlanetName:
|
targetPlanetName:
|
||||||
targetPlanet?.name || `[${mission.targetPosition.galaxy}:${mission.targetPosition.system}:${mission.targetPosition.position}]`,
|
targetPlanet?.name || `[${mission.targetPosition.galaxy}:${mission.targetPosition.system}:${mission.targetPosition.position}]`,
|
||||||
success: deployed,
|
success: deployed.success,
|
||||||
message: deployed ? t('missionReports.deploySuccess') : t('missionReports.deployFailed'),
|
message: deployed.success ? t('missionReports.deploySuccess') : t('missionReports.deployFailed'),
|
||||||
details: {
|
details: {
|
||||||
deployedFleet: mission.fleet
|
deployedFleet: mission.fleet
|
||||||
},
|
},
|
||||||
read: false
|
read: false
|
||||||
})
|
})
|
||||||
if (deployed) {
|
if (deployed.success && !deployed.overflow) {
|
||||||
const missionIndex = gameStore.player.fleetMissions.indexOf(mission)
|
const missionIndex = gameStore.player.fleetMissions.indexOf(mission)
|
||||||
if (missionIndex > -1) gameStore.player.fleetMissions.splice(missionIndex, 1)
|
if (missionIndex > -1) gameStore.player.fleetMissions.splice(missionIndex, 1)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user