From e74ff7cc5064707c3f943d532e258c26994ff17c Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Wed, 25 Dec 2024 11:18:29 +0100 Subject: [PATCH] Don't scale randomness of level 0 by difficulty --- P3D/Battle/BattleSystemV2/TrainerAI.vb | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/P3D/Battle/BattleSystemV2/TrainerAI.vb b/P3D/Battle/BattleSystemV2/TrainerAI.vb index bd60678ff..30baf44a9 100644 --- a/P3D/Battle/BattleSystemV2/TrainerAI.vb +++ b/P3D/Battle/BattleSystemV2/TrainerAI.vb @@ -143,16 +143,9 @@ Namespace BattleSystem Ready = True End If End While - If Core.Player.DifficultyMode = 0 Then - 'Chance of 35% that the trainer is using a random move: - If Core.Random.Next(0, 100) < 35 Then - Return ProduceOppStep(m, OppAttackChoice) - End If - ElseIf Core.Player.DifficultyMode = 1 Then - 'Chance of 18% that the trainer is using a random move: - If Core.Random.Next(0, 100) < 18 Then - Return ProduceOppStep(m, OppAttackChoice) - End If + 'Chance of 35% that the trainer is using a random move: + If Core.Random.Next(0, 100) < 35 Then + Return ProduceOppStep(m, OppAttackChoice) End If End If