Skip to content

Commit

Permalink
Merge pull request #1114 from Metritutus/bulk-upgrade-fixes
Browse files Browse the repository at this point in the history
Bulk upgrade fixes
  • Loading branch information
SpacialCircumstances authored Jul 27, 2024
2 parents 28d0976 + 81c2436 commit 539202e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions server/services/starUpgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,15 +532,6 @@ export default class StarUpgradeService extends EventEmitter {
await this.achievementService.incrementInfrastructureBuilt(infrastructureType, player.userId, upgradeSummary.upgraded);
}

player.credits -= upgradeSummary.cost;

this.emit(StarUpgradeServiceEvents.onPlayerInfrastructureBulkUpgraded, {
gameId: game._id,
gameTick: game.state.tick,
player,
upgradeSummary
});

if (infrastructureType === 'science') {
upgradeSummary.currentResearchTicksEta = this.researchService.calculateCurrentResearchETAInTicks(game, player);
upgradeSummary.nextResearchTicksEta = this.researchService.calculateNextResearchETAInTicks(game, player);
Expand Down

0 comments on commit 539202e

Please sign in to comment.