mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 14:43:52 +00:00
@@ -588,9 +588,6 @@ m.NavalManager.prototype.moveApart = function(gameState)
|
||||
continue;
|
||||
ship.setMetadata(PlayerID, "previousIdlePosition", shipPosition);
|
||||
// Check if there are some treasure around
|
||||
let rates = ship.resourceGatherRates();
|
||||
if (!rates || !rates.treasure || rates.treasure <= 0)
|
||||
continue;
|
||||
if (m.gatherTreasure(gameState, ship, true))
|
||||
continue;
|
||||
// Do not stay idle near a dock to not disturb other ships
|
||||
@@ -634,9 +631,6 @@ m.NavalManager.prototype.moveApart = function(gameState)
|
||||
continue;
|
||||
ship.setMetadata(PlayerID, "previousIdlePosition", shipPosition);
|
||||
// Check if there are some treasure around
|
||||
let rates = ship.resourceGatherRates();
|
||||
if (!rates || !rates.treasure || rates.treasure <= 0)
|
||||
continue;
|
||||
if (m.gatherTreasure(gameState, ship, true))
|
||||
continue;
|
||||
// Do not stay idle near a dock to not disturb other ships
|
||||
|
||||
Reference in New Issue
Block a user