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:
@ -415,7 +415,7 @@ namespace GrassCutter
|
||||
var belt = _local.Tools.Belt;
|
||||
bool rebuilt = false;
|
||||
int slots = _local.BeltSlots.Value;
|
||||
foreach (var t in belt) key.Append((int)t).Append(',');
|
||||
foreach (var t in belt) key.Append((int)t).Append(GameDefs.IsPack(t) ? "x" + _local.Tools.PackLeft(GameDefs.PackTreat(t)) : "").Append(',');
|
||||
key.Append('/').Append(slots);
|
||||
if (key.ToString() != _beltKey)
|
||||
{
|
||||
@ -428,9 +428,19 @@ namespace GrassCutter
|
||||
var slot = UIK.El("slot", _hotbar);
|
||||
UIK.Text((n + 1).ToString(), "slot-key t-outline", slot);
|
||||
if (n >= belt.Count) { slot.AddToClassList("slot-empty"); continue; }
|
||||
var d = GameDefs.Tool(belt[n]);
|
||||
UIK.Img(AssetBank.I.Tex(d.icon), "slot-icon", slot);
|
||||
slot.tooltip = d.name;
|
||||
if (GameDefs.IsPack(belt[n]))
|
||||
{
|
||||
var k = GameDefs.PackTreat(belt[n]);
|
||||
UIK.Img(AssetBank.I.Tex(Treats.Icon(k)), "slot-icon", slot);
|
||||
UIK.Text("×" + _local.Tools.PackLeft(k), "slot-count t-outline", slot);
|
||||
slot.tooltip = Treats.Name(k);
|
||||
}
|
||||
else
|
||||
{
|
||||
var d = GameDefs.Tool(belt[n]);
|
||||
UIK.Img(AssetBank.I.Tex(d.icon), "slot-icon", slot);
|
||||
slot.tooltip = d.name;
|
||||
}
|
||||
_slots[belt[n]] = slot;
|
||||
if (animate) UIK.PopIn(slot);
|
||||
}
|
||||
@ -555,7 +565,7 @@ namespace GrassCutter
|
||||
float kg = v ? v.Load : tools.Bin(tools.Current);
|
||||
float cap = v ? v.Capacity : tools.CurrentCap;
|
||||
bool bin = cap > 0f;
|
||||
_toolName.text = v ? v.Def.name : GameDefs.Tool(tools.Current).name;
|
||||
_toolName.text = v ? v.Def.name : GameDefs.IsPack(tools.Current) ? Treats.Name(GameDefs.PackTreat(tools.Current)) + " ×" + tools.PackLeft(GameDefs.PackTreat(tools.Current)) : GameDefs.Tool(tools.Current).name;
|
||||
_gauge.style.display = bin ? DisplayStyle.Flex : DisplayStyle.None;
|
||||
_toolKg.style.display = bin ? DisplayStyle.Flex : DisplayStyle.None;
|
||||
if (!bin) { _toolRate.text = ""; return; }
|
||||
@ -847,7 +857,7 @@ namespace GrassCutter
|
||||
string hint = null, voice = null;
|
||||
var tools = _local.Tools;
|
||||
float cap = tools.CurrentCap;
|
||||
if (tools.Belt.Count == 0)
|
||||
if (!tools.Belt.Exists(GameDefs.IsTool))
|
||||
{
|
||||
hint = Loc.F("Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors ({0}).", Binds.Cap(Act.Interact));
|
||||
voice = "asst_tools";
|
||||
|
||||
Reference in New Issue
Block a user