test(compare): trace deterministic monthly seed progression
This commit is contained in:
@@ -112,10 +112,11 @@ class SightseeingMessage{
|
||||
}
|
||||
}
|
||||
|
||||
public function pickAction():array{
|
||||
if (static::$comparisonRng !== null) {
|
||||
[$type, $texts] = static::$comparisonRng->choiceUsingWeightPair(static::$messages ?? []);
|
||||
$text = static::$comparisonRng->choice($texts);
|
||||
public function pickAction(?\sammo\RandUtil $rng = null):array{
|
||||
$actionRng = $rng ?? static::$comparisonRng;
|
||||
if ($actionRng !== null) {
|
||||
[$type, $texts] = $actionRng->choiceUsingWeightPair(static::$messages ?? []);
|
||||
$text = $actionRng->choice($texts);
|
||||
} else {
|
||||
[$type, $texts] = Util::choiceRandomUsingWeightPair(static::$messages??[]);
|
||||
$text = Util::choiceRandom($texts);
|
||||
|
||||
Reference in New Issue
Block a user