Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command polish #8

Merged
merged 20 commits into from
Aug 7, 2023
Merged
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
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python -m pip install pyyaml
- name: Test with Python unittest
run: python -m unittest
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ Run from the highest level directory (the one containing bestiary.txt) using the

Enter `help` once the program has started to view a list of available commands and their functions.

* Create your own NPCs to add to your encounter. See the make command to create them dynamically or check the provided bestiary.txt file for the csv-like file format.
* Create your own NPCs to add to your encounter. See the `make` command to create them dynamically or check the provided bestiary.yaml file for the proper format.

## Dependencies

* Python 3.11 or higher
* PyYAML
16 changes: 0 additions & 16 deletions bestiary.txt

This file was deleted.

33 changes: 33 additions & 0 deletions bestiary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Example bestiary file for an encounter

# Creatures
Wolf:
hp: 11
ac: 13
Fox:
hp: 3
ac: 12
comment: this note will be ignored
Spider:
hp: 1
ac: 12
description: A tiny creepy crawley creature

# Fantasy
Skeleton:
hp: 13
ac: 13
Zombie:
hp: 16
ac: 15
Dragon:
hp: 150
ac: 18

# Human
Townsfolk:
hp: 9
ac: 12
Guard:
hp: 25
ac: 13
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ build-backend = "setuptools.build_meta"

[project]
name = "encounter"
version = "4.19.1"
version = "4.20.1"
description = "Interactive command-line tool for managing tabletop combat encounters."
requires-python = ">=3.11"
dependencies = [
"pyyaml",
]

[tool.setuptools]
package-dir = {"" = "src"}
Loading
Loading