Round 6 fixes: held tools, headlamp glare, ladder openings, level horizon, roof hulls, rain hits, idle motion, belt packs, meadow variety

- Held tools sit lower and further right; the hammer faces forward and strikes about the camera's right
- Headlamp leaves held items, treats and vending machines alone (rendering layer NoLamp); other lights keep lighting them
- Hay grounded on the floor in world space (it floated)
- Deck fence opens at each ladder, rail colliders split around it; ladders moved to 2 m off the edge middle, clear of the intakes; climbing goes over a rail only if one is in the way
- Crew stand to the soil's up (Planet.Level): flat round the base, the ball's up past it, so the horizon stays level on a small planet
- Convex roof hulls for the crew cabin, garage, pitched roof and windmill tower; cabin box lowered to the eaves
- Rain and acid rain hits differ by surface: soil, grass, wood, metal
- Idle motion: dishes pan, sways sway, sensors turn, eyes blink, windmill turns in the breeze, reels and parked rotors tick over
- Belt: take tools off at the supply wall; hold E at a vending machine for a pack of 3 on the belt, LMB has one
- New meadow pieces: boulders, slab stones, crystals, mushrooms, stump, bulb plants
- -demofix checks for all of the above; loc rows in all 11 tables

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
NiemandKG
2026-12-01 22:52:05 +06:00
parent fd20af06ae
commit 36e4bb2a10
88 changed files with 7588 additions and 4926 deletions

View File

@ -165,6 +165,14 @@ namespace GrassCutter
if (animate) UIK.SlideIn(_detail, new Vector2(40, 0), 0.05f, 0.3f);
}
/// <summary>Hang a tool back on the wall: the slot is free for another tool or a pack of treats.</summary>
void OffBelt(PlayerTools tools, ToolId t)
{
var b = UIK.Btn(Loc.T("TAKE OFF BELT"), () => { tools.Unequip(t); Sfx.Play("plastic_grab", 0.5f, 0.8f); Rebuild(false); }, "btn btn-small", _detail);
b.style.alignSelf = Align.Stretch;
b.style.marginTop = 8;
}
/// <summary>The button of the selected item: buy it, put it on the belt, or take it in hand.</summary>
void Action()
{
@ -193,11 +201,16 @@ namespace GrassCutter
double price = ts.ToolPrice(GameDefs.Tool(t));
Buy(price <= 0d ? Loc.T("TAKE IT") : Loc.F("BUY {0}", UIK.Money(price)), price, () => ts.BuyToolRpc((byte)t));
}
else if (tools.Current == t) Done(Loc.T("IN YOUR HANDS"));
else if (tools.Current == t)
{
Done(Loc.T("IN YOUR HANDS"));
OffBelt(tools, t);
}
else
{
var b = UIK.Btn(tools.Belt.Contains(t) ? Loc.T("TAKE IN HAND") : Loc.T("PUT ON BELT"), () => { tools.Equip(t); Sfx.Play("plastic_grab", 0.6f); Rebuild(false); }, "btn btn-green", _detail);
b.style.alignSelf = Align.Stretch;
if (tools.Belt.Contains(t)) OffBelt(tools, t);
}
}
}