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

@ -27,7 +27,7 @@ namespace GrassCutter
UIK.Btn("X", close, "btn btn-red btn-small", header);
_body = UIK.El(null, Card);
Refresh();
// the numbers follow the wallet and the piece while the card is up
// the card follows the piece while it is up; the wallet only recolours the price
int was = Stamp();
Card.schedule.Execute(() =>
{
@ -35,9 +35,10 @@ namespace GrassCutter
int now = Stamp();
if (now != was) { was = now; Refresh(); }
}).Every(200);
UIK.FollowWallet(Card);
}
int Stamp() => !_p ? 0 : _p.Setting * 31 + (TeamState.Instance ? (int)TeamState.Instance.Money.Value : 0);
int Stamp() => !_p ? 0 : _p.Setting;
void Refresh()
{
@ -56,17 +57,16 @@ namespace GrassCutter
if (tier < GameDefs.MaxTier)
{
double price = GameDefs.UpgradePrice(_p, tier);
bool can = ts.Money.Value >= price;
var up = UIK.El("tune-row", _body);
var upNames = UIK.El("tune-names", up);
UIK.Text(Loc.F("Upgrade to {0}", GameDefs.TierName(tier + 1)), "t-small t-dark", upNames, false);
UIK.Text(Loc.F("{0}.", Cap(GameDefs.TierEffect(kind, tier + 1))), "tune-effect", upNames, false);
UIK.Btn(UIK.Money(price), () =>
UIK.Costs(UIK.Btn(UIK.Money(price), () =>
{
if (!can) { Sfx.Play("error", 0.7f); return; }
if (!UIK.CanPay(price)) { Sfx.Play("error", 0.7f); return; }
_p.UpgradeRpc();
Sfx.Play("cash_register", 0.9f);
}, (can ? "btn btn-green" : "btn btn-grey") + " btn-small", up);
}, "btn btn-small", up), price);
}
else UIK.Text(Loc.T("Fully upgraded."), "tune-effect", _body, false);
}