public override void Give(Simulation simulation) { if (!simulation.Flags.TryGetValue(ID, out short a)) { a = 0; } simulation.Flags[ID] = SimulationTool.Modify(a, Value, Modification); }
public override void Give(Simulation simulation) { simulation.Flags[ID] = SimulationTool.Modify(simulation.Flags[ID], (short)Random.NextInt32(Min_Value, Max_Value + 1), Modification); }