The Farmer Was Replaced

Timon Herzog · Idle

The Farmer Was Replaced patch notes · Jul 6, 2023

Experiment

Language Update

What's new in Language Update: 20 changes to The Farmer Was Replaced, released Jul 6, 2023.

Content · 10

  • Default arguments were added.

    default argument
  • Strings were added.

    string support
  • Functions now have to be unlocked before use.

    function unlock requirement
  • Sets were added.

    set support
  • get_active_power was removed.

    get_active_power removal
  • Sequence slicing was added.

    sequence slicing
  • Sequence unpacking was added.

    sequence unpacking
  • Functions now work like in Python, and code can be written outside functions in the global scope.

    function behaviour
  • Tuples were added.

    tuple support
  • Dictionaries were added.

    dictionary support

System · 4

  • get_cost now returns a dictionary.

    get_cost return type
  • Old save games are automatically converted to the new format, though code may need adapting.

    save conversion
  • Windows now correspond to files instead of functions, and every file is saved individually instead of as one file.

    save format
  • Corruption protection was added to the save system.

    save corruption protection

Fix · 5

  • A list index out of bounds bug was fixed.

    list index out of bounds crash
  • The for loop docs page no longer fails to open when first unlocked.

    for loop docs page not opening
  • Iterating Entities, Grounds, Items and Unlocks in a for loop was fixed.

    for loop iteration
  • Some list operations were not being affected by speed upgrades; this is fixed.

    list operation speed upgrade effect
  • The trees unlock description was fixed.

    trees unlock description

General · 1

  • Cost_Lists was renamed to Costs.; The documentation was adapted to the new changes.

    general