Added more spells.

This commit is contained in:
Mark Wolfman
2018-04-06 18:14:13 -05:00
parent bab2413f4d
commit 82d59a70d9
7 changed files with 424 additions and 12 deletions
+3 -3
View File
@@ -300,8 +300,8 @@ def main():
description='Prepare Dungeons and Dragons character sheets as PDFs')
parser.add_argument('filename', type=str, nargs="?",
help="Python file with character definition")
parser.add_argument('--flatten', '-F', action="store_true",
help="Remove the PDF fields once processed.")
parser.add_argument('--editable', '-e', action="store_true",
help="Keep the PDF fields in place once processed.")
args = parser.parse_args()
# Process the requested files
if args.filename is None:
@@ -311,7 +311,7 @@ def main():
for filename in filenames:
print(f"Processing {os.path.splitext(filename)[0]}...", end='')
try:
make_sheet(character_file=filename, flatten=args.flatten)
make_sheet(character_file=filename, flatten=(not args.editable))
except Exception as e:
print('failed')
raise
+408 -5
View File
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
+2 -2
View File
@@ -1,5 +1,5 @@
name = 'Warlock'
character_class = 'wizard'
name = 'Sid Istick'
character_class = 'Warlock'
player_name = 'Mark'
background = "Criminal"
race = "Rock Gnome"
Binary file not shown.
+10 -1
View File
@@ -3,14 +3,23 @@
# from distutils.core import setup
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='dungeonsheets',
version='0.1dev1',
version='0.1dev2',
description='Dungeons and Dragons 5e Character Tools',
author='Mark Wolfman',
author_email='canismarko@gmail.com',
url='https://github.com/canismarko/dungeon-sheets',
download_url = 'https://github.com/canismarko/dungeon-sheets/archive/master.zip',
packages=['dungeonsheets'],
package_data={
'dungeonsheets': ['blank-character-sheet-default.pdf', 'blank-spell-sheet-default.pdf']
},
install_requires=[
'fdfgen',
],
entry_points={
'console_scripts': [
'makesheets = dungeonsheets.make_sheets:main'