mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-27 05:32:43 +00:00
Merge branch 'restart' of https://github.com/openfrontio/OpenFrontIO into restart
This commit is contained in:
+1
-1
@@ -619,7 +619,7 @@ class Client {
|
||||
};
|
||||
if (modal?.close) {
|
||||
modal.close();
|
||||
} else if ("isModalOpen" in modal) {
|
||||
} else if (modal && "isModalOpen" in modal) {
|
||||
modal.isModalOpen = false;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -626,18 +626,18 @@ export class DefaultConfig implements Config {
|
||||
largeAttackerSpeedThresholdDebuff(attacker: Player, totalLandTiles: number): number {
|
||||
const territoryPercentage = (attacker.numTilesOwned() / totalLandTiles) * 100;
|
||||
|
||||
if (territoryPercentage < 10) {
|
||||
if (territoryPercentage < 15) {
|
||||
return 1.0;
|
||||
} else if (territoryPercentage < 25) {
|
||||
return 0.75;
|
||||
} else if (territoryPercentage < 40) {
|
||||
} else if (territoryPercentage < 30) {
|
||||
return 0.90;
|
||||
} else if (territoryPercentage < 45) {
|
||||
return 0.70;
|
||||
} else if (territoryPercentage < 70) {
|
||||
return 0.45;
|
||||
} else if (territoryPercentage < 60) {
|
||||
return 0.20;
|
||||
} else if (territoryPercentage < 80) {
|
||||
return 0.08;
|
||||
} else if (territoryPercentage < 95) {
|
||||
return 0.25;
|
||||
} else {
|
||||
return 0.03;
|
||||
return 0.10;
|
||||
}
|
||||
}
|
||||
attackLogic(
|
||||
|
||||
Reference in New Issue
Block a user