Allow existing conditions to be ticked in SimulatorNoRandom
This commit is contained in:
@@ -124,7 +124,7 @@ public class Simulator
|
|||||||
_ => 0.00f
|
_ => 0.00f
|
||||||
};
|
};
|
||||||
|
|
||||||
private Condition GetNextRandomCondition()
|
public virtual Condition GetNextRandomCondition()
|
||||||
{
|
{
|
||||||
var conditionChance = Input.Random.NextSingle();
|
var conditionChance = Input.Random.NextSingle();
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@ public class Simulator
|
|||||||
return Condition.Normal;
|
return Condition.Normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void StepCondition()
|
public void StepCondition()
|
||||||
{
|
{
|
||||||
Condition = Condition switch
|
Condition = Condition switch
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,5 +7,5 @@ public class SimulatorNoRandom : Simulator
|
|||||||
}
|
}
|
||||||
|
|
||||||
public sealed override bool RollSuccessRaw(float successRate) => successRate == 1;
|
public sealed override bool RollSuccessRaw(float successRate) => successRate == 1;
|
||||||
public sealed override void StepCondition() { }
|
public sealed override Condition GetNextRandomCondition() => Condition.Normal;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user