fix: polish bark battle creation flow
This commit is contained in:
@@ -72,7 +72,7 @@ impl BarkBattleRuleset {
|
||||
standard_duration_ms: 30_000,
|
||||
min_duration_ms: 28_000,
|
||||
max_duration_ms: 35_000,
|
||||
min_bark_gap_ms: 250,
|
||||
min_bark_gap_ms: 150,
|
||||
trigger_count_tolerance: 2,
|
||||
min_volume: 0.0,
|
||||
max_volume: 1.0,
|
||||
|
||||
@@ -174,6 +174,7 @@ mod tests {
|
||||
#[test]
|
||||
fn flags_trigger_count_above_physical_limit_with_tolerance() {
|
||||
let ruleset = BarkBattleRuleset::v1();
|
||||
assert_eq!(ruleset.min_bark_gap_ms, 150);
|
||||
let mut input = metrics(30_000);
|
||||
input.trigger_count = input.duration_ms / ruleset.min_bark_gap_ms
|
||||
+ u64::from(ruleset.trigger_count_tolerance)
|
||||
|
||||
Reference in New Issue
Block a user