Remove redundant initial state in sims
This commit is contained in:
@@ -35,16 +35,6 @@ public class Simulator
|
||||
|
||||
public IEnumerable<ActionType> AvailableActions => ActionUtils.AvailableActions(this);
|
||||
|
||||
public Simulator(in SimulationState state)
|
||||
{
|
||||
State = state;
|
||||
}
|
||||
|
||||
public void SetState(in SimulationState state)
|
||||
{
|
||||
State = state;
|
||||
}
|
||||
|
||||
public (ActionResponse Response, SimulationState NewState) Execute(in SimulationState state, ActionType action)
|
||||
{
|
||||
State = state;
|
||||
|
||||
@@ -2,10 +2,6 @@ namespace Craftimizer.Simulator;
|
||||
|
||||
public class SimulatorNoRandom : Simulator
|
||||
{
|
||||
public SimulatorNoRandom(in SimulationState state) : base(state)
|
||||
{
|
||||
}
|
||||
|
||||
public sealed override bool RollSuccessRaw(float successRate) => successRate == 1;
|
||||
public sealed override Condition GetNextRandomCondition() => Condition.Normal;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user