From f1f60752b5f713f0e5bdf98758c43e8123a09a03 Mon Sep 17 00:00:00 2001 From: Asriel Camora Date: Fri, 21 Jul 2023 15:52:25 +0400 Subject: [PATCH] Allow existing conditions to be ticked in SimulatorNoRandom --- Simulator/Simulator.cs | 4 ++-- Simulator/SimulatorNoRandom.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Simulator/Simulator.cs b/Simulator/Simulator.cs index 1986844..2d8beb0 100644 --- a/Simulator/Simulator.cs +++ b/Simulator/Simulator.cs @@ -124,7 +124,7 @@ public class Simulator _ => 0.00f }; - private Condition GetNextRandomCondition() + public virtual Condition GetNextRandomCondition() { var conditionChance = Input.Random.NextSingle(); @@ -135,7 +135,7 @@ public class Simulator return Condition.Normal; } - public virtual void StepCondition() + public void StepCondition() { Condition = Condition switch { diff --git a/Simulator/SimulatorNoRandom.cs b/Simulator/SimulatorNoRandom.cs index d41a158..1f4c827 100644 --- a/Simulator/SimulatorNoRandom.cs +++ b/Simulator/SimulatorNoRandom.cs @@ -7,5 +7,5 @@ public class SimulatorNoRandom : Simulator } public sealed override bool RollSuccessRaw(float successRate) => successRate == 1; - public sealed override void StepCondition() { } + public sealed override Condition GetNextRandomCondition() => Condition.Normal; }