From 2c8492485e022569797910fb5ab2890b79c00d81 Mon Sep 17 00:00:00 2001 From: Mark Wolfman Date: Sun, 14 Oct 2018 13:58:16 -0500 Subject: [PATCH] Minor fixes and minor version bump. - More reliable clean up of stray temporary files. - Typos in spell description. - Separate file for version number. --- VERSION | 1 + dungeonsheets/make_sheets.py | 5 ++++- dungeonsheets/spells.py | 8 ++++---- setup.py | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 VERSION diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..267577d --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.4.1 diff --git a/dungeonsheets/make_sheets.py b/dungeonsheets/make_sheets.py index 82fd931..d97aeb1 100644 --- a/dungeonsheets/make_sheets.py +++ b/dungeonsheets/make_sheets.py @@ -69,7 +69,10 @@ def create_spellbook_pdf(character, basename): f.write(tex) # Compile the PDF pdf_file = f'{basename}.pdf' - result = subprocess.call(['pdflatex', tex_file], stdout=subprocess.DEVNULL) + output_dir = os.path.dirname(pdf_file) + result = subprocess.call(['pdflatex', '--output-directory', + output_dir, tex_file], + stdout=subprocess.DEVNULL) # Remove temporary files if result == 0: os.remove(tex_file) diff --git a/dungeonsheets/spells.py b/dungeonsheets/spells.py index dabd929..b80f566 100644 --- a/dungeonsheets/spells.py +++ b/dungeonsheets/spells.py @@ -1247,17 +1247,17 @@ class Blur(Spell): class BurningHands(Spell): - """As you hold your hands with lhumbs touching and fingers spread, a + """As you hold your hands with thumbs touching and fingers spread, a thin sheet of flames shoots forth from your outstretched fingertips. Each creature in a 15-foot cone must make a Dexterity saving throw. A creature takes 3d6 fire damage on a failed save, or half as much damage on a successful one. - The fire ignites any flammable objecls in lhe area that aren't + The fire ignites any flammable objects in the area that aren't being worn or carried. - **At Higher Levels.** When you cast lhis spell using a spell slot - of 2nd level or higher, lhe damage increases by 1d6 for each slot + **At Higher Levels.** When you cast this spell using a spell slot + of 2nd level or higher, the damage increases by 1d6 for each slot level above 1st. """ diff --git a/setup.py b/setup.py index bc7a045..34dbb3d 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ def read(fname): setup(name='dungeonsheets', - version='0.4.0', + version=read('VERSION'), description='Dungeons and Dragons 5e Character Tools', long_description=read('README.rst'), long_description_content_type='text/x-rst',