Nate Smith
49ae1125d3
Merge pull request #51 from marado/corrupt
...
Check if the save file isn't corrupted
2024-04-04 15:29:38 -04:00
Nate Smith
df01d7397c
Merge pull request #54 from noelleleigh/growth-rate-rounding
...
Round growth rate to single decimal
2024-04-04 15:26:07 -04:00
Nate Smith
ccc08316fe
Merge pull request #53 from noelleleigh/Python-3.12
...
Support Python 3.12
2024-04-04 15:14:58 -04:00
Noelle Leigh
43333db825
Round growth rate to single decimal
...
At generation 8, the growth rate in the "look" message is displayed as:
> 2.4000000000000004x
To make it display "2.4x" instead, I used the [format specification][0]
to display growth rate with only a single decimal place.
[0]: https://docs.python.org/3/library/string.html#format-specification-mini-language
2024-03-03 17:52:03 -05:00
Noelle Leigh
c6aed375da
Support Python 3.12
...
Python 3.12 no longer supports using non-integer values as arguments for
random functions (see [Changes in the Python API for 3.12][0]). This PR
casts `CONST_RARITY_MAX` to an integer to prevent a `TypeError` from
being raised.
[0]: https://docs.python.org/3/whatsnew/3.12.html#changes-in-the-python-api
2024-03-03 17:20:32 -05:00
Marcos Marado
1fffd41783
Check if the save file isn't corrupted
...
If the save file is empty, then it will not be loadable, and it is best
act as if none existed.
2023-09-13 15:38:08 +00:00