mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 21:04:14 +00:00
traitors have .8 defense debuff
This commit is contained in:
@@ -131,6 +131,8 @@ export interface Config {
|
||||
defensePostDefenseBonus(): number;
|
||||
falloutDefenseModifier(): number;
|
||||
difficultyModifier(difficulty: Difficulty): number;
|
||||
// 0-1
|
||||
traitorDefenseDebuff(): number;
|
||||
}
|
||||
|
||||
export interface Theme {
|
||||
|
||||
@@ -60,6 +60,10 @@ export class DefaultConfig implements Config {
|
||||
private _gameConfig: GameConfig,
|
||||
private _userSettings: UserSettings,
|
||||
) {}
|
||||
|
||||
traitorDefenseDebuff(): number {
|
||||
return 0.8;
|
||||
}
|
||||
spawnImmunityDuration(): Tick {
|
||||
return 5 * 10;
|
||||
}
|
||||
@@ -352,7 +356,8 @@ export class DefaultConfig implements Config {
|
||||
within(defender.troops() / attackTroops, 0.5, 2) *
|
||||
mag *
|
||||
0.8 *
|
||||
largeModifier,
|
||||
largeModifier *
|
||||
(defender.isTraitor() ? this.traitorDefenseDebuff() : 1),
|
||||
defenderTroopLoss: defender.troops() / defender.numTilesOwned(),
|
||||
tilesPerTickUsed:
|
||||
within(defender.troops() / (5 * attackTroops), 0.2, 1.5) *
|
||||
|
||||
Reference in New Issue
Block a user