Skip to content
This repository was archived by the owner on Aug 17, 2025. It is now read-only.

Commit ed00ece

Browse files
authored
TT-Damage-Calculator as a library (#20)
Adding feature: TT-Damage-Calculator as a library ive wanted to do this for a little while, it could be useful for things like discord bots or other projects!
2 parents e3ec1d9 + 3350b73 commit ed00ece

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ jobs:
148148
pyinstaller "src/tt_damage_calculator/Toontown Damage Calculator.py" --onefile --windowed
149149
cp -R ./src/tt_damage_calculator/assets ./dist/assets
150150
cp -R ./LICENSE ./dist
151+
cp -R ./src/tt_damage_calculator/assets "./dist/Toontown Damage Calculator.app/Contents/MacOS/assets"
152+
cp -R ./LICENSE "./dist/Toontown Damage Calculator.app/Contents/MacOS"
151153
- name: Upload executable
152154
uses: actions/upload-artifact@v4
153155
with:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ strip = true
99

1010
[project]
1111
name = "tt_damage_calculator"
12-
version = "4.3.1"
12+
version = "4.3.2"
1313
authors = [
1414
{ name="Vhou-Atroph", email="vhouatroph@proton.me" },
1515
]

src/tt_damage_calculator/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55
Run the Toontown Damage Calculator with python -m tt_damage_calculator instead!
66
"""
77

8-
__version__ = "4.3.0"
8+
__version__ = "4.3.2"
99

10+
# Imports for library functionality
11+
from .tt_damage_calculator import Gag, cog_hp, gag_calculator, full_calc, lvl_ind
12+
# Imports for app functionality
1013
from .widgets import App
1114

1215
def main():
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.3.1
1+
4.3.2

0 commit comments

Comments
 (0)