fix build errors due to bad merge

This commit is contained in:
evanpelle
2025-06-03 16:50:45 +02:00
committed by 1brucben
parent 7b7e079eb2
commit 55e232435f
+1 -2
View File
@@ -31,8 +31,7 @@ export class DonateTroopsExecution implements Execution {
this.troops = mg.config().defaultDonationAmount(this.sender);
}
const maxDonation =
mg.config().maxPopulation(this.recipient) -
this.recipient.totalPopulation();
mg.config().maxPopulation(this.recipient) - this.recipient.population();
this.troops = Math.min(this.troops, maxDonation);
}