Feedback round: bots that keep working, Sky Mower, calmer HUD, faster menus, new map

- Robot docks and drone pads with no belt ship straight to Earth; robots widen
  their rings up to 4x once everything in reach is mown, travel 2.5x faster
  empty, hoppers 60/150 kg. Drone reach 70 m + 25 m per upgrade.
- New Sky Mower: a big mowing drone on a pad, 91 sectors, flies over the grass.
- Cut paint follows the blade as a strip, no disc ahead of the machine.
- Sector toasts aggregate, chimes and till sounds throttled, toasts moved and
  narrowed.
- Menus no longer rebuild on every money change (price tint follows the
  wallet), scroll position kept.
- Map drawn as one mesh, opens near the player, ME / + / - / GLOBE, scale bar.
- Key-art still (x_key) and -shotsize for the store stills; -demobots test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
NiemandKG
2026-11-09 15:38:37 +06:00
parent d1c3761e58
commit 27d075103b
44 changed files with 6801 additions and 5733 deletions

View File

@ -7,12 +7,14 @@ namespace GrassCutter
/// <summary>
/// A pad of fetching drones. Bundles of grass lying loose within <see cref="Range"/> of it (thrown down, dropped off the
/// end of a belt, flung by a twister) are flown in, one per drone per trip, and go into the pad's silo, which puts them
/// on the belts like any other silo. A trip is one synced value per drone (where to, when it left), and every peer flies
/// on the belts like any other silo, or with no belt out sends them straight to Earth: tie a bundle, drop it, the drones
/// do the walking. A trip is one synced value per drone (where to, when it left), and every peer flies
/// the drone along the same plan from it: up, across, down, grab, up, back, down onto the pad.
/// </summary>
public class DronePad : SiloPiece
{
public const float Range = 40f;
/// <summary>How far the drones go from a Mk I pad; every upgrade adds <see cref="RangePerTier"/>.</summary>
public const float Range = 70f, RangePerTier = 25f;
const float Room = 60f, Cruise = 7f, Climb = 3f, Speed = 6f, Hover = 1.35f, GrabTime = 0.8f, Carry = 1f, Look = 0.5f;
const int Most = 4;
/// <summary>A drone at rest on the pad.</summary>
@ -41,6 +43,8 @@ namespace GrassCutter
/// <summary>Two drones at Mk I, one more per upgrade, four at most.</summary>
int Count => Mathf.Min(Most, 2 + (Piece ? Piece.Tier.Value : 0));
float Fly => Speed * Mathf.Sqrt(Piece ? Piece.TierMul : 1f);
float Reach => Range + RangePerTier * (Piece ? Piece.Tier.Value : 0);
float _shipAt;
double Now => NetworkManager ? NetworkManager.ServerTime.Time : Time.timeAsDouble;
public override string Prompt
@ -49,7 +53,8 @@ namespace GrassCutter
{
int out_ = 0;
for (int i = 0; i < Count; i++) if (Trip(i).Value.w >= 0f) out_++;
return Loc.F("Drone Pad: {0} drones, {1} out · {2} of {3}", Count, out_, GameDefs.Kilos(Silo.Value), GameDefs.Kilos(Room));
return Loc.F("Drone Pad: {0} drones, {1} out · {2} of {3}", Count, out_, GameDefs.Kilos(Silo.Value), GameDefs.Kilos(Room))
+ " · " + (BeltNet.Belted(Piece) ? Loc.T("onto the belt") : Loc.F("straight to Earth, {0} m around", Mathf.RoundToInt(Reach)));
}
}
@ -159,8 +164,11 @@ namespace GrassCutter
protected override void Update()
{
if (Belted()) base.Update();
bool belted = Belted();
if (belted) base.Update();
if (!IsServer || !IsSpawned) return;
// no belt out: what the drones bring goes straight to Earth, so they never stand idle on a full silo
if (!belted) BeltNet.Ship(Silo, transform.position, ref _shipAt);
double now = Now;
bool look = Time.time >= _nextLook;
if (look) _nextLook = Time.time + Look;
@ -224,7 +232,7 @@ namespace GrassCutter
for (int k = 0; k < Most; k++) if (Trip(k).Value.w >= 0f) out_++;
if (Silo.Value + (out_ + 1) * GameDefs.BundleKg > Room) return;
Cargo best = null;
float bestD = Range * Range;
float bestD = Reach * Reach;
var here = transform.position;
foreach (var c in Cargo.All)
{