refactor: rename RNG method from nextFloat to nextFloat1 for consistency across the codebase
This commit is contained in:
@@ -175,7 +175,7 @@ describe('General Commands New Scenario', () => {
|
||||
nextBool: () => true,
|
||||
nextRange: (_min: number, max: number) => max,
|
||||
nextRangeInt: (_min: number, max: number) => max,
|
||||
nextFloat: () => 0.9, // Ensure success
|
||||
nextFloat1: () => 0.9, // Ensure success
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -121,7 +121,7 @@ class ReservedTurnRunner extends TestGameRunner {
|
||||
|
||||
// Simple RNG mock
|
||||
const rng: RandomGenerator = {
|
||||
nextFloat: () => 0.5,
|
||||
nextFloat1: () => 0.5,
|
||||
nextBool: () => true,
|
||||
nextInt: (min: number, _max: number) => min,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user