feat: add wooden fish play template

This commit is contained in:
2026-05-21 23:34:07 +08:00
parent ef09a23c35
commit 5b0f9f3763
121 changed files with 11580 additions and 159 deletions

View File

@@ -105,6 +105,17 @@ pub fn default_creation_entry_type_snapshots(
45,
updated_at_micros,
),
build_default_creation_entry_type_snapshot(
"wooden-fish",
"敲木鱼",
"点击祈福轻玩法",
"可创建",
"/wooden-fish/default-hit-object.png",
true,
true,
47,
updated_at_micros,
),
build_default_creation_entry_type_snapshot(
"square-hole",
"方洞",

View File

@@ -251,6 +251,25 @@ mod tests {
assert_eq!(bark_battle.sort_order, 85);
}
#[test]
fn default_creation_entry_types_include_wooden_fish() {
let configs = default_creation_entry_type_snapshots(1);
let wooden_fish = configs
.iter()
.find(|item| item.id == "wooden-fish")
.expect("wooden-fish creation entry should be seeded");
assert_eq!(wooden_fish.title, "敲木鱼");
assert!(wooden_fish.visible);
assert!(wooden_fish.open);
assert_eq!(wooden_fish.badge, "可创建");
assert_eq!(wooden_fish.sort_order, 47);
assert_eq!(
wooden_fish.image_src,
"/wooden-fish/default-hit-object.png"
);
}
#[test]
fn normalized_clamps_music_volume_into_valid_range() {
let low = RuntimeSettings::normalized(-1.0, RuntimePlatformTheme::Light);