Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
178 changes: 160 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,32 +1,174 @@
# Python bytecode files
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# Virtual environments
venv/
.env/
.Python
# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# IDE/editor specific
.idea/
.vscode/
*.sublime-project
*.sublime-workspace
# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Logs
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# UV
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
#uv.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
.pdm.toml
.pdm-python
.pdm-build/

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# OS-specific files
.DS_Store # macOS
Thumbs.db # Windows
# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

# Environment variables and secrets
.env # if you are using a .env file for environment variables
# Ruff stuff:
.ruff_cache/

# Jupyter notebook checkpoints
.ipynb_checkpoints/
# PyPI configuration file
.pypirc
33 changes: 33 additions & 0 deletions LORE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Dumping ground for Gorlok Lorelok

*Characters*

Gorlok
Main baddie
But not really bad, possessed by Icram the Enchanter (the real main baddie)

|Family
- Snorlok - son
Hates you at first, then loves you
- Jorlok - wife

Icram the Enchanter (also sneakily The Narrator)
Main baddie, but for real
Actual final boss to fight, with Snorlok by your side

*Items*

|Armor

Plate Armor of Hades
The 'enchanted' (cursed) plate armor that Gorlok wears
It controls his mind / affect
Cursed by Icram, but it's got good stats

|Weapons

Nether Axe
Gorlok's ult weapon

Rusty Spoon #might change
Player's ult? Not an actual spoon, maybe just a nickname for some kind of broadsword
3 changes: 2 additions & 1 deletion armor/hades_plate.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
class hades_plate:
def __init__(self):
self.name = "Plate Armor of Hades"
self.defense = 1.3
self.defense = 1.3

2 changes: 1 addition & 1 deletion battles/battle_end_victory.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ def battle_won():
print(f"\033[1;31m- Congratulations! You have defeated {enemy.name}! -\033[0m")
print()
exit()
return
return
3 changes: 1 addition & 2 deletions battles/battle_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def test_battle():

atk_1 = input(f"Do you want to swing your {player_instance.weapon().name} at {enemy.name}? ").strip().lower()


if atk_1 == "yes":
damage = player_instance.weapon().damage # Get the player's weapon damage
print(f"{player_instance.weapon().name} does {int(damage)} damage to {enemy.name}!")
Expand Down Expand Up @@ -70,4 +69,4 @@ def test_battle():
print(f"{enemy.name} is bored with your bullshit and flies away into the night sky.")

# Call the battle function to start the test
# test_battle()
# test_battle()
95 changes: 0 additions & 95 deletions battles/final_battle copy.py

This file was deleted.

3 changes: 2 additions & 1 deletion battles/final_battle.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,5 @@ def run_battle():
exit()

if __name__ == "__main__":
run_battle()
run_battle()

3 changes: 2 additions & 1 deletion characters/enemies.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ def take_damage(self, damage):

# Subtract the reduced damage from enemy's health
self.hp -= reduced_damage
return reduced_damage
return reduced_damage

7 changes: 6 additions & 1 deletion characters/player.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# player stats and attributes

from weapons.melee import rusty_spoon
# from weapons.melee import nether_axe

class player:
def __init__(self):
self.name = "Player"
self.hp = 100
self.armor = None
self.weapon = rusty_spoon
self.weapon = rusty_spoon
def take_damage(self, amount_dmg):
self.hp -= amount_dmg
if self.hp < 0:
self.hp = 0
Loading
Loading