The Farmer Was Replaced

Timon Herzog · Idle

The Farmer Was Replaced patch notes · Dec 12, 2024

Experiment

Simulation Update

What's new in Simulation Update: 50 changes to The Farmer Was Replaced, released Dec 12, 2024.

Balance · 13

  • Indexing to write to a dictionary or list is no longer free.

    indexing
  • Polyculture now starts with a 5x multiplier and can be upgraded up to a 15x multiplier.

    multiplier range
  • Fertilizer now converts 50% of a fertilized plant's yield into weird substance.

    yield conversion
  • Water now affects all ground types.

    ground type effect
  • Sunflower yield is now 1 power per sunflower, with a constant yield multiplier if there are at least 10 sunflowers and the largest one is harvested.

    yield
  • Harvesting 'n' cacti with a single call yields 'n * floor(sqrt(n))' cacti.

    harvest yield
  • Harvesting cacti before they are fully grown now yields nothing.

    early harvest
  • Reading and writing variables is now completely free, which is necessary for free function calls.

    variable access
  • Loops now cost only one tick per execution, rather than per iteration.

    loop
  • The operation cost model has been updated, with function calls now being free.

    operation cost
  • Pumpkin yield now scales cubically up to 5x5 and quadratically thereafter.

    yield scaling
  • The time taken to access a dictionary or set now depends on the size of the key.

    dictionary access time
  • Fertilizer no longer causes the ground to dry out.

    ground drying effect

Content · 8

  • The size of mazes is now dependent on the amount of weird substance used, and they no longer need to fill the entire grid.

    size dependency
  • Mazes are no longer spawned with fertilizer; instead, weird substance must be used.

    spawning mechanic
  • Polyculture is now active before it is unlocked.

    activation
  • Polyculture is now unlocked after the maze.

    unlock order
  • Dinosaurs have been completely reworked.

    challenge rework
  • Harvesting a cactus now propagates the harvest to adjacent cacti if they are all of equal or greater size.

    harvesting mechanic
  • The unlock tree has been restructured, allowing Dinosaurs, Cactus, and Mazes to be completed in any order.

    unlock tree structure
  • Harvesting a smaller sunflower no longer destroys the entire field.

    harvesting mechanic

Economy · 3

  • Players no longer need to trade for seeds before planting; the `plant()` command directly removes the cost.

    planting cost
  • The multi trade unlock has been removed.

    multi trade unlock
  • Fertilizer and Water are no longer traded; players now automatically receive a fixed amount over time based on upgrade levels.

    acquisition method

System · 16

  • The game's farm simulation system has been completely reworked.

    simulation system
  • The `trade()` function is no longer used for any purpose.

    trade function usage
  • There are now multiple categories for leaderboards.

    leaderboard category
  • The `leaderboard_run()` function can now accept a starting speed factor, which can be up to 256.; The `leaderboard_run()` function now also resets the water level.

    leaderboard_run function
  • If the game cannot keep up with the program's intended speed, it will now slow down the simulation time instead of freezing.

    game speed
  • A `simulate()` function has been added to allow for faster code testing.

    new function
  • The `__builtins__.py` file has been updated and will no longer regenerate unless deleted.

    builtins.py file
  • Starting a leaderboard run now initiates a simulation for a specified file.

    leaderboard run start
  • The function `get_op_count()` has been renamed to `get_tick_count()`.; The function `set_farm_size()` has been renamed to `set_world_size()` for consistency with `get_world_size()`.

    function name
  • The `get_cost()` function for unlocks now accepts an optional second argument for the upgrade level and returns `None` for already unlocked items.

    get_cost function
  • The `trade()` function has been removed from the game.

    function removal
  • The `unlock()` function now allows unlocking an item even if its parent unlock is not yet unlocked, removing dependency issues for leaderboard unlock orders.

    unlock function
  • The speed factor now only affects the simulation speed and not the rest of the game.

    speed factor
  • The `get_companion()` function now returns a tuple of the form (entity, (x, y)) instead of a list.

    function return value
  • Leaderboard runs no longer permit precomputing values before the timer begins.; Leaderboard runs are now repeated and averaged until a total of 2 hours of virtual time has elapsed.

    leaderboard run
  • The `timed_reset()` function has been replaced by `leaderboard_run()`.

    function replacement

UI · 1

  • Setting an upgrade level higher than the maximum now disables stats and shows a red warning in the unlock menu.

    upgrade level handling

Fix · 8

  • Loading files with CRLF line endings no longer breaks the editor.

    editor loading
  • Pumpkins were sometimes not merging correctly, and this has been fixed.

    merging behavior
  • Copying dictionaries with `dict()` has been fixed.

    dictionary copying
  • Error messages when checking equality of a function are now disabled by the corresponding option.

    equality check error message
  • Broken links have been fixed.

    broken link
  • Empty return statements have been fixed to return `None`.

    empty return statement
  • All sorts of time inconsistency bugs have been fixed.

    time inconsistency bug
  • Problems with stat calculations have been fixed.

    stat calculation

General · 1

  • Players can switch back to the old version of the game in Steam by navigating to 'The Farmer Was Replaced -> Properties -> Betas -> Jul 2024'.; `Items.Bones` has been renamed to `Items.Bone` to make all item names singular.; `Entities.Carrots` has been renamed to `Entities.Carrot` to make all entity names singular.; `Grounds.Turf` has been renamed to `Grounds.Grassland` for better clarity.; `Items.Water_Tank` has been renamed to `Items.Water` as the tank refill feature was removed.; `Unlocks.Benchmark` has been replaced with `Unlocks.Timing`.

    general