Smaller planets, 93% sectors, dearer late game, automation perks, autopilot, grass train

Not yet tried in the game: Unity could not get a licence (Unity Hub isn't
running), so this was only type-checked with Roslyn.

- Planets by area: the hard one half the old whole planet, normal a third of
  that, easy a sixth. Saves keep the size set they were made on (sizeGen 0).
- A sector closes at 93% mown.
- Mid and late prices go up (perks, machines, vehicles, tunes); the early
  game stays as it was.
- AUTOMATION perk tree: Long Leash (robot reach), Overdrive Motors, Bigger
  Hoppers, Long-Range Drones and Hive Mind.
- Autopilot, a garage tune for mowers: C hands the machine over. It mows the
  fields around in strokes, unloads at the nearest pad or the base yard and
  comes back. Getting in takes it back; it carries on after a load.
- Grass Train: lays its own track to a station next door, mowing under it,
  then runs back and forth cutting wider each run. Models in gc_train.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
NiemandKG
2026-11-10 11:39:02 +06:00
parent 5b14fd6635
commit df55b5e417
37 changed files with 1690 additions and 328 deletions

View File

@ -298,6 +298,19 @@ namespace GrassCutter.EditorTools
if (d.id == PieceId.RobotII) bot.localScale *= GameDefs.Robot(d.id).width / GameDefs.Robot(PieceId.RobotI).width;
go.AddComponent<RobotDock>().bot = bot;
break;
case PieceId.Train:
{
// the platform is solid; the locomotive and its wagons ride the track the train lays, so they carry no colliders
Solid(go.transform, model);
var train = go.AddComponent<Train>();
train.loco = Child(go.transform, "SM_TrainLoco", Vector3.zero, Quaternion.identity, PrimitiveType.Cube, new Vector3(2.2f, 2.4f, 4.6f), new Vector3(0f, 1.2f, 0f));
train.wagons = new Transform[3];
for (int i = 0; i < train.wagons.Length; i++)
train.wagons[i] = Child(go.transform, "SM_TrainWagon", Vector3.zero, Quaternion.identity, PrimitiveType.Cube, new Vector3(2.1f, 1.6f, 4.4f), new Vector3(0f, 0.9f, 0f));
foreach (var t in new[] { train.loco }.Concat(train.wagons))
foreach (var c in t.GetComponentsInChildren<Collider>()) UnityEngine.Object.DestroyImmediate(c);
break;
}
case PieceId.SkyMower:
{
// the drone pad, and one drone two and a half times the size of the fetching ones