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:
@ -18,12 +18,29 @@ namespace GrassCutter
|
||||
public static string Tag(Difficulty d) => Loc.T(d == Difficulty.Mommy ? Loc.N("EASY") : d == Difficulty.HoldMyBeer ? Loc.N("NORMAL") : Loc.N("EXTRA HARD"));
|
||||
|
||||
public static string Blurb(Difficulty d) => Loc.T(
|
||||
d == Difficulty.Mommy ? Loc.N("A planet a third the size, with sectors to match. Earth can wait a little.")
|
||||
: d == Difficulty.HoldMyBeer ? Loc.N("Half the planet, half-size sectors. Still a lot of lawn.")
|
||||
: Loc.N("The whole of Herbaria-7, full-size sectors, every blade of it."));
|
||||
d == Difficulty.Mommy ? Loc.N("A sixth of the big planet, sectors to match. Earth can wait a little.")
|
||||
: d == Difficulty.HoldMyBeer ? Loc.N("A third of the big planet, smaller sectors. Still a lot of lawn.")
|
||||
: Loc.N("The big planet: the whole of Herbaria-7, every blade of it."));
|
||||
|
||||
/// <summary>
|
||||
/// Which set of sizes a save is on. 0: the first one (radius 1, 1/2, 1/3 of the whole planet), every save from
|
||||
/// before the planets shrank; they keep their ball, the pieces on it stand where they stood. 1: by area, the hard
|
||||
/// one half the whole planet, normal a third of that, easy a sixth.
|
||||
/// </summary>
|
||||
public const int NewGen = 1;
|
||||
|
||||
/// <summary>The planet's radius against the whole one.</summary>
|
||||
public static float Scale(Difficulty d) => d == Difficulty.Mommy ? 1f / 3f : d == Difficulty.HoldMyBeer ? 0.5f : 1f;
|
||||
public static float Scale(Difficulty d, int gen) => gen >= 1
|
||||
? (d == Difficulty.Mommy ? 0.288675f : d == Difficulty.HoldMyBeer ? 0.408248f : 0.707107f)
|
||||
: (d == Difficulty.Mommy ? 1f / 3f : d == Difficulty.HoldMyBeer ? 0.5f : 1f);
|
||||
|
||||
/// <summary>The size set the world is built on right now.</summary>
|
||||
public static int Gen { get; private set; }
|
||||
|
||||
/// <summary>Difficulty and size set in one byte, for the wire.</summary>
|
||||
public static byte Wire => (byte)((int)Current | (Gen << 4));
|
||||
|
||||
public static void ApplyWire(byte b) => Apply((Difficulty)(b & 15), b >> 4);
|
||||
|
||||
/// <summary>What the next new save starts on: set by the menu (and `-difficulty 0..2` for the dev bots).</summary>
|
||||
public static Difficulty Chosen = Difficulty.Hazard;
|
||||
@ -32,12 +49,14 @@ namespace GrassCutter
|
||||
public static Difficulty Current { get; private set; } = Difficulty.Hazard;
|
||||
|
||||
/// <summary>Builds the world on the ball for this difficulty, if it isn't on it already.</summary>
|
||||
public static void Apply(Difficulty d)
|
||||
public static void Apply(Difficulty d, int gen)
|
||||
{
|
||||
if (d != Difficulty.Mommy && d != Difficulty.HoldMyBeer) d = Difficulty.Hazard;
|
||||
if (d == Current) return;
|
||||
gen = gen >= 1 ? 1 : 0;
|
||||
if (d == Current && gen == Gen) return;
|
||||
Current = d;
|
||||
Planet.Rescale(GameDefs.PlanetRadius * Scale(d));
|
||||
Gen = gen;
|
||||
Planet.Rescale(GameDefs.PlanetRadius * Scale(d, gen));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@ namespace GrassCutter
|
||||
public const int Res = 128;
|
||||
/// <summary>The last scraps of a sector this nearly done go with the stroke that got it there.</summary>
|
||||
// the last few scraps (behind rocks, along the seams) go by themselves: no hunting for the final percent
|
||||
const float DoneAt = 0.97f;
|
||||
const float DoneAt = 0.93f;
|
||||
const int MaxStampsPerCut = 28, MaxOpen = 300;
|
||||
/// <summary>Less than this left in a cell is not worth a row of its own.</summary>
|
||||
const ushort Scrap = 120;
|
||||
|
||||
Reference in New Issue
Block a user