diff --git a/TODO.txt b/TODO.txt index f3f3bd358..768679956 100644 --- a/TODO.txt +++ b/TODO.txt @@ -194,6 +194,7 @@ * have bots recapture after nuclear blast DONE 11/24/2022 * BUG: destroys destroy trade ships instead of capturing them DONE 11/25/2024 * nukes break alliance DONE 11/25/2024 +* BUG: nuke yourself makes you traitor DONE 11/25/2024 * don't capture trade ships if allied with either port * make ports cost more for more ports * NPC has relations diff --git a/src/core/configuration/DevConfig.ts b/src/core/configuration/DevConfig.ts index 18067a883..6ed85f785 100644 --- a/src/core/configuration/DevConfig.ts +++ b/src/core/configuration/DevConfig.ts @@ -5,7 +5,7 @@ export const devConfig = new class extends DefaultConfig { unitInfo(type: UnitType): UnitInfo { const info = super.unitInfo(type) const oldCost = info.cost - // info.cost = (p: Player) => oldCost(p) / 100 + info.cost = (p: Player) => oldCost(p) / 1000 return info } diff --git a/src/core/execution/NukeExecution.ts b/src/core/execution/NukeExecution.ts index 9a729991a..111484c75 100644 --- a/src/core/execution/NukeExecution.ts +++ b/src/core/execution/NukeExecution.ts @@ -80,7 +80,9 @@ export class NukeExecution implements Execution { const mp = this.mg.player(owner.id()) mp.relinquish(tile) mp.removeTroops(ratio[mp.id()]) - others.add(mp) + if (owner != this.player) { + others.add(mp) + } } } for (const other of others) {