show decimal place for patches

This commit is contained in:
insects 2025-02-11 15:49:29 +01:00
parent a99ee46d26
commit 4696eeb509
2 changed files with 2 additions and 1 deletions

View file

@ -10,6 +10,7 @@ pub fn changelog_page() -> Markup {
h2 { "1.4.0" }
ul {
li { "Implemented support for Fisher's Intuition" }
li { "Fixed .0 patches showing without the decimal place (e.g. 6.0 would display as 6)" }
}
}

View file

@ -119,7 +119,7 @@ pub fn fish_display(fish: &CombinedFish, data: &ViewData) -> Markup {
div.name {
h3 {
(fish.meta.name_en)
span class=(format!("patch patch-{}", fish.entry.patch as u32)) { (fish.entry.patch) }
span class=(format!("patch patch-{}", fish.entry.patch as u32)) { (format!("{:.1}", fish.entry.patch)) }
.subtitle {
span { "Rarity: " (format!("{:.2}", fish.rarity * 100.)) "%" }