Skip to main content

A library for The Farmer Was Replaced.

Project description

Expand Library of The Farmer Was Relpaced

Just copy all the file into your save folder to use it. Also you can install this libray by excuting pip install TFWR-expand.

CAUTION: Remember to backup a __builtin__.py file in your save folder before using this library. This library will overwrite your __builtin__.py file. Or, you can use this libray at other folder or do not copy __builtin__.py file into your save folder.

Enjoy it!

Document

Basically, __builtin__.py, __init__.py and _tfwr_official_provided.__builtins__.py provide the Python language features to you. They are Python scripts which can't be imported in the game.

algorithms

import algorithms.

qsort(arr)

Calling algorithms.qsort(arr) with any list will sort it.

For example:

from algorithms import qsort

arr = [3, -1, 11, 0, 7]

qsort(arr)

print(arr)  # [-1, 0, 3, 7, 11]

tools

import tools.

has_item(item)

Calling tools.has_item(item) for checking whether player has Items. Returns True if the player has it, otherwise False.

cost_enough(entity, level=None, scale=1.0)

Calling tools.cost_enough(thing, level=None, scale=1.0) for checking whether player has enough item(s) to buy or plant the thing. Returns True if the player has enough item(s), otherwise False.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tfwr_expand-0.1.1.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tfwr_expand-0.1.1-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file tfwr_expand-0.1.1.tar.gz.

File metadata

  • Download URL: tfwr_expand-0.1.1.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tfwr_expand-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ab4a5da5832d355891d8e1ca2164b023a5e64a51e192140287f6d3c807d8e652
MD5 c871baddb8615608a4dd8e1181c1d2e5
BLAKE2b-256 0ef613b13cdf0c6dd4f1a4ed35d35fec085c6d3f47e7567cd6d1d43af37ade2c

See more details on using hashes here.

Provenance

The following attestation bundles were made for tfwr_expand-0.1.1.tar.gz:

Publisher: publish-pypi.yml on Orange23333/tfwr-expand

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tfwr_expand-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tfwr_expand-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tfwr_expand-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c95b1dd3b1c1fcf70cb8bf7e2c7ae2f72be4226e56e86b875eefc0b43cccd84b
MD5 754e8836081745baa8a333983a0c2681
BLAKE2b-256 ea02a19f3aea2e73ee8c37913a40ef193939ef875d605423b4b01b79f1e605f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for tfwr_expand-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on Orange23333/tfwr-expand

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page