Skip to content

Commit e9e2f06

Browse files
FloPinguinevanpelle
authored andcommitted
Humans are severely skill issued ⚠️ Change HvN difficulty to Medium (#2971)
## Description: For v29 HvN winrate is between 10 and 15%, but should be around 50%. 1. Change HvN difficulty to Medium 2. Little balance change in `NationAllianceBehavior` ## Please complete the following: - [X] I have added screenshots for all UI updates - [X] I process any text displayed to the user through translateText() and I've added it to the en.json file - [X] I have added relevant tests to the test directory - [X] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: FloPinguin
1 parent 4d668e2 commit e9e2f06

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/core/execution/nation/NationAllianceBehavior.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,13 @@ export class NationAllianceBehavior {
240240
const { difficulty } = this.game.config().gameConfig();
241241
switch (difficulty) {
242242
case Difficulty.Easy:
243-
return false; // 0% chance to reject on easy
243+
return this.random.nextInt(0, 100) < 25; // 25% chance to reject on easy
244244
case Difficulty.Medium:
245-
return this.random.nextInt(0, 100) < 20; // 20% chance to reject on medium
245+
return this.random.nextInt(0, 100) < 50; // 50% chance to reject on medium
246246
case Difficulty.Hard:
247-
return this.random.nextInt(0, 100) < 40; // 40% chance to reject on hard
247+
return this.random.nextInt(0, 100) < 75; // 75% chance to reject on hard
248248
case Difficulty.Impossible:
249-
return this.random.nextInt(0, 100) < 60; // 60% chance to reject on impossible
249+
return true; // 100% chance to reject on impossible
250250
default:
251251
assertNever(difficulty);
252252
}

src/server/MapPlaylist.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export class MapPlaylist {
129129
publicGameModifiers: { isCompact, isRandomSpawn, startingGold },
130130
startingGold,
131131
difficulty:
132-
playerTeams === HumansVsNations ? Difficulty.Hard : Difficulty.Easy,
132+
playerTeams === HumansVsNations ? Difficulty.Medium : Difficulty.Easy,
133133
infiniteGold: false,
134134
infiniteTroops: false,
135135
maxTimerValue: undefined,

0 commit comments

Comments
 (0)