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:
@ -53,7 +53,9 @@ namespace GrassCutter
|
||||
BuildPiece _bp;
|
||||
/// <summary>The dock's upgrade level makes the robot faster and its hopper bigger.</summary>
|
||||
protected float Boost => (_bp ? _bp : (_bp = GetComponent<BuildPiece>())) ? _bp.TierMul : 1f;
|
||||
public float HopperCap => Def.hopper * Boost;
|
||||
public float HopperCap => Def.hopper * Boost * (TeamState.Instance ? TeamState.Instance.BotHopperMul : 1f);
|
||||
/// <summary>The crew's automation perks.</summary>
|
||||
protected float PerkSpeed => TeamState.Instance ? TeamState.Instance.BotSpeedMul : 1f;
|
||||
public RobotMood Doing => (RobotMood)Mood.Value;
|
||||
|
||||
protected abstract Transform Body { get; }
|
||||
@ -312,7 +314,7 @@ namespace GrassCutter
|
||||
// not RotateTowards: it calls anything under a tenth of a degree "there already", and that is 4 m on this ball
|
||||
var gap = goal - Dir;
|
||||
// on the way somewhere (to a sector, home to unload) it goes faster than it mows
|
||||
float step = Def.speed * Boost * (Homing || _travel ? TravelMul : 1f) * dt / Planet.Radius;
|
||||
float step = Def.speed * Boost * PerkSpeed * (Homing || _travel ? TravelMul : 1f) * dt / Planet.Radius;
|
||||
if (gap.magnitude > step) Dir = (Dir + gap.normalized * step).normalized;
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user