mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-08 10:29:00 +00:00
1 parent
159d3390b2
commit
767a676685
2 files changed
+4
-4
No files matched your search
@@ -236,7 +236,7 @@ export class Config
|
||||
// and inversely for behavior="defensive"
|
||||
this.personalityCut = { "weak": 0.3, "medium": 0.5, "strong": 0.7 };
|
||||
|
||||
if (gameState.playerData.teamsLocked)
|
||||
if (gameState.playerData.teamLocked)
|
||||
this.personality.cooperative = Math.min(1, this.personality.cooperative + 0.30);
|
||||
else if (gameState.getAlliedVictory())
|
||||
this.personality.cooperative = Math.min(1, this.personality.cooperative + 0.15);
|
||||
|
||||
@@ -293,7 +293,7 @@ export class DiplomacyManager
|
||||
*/
|
||||
lastManStandingCheck(gameState)
|
||||
{
|
||||
if (gameState.sharedScript.playersData[PlayerID].teamsLocked || gameState.isCeasefireActive() ||
|
||||
if (gameState.sharedScript.playersData[PlayerID].teamLocked || gameState.isCeasefireActive() ||
|
||||
gameState.getAlliedVictory() && gameState.hasAllies())
|
||||
return;
|
||||
|
||||
@@ -387,7 +387,7 @@ export class DiplomacyManager
|
||||
*/
|
||||
handleDiplomacyRequest(gameState, player, requestType)
|
||||
{
|
||||
if (gameState.sharedScript.playersData[PlayerID].teamsLocked)
|
||||
if (gameState.sharedScript.playersData[PlayerID].teamLocked)
|
||||
return;
|
||||
let response;
|
||||
let requiredTribute;
|
||||
@@ -551,7 +551,7 @@ export class DiplomacyManager
|
||||
|
||||
this.checkRequestedTributes(gameState);
|
||||
|
||||
if (gameState.sharedScript.playersData[PlayerID].teamsLocked || gameState.isCeasefireActive())
|
||||
if (gameState.sharedScript.playersData[PlayerID].teamLocked || gameState.isCeasefireActive())
|
||||
return;
|
||||
|
||||
// Be unlikely to send diplomacy requests to other players
|
||||
|
||||
Reference in new issue
Block a user