Merge branch 'restart' of https://github.com/openfrontio/OpenFrontIO into restart

This commit is contained in:
Restart2008
2025-10-21 17:21:05 -07:00
2 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -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;
}
});
+9 -9
View File
@@ -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(