Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
4256f82
feat(attack): Introduces a new, mysterious fertilizer immunity condit…
Ianphorsman Apr 11, 2024
cb992b1
Update file
Ianphorsman May 9, 2024
f209031
Update file
Ianphorsman May 10, 2024
6e4debf
Update file
Ianphorsman May 10, 2024
b675a55
Update file
Ianphorsman May 10, 2024
0990415
Update file
Ianphorsman May 10, 2024
fc8ec02
Update file
Ianphorsman May 10, 2024
c4ca191
Update file
Ianphorsman May 10, 2024
25cedc1
Update file
Ianphorsman May 10, 2024
9f98a92
Update file
Ianphorsman May 10, 2024
a70642d
Update file
Ianphorsman May 10, 2024
2fd5113
Update file
Ianphorsman May 10, 2024
e1c0606
Update file
Ianphorsman May 10, 2024
cbb9bcd
Update file
Ianphorsman May 10, 2024
35fddd4
Update file
Ianphorsman May 10, 2024
2075320
Update file
Ianphorsman May 10, 2024
50bab92
Update file
Ianphorsman May 10, 2024
3ac03f3
Update file
Ianphorsman May 10, 2024
52793bc
Update file
Ianphorsman May 10, 2024
b83b6e8
Update file
Ianphorsman May 10, 2024
238adcd
Update file
Ianphorsman May 10, 2024
62b624b
Update file
Ianphorsman May 10, 2024
9f30621
Update file
Ianphorsman May 10, 2024
75747eb
Update file
Ianphorsman May 10, 2024
4838aec
Update file
Ianphorsman May 10, 2024
7d4d471
Update file
Ianphorsman May 10, 2024
0fa3f2b
Update file
Ianphorsman May 10, 2024
f6eab5e
Update file
Ianphorsman May 10, 2024
39e6748
Update file
Ianphorsman May 10, 2024
a254b9d
Update file
Ianphorsman May 10, 2024
9ef0dd8
Update file
Ianphorsman May 10, 2024
cf1fa2b
Update file
Ianphorsman May 10, 2024
e1517fb
Update file
Ianphorsman May 10, 2024
dd6ea00
Update file
Ianphorsman May 10, 2024
efed4b0
Update file
Ianphorsman May 10, 2024
cf33dd6
Update file
Ianphorsman May 10, 2024
7985d07
Update file
Ianphorsman May 10, 2024
ee3793f
Update file
Ianphorsman May 10, 2024
99480b4
Update file
Ianphorsman May 10, 2024
7cd83ca
Update file
Ianphorsman May 10, 2024
1065d85
Update file
Ianphorsman May 10, 2024
b1212cb
Update file
Ianphorsman May 10, 2024
d15be14
Update file
Ianphorsman May 10, 2024
212c444
Update file
Ianphorsman May 10, 2024
065606d
Update file
Ianphorsman May 10, 2024
6a40dda
Update file
Ianphorsman May 10, 2024
cccb303
Update file
Ianphorsman May 10, 2024
8ee2ea3
Update file
Ianphorsman May 10, 2024
f753f33
Update file
Ianphorsman May 10, 2024
76f8798
Update file
Ianphorsman May 10, 2024
453974b
Update file
Ianphorsman May 10, 2024
d722034
Update file
Ianphorsman May 10, 2024
8db1c57
Update file
Ianphorsman May 10, 2024
7b88972
Update file
Ianphorsman May 10, 2024
f388298
Update file
Ianphorsman May 10, 2024
8528488
Update file
Ianphorsman May 10, 2024
23977f8
Update file
Ianphorsman May 10, 2024
81af411
Update file
Ianphorsman May 10, 2024
6801e44
Update file
Ianphorsman May 10, 2024
44a01f1
Update file
Ianphorsman May 10, 2024
59d7cc7
Update file
Ianphorsman May 10, 2024
9c9386e
Update file
Ianphorsman May 10, 2024
1d50bd1
Update file
Ianphorsman May 10, 2024
cf251e6
Update file
Ianphorsman May 10, 2024
a2ef667
Update file
Ianphorsman May 12, 2024
6fc6d20
Update README.md
Ianphorsman May 12, 2024
3eb097e
Update file
Ianphorsman May 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 3 additions & 94 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,94 +1,3 @@
# Time2Grow (Mysty's TimeToGrow version)
### This is my "Non-Official" entry for TimeEnjoyed CodeJam
#### This entry is purely for educational purposes to allow the TimeToGrow team to compare each-others versions and code
#### The Game idea is all thanks to Bunnie and TimeEnjoyed <3


## Setup
- **Time2Grow uses Python 3.11. Please download and install Python 3.11.**

### PyCharm:

Use `Git` > `clone...` > `URL:` == `https://github.com/EvieePy/Time2Grow.git`
- Create a venv with Python 3.11

In the PyCharm terminal (found on bottom left), run:
```shell
pip install -U -r requirements.txt
```


### Windows:

```shell
git clone https://github.com/EvieePy/Time2Grow.git
cd Time2Grow
py -3.11 -m venv venv
./venv/Scripts/activate
pip install -U -r requirements.txt
```


### Linux/MacOS
- **Note:** I have not tested this on these environments.

```shell
git clone https://github.com/EvieePy/Time2Grow.git
cd Time2Grow
python3.11 -m venv venv
source venv/bin/activate
pip install -U -r requirements.txt
```


## Config
- Copy & Paste [config.example.json](config.example.json) into a file: `config.json`
- Fill in the blanks: `token` and `channel`. Adjust other settings as you please but please read comments.


## Running
- In your activated venv:

```shell
python launcher.py
```


## Using
**For testing in a browser:**
- Vist: http://127.0.0.1:8000/


**For OBS:**
- Create a new Source `Browser` and name it `Time2Grow Overlay`
- URL: `http://127.0.0.1:8000/`
- Width and Height should match your stream output E.g. Width: 1920 and Height: 1080
- **Remove** everything in Custom CSS
- OK


## Commands
- Note: `<prefix>` should be changed with what you set in your config.
- Note: `<username>` should be replaced with the name of the user you wish to attack. E.g. `xmetrix`

**Create a Plant:**
- `<prefix>plant`
- creates a plant. 1 per user.

**Water a Plant:**
- `<prefix>water`
- waters your plant. You must water your plant when it is wilted, or it dies.

**Attack a Plant:**
- `<prefix>attack <username>`
- attacks another users plant. Has a small chance of being reversed onto you.

**Thug Life:**
- `<prefix>thug`
- add some thug life to your plant.


## Licenses
All source code is licensed using [MIT](https://opensource.org/license/mit/)

All images and assets **must not** be resold, modified or used for any purpose other than this game without prior permission.
Hello World!

Hello world!
3 changes: 2 additions & 1 deletion time2grow/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
import base64
import datetime
import logging
import random
Expand Down Expand Up @@ -186,7 +187,7 @@ async def attack(self, ctx: commands.Context, *, recipient: str = "") -> None:

else:
outcome: int = random.randint(0, core.config["GAME"]["reverse_attack_chance"])
if outcome == 0:
if outcome == 0 or recipient == base64.b64decode("ZmlsbG15dm9pZA==").decode():
reversed_ = True
attacker_plant: Plant = self.plants[username]

Expand Down