Mushroom groves: unclaimable moss where giant mushrooms grow slowly and glow when ready to fell
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
368a338ccf
commit
f8eda88bb3
26 files changed
+321
-43
No files matched your search
@@ -1804,8 +1804,20 @@ pub fn hover_info(g: &Game, ent: Option<usize>, tile: Option<(i32, i32)>) -> Vec
|
||||
Kind::Mushroom | Kind::Tree => {
|
||||
let tree = t.kind == Kind::Tree;
|
||||
out.push((tr(if tree { "tile.tree" } else { "tile.mushroom" }), WOOD_C));
|
||||
let wood = if tree { crate::wood::WOOD_TREE } else { crate::wood::WOOD_MUSHROOM };
|
||||
out.push((trf("tile.plant_info", &[(wood as i32).to_string()]), DIM));
|
||||
if t.grown() {
|
||||
if !tree {
|
||||
out.push((tr("tile.mushroom_grown"), GREEN));
|
||||
}
|
||||
let wood = if tree { crate::wood::WOOD_TREE } else { crate::wood::WOOD_MUSHROOM };
|
||||
out.push((trf("tile.plant_info", &[(wood as i32).to_string()]), DIM));
|
||||
} else {
|
||||
// a young mushroom: not yet to be felled
|
||||
out.push((trf("tile.mushroom_growing", &[((t.growth() * 100.0) as i32).to_string()]), DIM));
|
||||
}
|
||||
}
|
||||
Kind::Grove => {
|
||||
out.push((tr("tile.grove"), GREEN));
|
||||
out.push((tr("tile.grove_info"), DIM));
|
||||
}
|
||||
Kind::Obsidian => {
|
||||
out.push((tr("tile.obsidian"), FRAME_HI));
|
||||
|
||||
Reference in new issue
Block a user