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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab4a5da5832d355891d8e1ca2164b023a5e64a51e192140287f6d3c807d8e652
|
|
| MD5 |
c871baddb8615608a4dd8e1181c1d2e5
|
|
| BLAKE2b-256 |
0ef613b13cdf0c6dd4f1a4ed35d35fec085c6d3f47e7567cd6d1d43af37ade2c
|
Provenance
The following attestation bundles were made for tfwr_expand-0.1.1.tar.gz:
Publisher:
publish-pypi.yml on Orange23333/tfwr-expand
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tfwr_expand-0.1.1.tar.gz -
Subject digest:
ab4a5da5832d355891d8e1ca2164b023a5e64a51e192140287f6d3c807d8e652 - Sigstore transparency entry: 775876926
- Sigstore integration time:
-
Permalink:
Orange23333/tfwr-expand@d26f02f6e137338429d5dc9cf9cb707e2bcc6651 -
Branch / Tag:
refs/tags/tfwr_expand-0.1.1 - Owner: https://github.com/Orange23333
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@d26f02f6e137338429d5dc9cf9cb707e2bcc6651 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c95b1dd3b1c1fcf70cb8bf7e2c7ae2f72be4226e56e86b875eefc0b43cccd84b
|
|
| MD5 |
754e8836081745baa8a333983a0c2681
|
|
| BLAKE2b-256 |
ea02a19f3aea2e73ee8c37913a40ef193939ef875d605423b4b01b79f1e605f3
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tfwr_expand-0.1.1-py3-none-any.whl -
Subject digest:
c95b1dd3b1c1fcf70cb8bf7e2c7ae2f72be4226e56e86b875eefc0b43cccd84b - Sigstore transparency entry: 775876931
- Sigstore integration time:
-
Permalink:
Orange23333/tfwr-expand@d26f02f6e137338429d5dc9cf9cb707e2bcc6651 -
Branch / Tag:
refs/tags/tfwr_expand-0.1.1 - Owner: https://github.com/Orange23333
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@d26f02f6e137338429d5dc9cf9cb707e2bcc6651 -
Trigger Event:
release
-
Statement type: