Commit Graph

185 Commits (fa1837f71ff6ac31a9ea7d9d575d183fd3e96a70)

Author SHA1 Message Date
joy fa1837f71f add color to botany
Add example ANSI-colored ASCII art to "art" directory

Add ansi_render() to menu_screen.py to render ANSI-colored ASCII art

Fall back on non-colored art if no colored art exists

Only single escape codes for setting foreground color are supported.
Escape sequences with multiple codes (e.g. "ESC[1;33m") are unsupported.
Unsupported escape codes reset colors to normal.
2021-12-26 00:15:25 -08:00
Jake Funke 38f7f17b66
Merge pull request #34 from jmdejong/evilvisitors
Don't let evil visitors kill a plant by adding old timestamps
2021-01-25 14:19:04 -08:00
Jake Funke d0a9bf22a4
Merge pull request #36 from cosarara/master
don't use "is" to compare string literals
2021-01-25 14:18:39 -08:00
Jake Funke f5dd135c91
Merge pull request #37 from jmdejong/patch-2
Stop making all plants godly
2021-01-25 14:18:17 -08:00
J.M. de Jong 85d51f40f5
Stop making all plants godly
python2 division of integers always results in an integer, so `(2/3)` would result in `0`.
This caused all plants to get "godly" as rarity.
This change makes sure a float division is being used
2021-01-23 14:30:31 +01:00
Jaume Delclòs Coll 729e5268e4 don't use "is" to compare string literals 2020-10-25 02:09:29 +02:00
troido 0556b3f75a protect plants against old timestamps 2020-10-03 09:44:06 +02:00
Jake Funke f243391418
Merge pull request #32 from ChristophGra/master
Error handling when getch() throws an error
2020-09-15 12:15:58 -07:00
Akronymus 979c925234
Error handling when getch() throws an error
Currently untested, but should work well enough. Doing this as an reference implementation.
2020-09-15 19:45:54 +02:00
Jake Funke da33b69be4
Update README.md 2020-04-03 15:14:04 -07:00
Jake Funke 54bcd2fc61
Update README.md 2020-04-03 15:13:18 -07:00
Jake Funke d93c5aad8f
Merge pull request #27 from marado/master
Added info about where the readme actually is
2020-04-03 15:09:18 -07:00
Jake Funke c003d183fd
Merge pull request #28 from marado/view
botany-view: a new binary giving you a snapshot
2020-04-03 15:09:06 -07:00
Jake Funke a0be5be6bc
Merge pull request #29 from marado/patch-1
making the halloween easter egg ~-agnostic
2020-04-03 15:08:55 -07:00
Jake Funke ea92373f37
Merge pull request #24 from PaperMountainStudio/python3
Use python3
2020-04-03 14:55:10 -07:00
Marcos Marado c44f9a1ed1
making the halloween easter egg ~-agnostic 2020-04-03 00:47:18 +01:00
Marcos Marado 34d1f1be2e botany-view: a new binary giving you a snapshot
python botany-view.py will give you a snapshot look of your garden plot,
showing what is in there. Instead of an interactive curses interface, it
just shows you your plant as it currently is. It's like just taking a
peek through the window, or a picture of your plant to show to your
friends.
2020-04-02 15:35:57 +01:00
Marcos Marado 2b9cc31b17 Added info about where the readme actually is
The help menu points out to the readme for more info, but, in cases
where people are using this because it is installed on their server, but
they weren't the ones getting it from the web, they probably don't know
where to find that README. It might not happen to many people, but it
happened to me :-)

This patch just adds another line, with the URL for the README.
2020-04-02 00:03:05 +01:00
Paper Mountain Studio c089f8fe67 delete old import for python2 2020-01-14 17:21:21 +01:00
Jake Funke 595a4d7e31 found an oopsie 2019-10-30 23:53:56 +00:00
Paper Mountain Studio 58ac0d3250 Use python3 2019-10-30 18:27:45 +01:00
Jake Funke a38c64914f clarify growth rate 2019-08-26 16:34:08 +00:00
Jake Funke 9d7c5966d3 cleanup comments 2019-08-16 17:25:45 +00:00
Jake Funke 9bb1f74f74 fix harvest numeric input bug 2019-08-16 17:21:40 +00:00
Jake Funke 8fd35a5927 logic tweak 2019-02-28 00:41:15 +00:00
Jake Funke 300b9e8d00 Added alpine-like q to quit 2018-12-13 22:54:57 +00:00
Jake Funke 70d02db493
Merge pull request #22 from midnightpupil/master
changed shebang to increase portability @ahriman/tilde.town
2018-12-06 17:11:53 -08:00
ahriman c9979c93e3 changed shebang to increase portability @ahriman/tilde.town 2018-12-06 16:18:26 -05:00
Jake Funke 0b2e9177dc
Merge pull request #21 from RickCarlino/master
Limit length of longer usernames
2018-11-24 20:54:18 -08:00
Rick Carlino 7fcfedade0 Better strategy for truncating long usernames. 2018-11-24 22:47:28 -06:00
Rick Carlino 056df53b47 Revert previous changes. NEXT: draw_info_text stuff. 2018-11-24 22:34:04 -06:00
Rick Carlino 6ceffd9098 Limit length of longer usernames 2018-11-20 20:43:48 -06:00
Jake Funke c5e0bbaef8 allow underscore in names 2018-11-14 23:24:34 +00:00
Jake Funke 2212596e5e halloween feature and death check fix 2018-10-03 18:53:49 +00:00
Jake Funke 6f7cddd5bb tweaks 2018-08-27 21:01:46 +00:00
Jake Funke e5261b79b1 fixed bug where users with live botany instances couldnt be watered 2018-08-10 20:14:11 +00:00
Jake Funke e9b58bb61d tribute to abraxas. rest in peace friend. 2018-08-06 21:15:06 +00:00
Jake Funke 0c99c4f948 added some mutations 2018-07-12 17:42:34 +00:00
Jake Funke 6162d9f1ba
Merge pull request #20 from Ensiss/io-fix
Prevent infinite loops when piping to botany
2018-07-03 11:05:50 -07:00
Ensis 2619bd87bb Prevent infinite loops when piping to botany 2018-07-03 14:18:09 +02:00
Jake Funke 0f78cf20d3 fixed permissions bug 2018-06-19 23:58:51 +00:00
Jake Funke a23656b1be
Merge pull request #18 from Ensiss/login-autocomplete
Add autocompletion for logins in the visit prompt
2018-06-19 16:39:14 -07:00
Jake Funke dc7eab6aa4
Merge pull request #17 from Ensiss/thread-safe
Fix race conditions messing up the display
2018-06-19 16:36:24 -07:00
Jake Funke f3a5459ef7 menu range fix 2018-06-18 18:16:05 +00:00
Jake Funke af57c4b8be Merge branch 'master' of https://github.com/jifunks/botany 2018-06-14 21:07:54 +00:00
Jake Funke 2315a3ecd6 More accurate guest timing 2018-06-14 21:07:43 +00:00
Jake Funke 0218448d43
Update README.md 2018-06-14 13:20:51 -07:00
Jake Funke 94584a2a36 fixed long term absence visitor check 2018-06-14 20:11:07 +00:00
Jake Funke f758b8bbbf Merge branch 'master' of https://github.com/jifunks/botany 2018-06-13 00:07:13 +00:00
Jake Funke 2eb347e11b garden bar text 2018-06-13 00:06:57 +00:00