mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-21 04:43:46 +00:00
Add missing parenthesis in the Petra diplomacyManager. Else the requested tribute amount would always be wrong.
Reviewed by: @bb Differential Revision: https://code.wildfiregames.com/D1826 This was SVN commit r22192.
This commit is contained in:
@@ -404,7 +404,7 @@ m.DiplomacyManager.prototype.handleDiplomacyRequest = function(gameState, player
|
||||
{
|
||||
response = "acceptWithTribute";
|
||||
requiredTribute = gameState.ai.HQ.pickMostNeededResources(gameState)[0];
|
||||
requiredTribute.wanted = Math.max(1000, gameState.getOwnUnits().length * requestType === "ally" ? 10 : 5);
|
||||
requiredTribute.wanted = Math.max(1000, gameState.getOwnUnits().length * (requestType === "ally" ? 10 : 5));
|
||||
this.receivedDiplomacyRequests.set(player, {
|
||||
"status": "waitingForTribute",
|
||||
"wanted": requiredTribute.wanted,
|
||||
|
||||
Reference in New Issue
Block a user