Skip to content

Commit c52c0db

Browse files
committed
add ability to change bacground color. added ability to change image. fixed issue where it was possible to overwrite files to be blank before you load. made mod calculation much more efficient.
1 parent 8fd1188 commit c52c0db

27 files changed

+1137
-298
lines changed

Diff for: .idea/workspace.xml

+484-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: DndConfig.py

+15
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ def all_org_file(string):
6969
all_org = os.path.join(userDir, 'DnD-5e-CharacterSheet/all_org.txt')
7070
return all_org
7171

72+
def color_file(string):
73+
userDir = os.path.abspath(os.pardir)
74+
color = os.path.join(userDir, 'DnD-5e-CharacterSheet/color.txt')
75+
return color
76+
77+
def color_file_2(string):
78+
userDir = os.path.abspath(os.pardir)
79+
color2 = os.path.join(userDir, 'DnD-5e-CharacterSheet/color2.txt')
80+
return color2
81+
7282
def feat_trait_file(string):
7383
userDir = os.path.abspath(os.pardir)
7484
feat_trait = os.path.join(userDir, 'DnD-5e-CharacterSheet/feat_trait.txt')
@@ -94,6 +104,11 @@ def other_file(string):
94104
other = os.path.join(userDir, 'DnD-5e-CharacterSheet/other.txt')
95105
return other
96106

107+
def image_file(string):
108+
userDir = os.path.abspath(os.pardir)
109+
image = os.path.join(userDir, 'DnD-5e-CharacterSheet/image.txt')
110+
return image
111+
97112

98113

99114

Diff for: README.md

+15
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,18 @@ beginner programmer, wanted a fun project to learn so I made this electronic cha
55
and dragons. It is functional but it is still a work in progress!
66

77
To run the program launch form.py
8+
9+
TIPS:
10+
Don't use the '|' character. At all. This character is used as the csv file delimeter.
11+
Use of this character within the sheet will have negative affects on the placement of your data when you load.
12+
13+
You can change the color of the program background. Just enter a valid HEX color value into the appropriate field
14+
and save. Then Restart the program.
15+
16+
You can control the image displayed within the program. Just enter a valid image file path into the appropriate field
17+
and save. Then Restart the program. The image should be Max Height = 160 Max Width = 135 or it could have negative
18+
visual affects.
19+
20+
Dice Roller included.
21+
22+

Diff for: __pycache__/DndConfig.cpython-36.pyc

659 Bytes
Binary file not shown.

Diff for: ab.PPM

+30
Large diffs are not rendered by default.

Diff for: ability_score.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
14|2|17|3|14|2|10|0|13|1|18|4
1+
(21)14|(5)2|18|4|(19)14|(4)2|(19)10|(4)0|14|2 |22|6

Diff for: all_org.txt

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
1-
Sera-Phina
2-
(Female and motherly voice that is hopeful and encouraging we will find a way to stop the undead problem)
1+
Berry Black
2+
3+
Blink Dog: (B-link)
4+
teleport up to 40 up ft.
5+
beggining of turn gets toroll for recharge.
6+
1d6 4 - 6 succeeds.
7+
Bite: +3 to hit (1d6+1) Can teleport same turn.
8+
Resistance to Crit (adamnatine armor)
9+
Advantage on wisdom checks (hearing or smell)
10+
Speed: 40
11+
HP:22
12+
AC:13
13+
str 12 dex 17 con 12
14+
int 10 wis 13 cha 11

Diff for: attack_notes.txt

+31-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,34 @@
1-
Spell Save DC: 14 (8 + proficiency + charisma)
1+
LEVEL UP TO 19!!!!!!!!!!!!!!!!!!!!!!!!
2+
Spell Save DC: 20 (8 + proficiency + charisma)
23

3-
Spell Attach: 6 (proficiency + Charisma)
4+
Barry HP: 136/136
5+
B-Link HP: 22/22
46

5-
Used 2 inspiration
6-
Used 1 Spells
7-
8-
Everyones AC is 15 (for cunning words)
7+
Magic berries: 259
98

10-
test
11-
test
12-
test
9+
Spell Attack: 12+3 (proficiency + Charisma + Wand of War Mage)
10+
11+
Lucky: 2/3
12+
13+
Insp/Cut(d12): 1/6
14+
1st lvl: 4/4
15+
2nd lvl: 2/3
16+
3rd lvl: 2/3
17+
4th lvl: 2/3
18+
5th lvl: 3/3(extra from dragon)
19+
6th lvl: 0/2
20+
7th lvl: 0/1
21+
8th lvl: 0/1
22+
9th lvl: 0/1
23+
24+
Ammunition:
25+
Adamantine Bullets (490)
26+
+1 bullets (9) (+1 to damage and attack)
27+
+3 bullets (10) (+3 to damage and attack)
28+
Grenade(0) 5d6 piercing. 1/2 if they save(dex) Can throw 60 feet. radious 20 feet.
29+
30+
Poison:
31+
Serpant venom: 3/3 applications - 3d6 poison dmg
32+
1/2 on save DC:13
33+
34+
Scorpion poison: 2 d10 - Con save DC: 12 (x2)

Diff for: attack_stats.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Pistol|Rapier|Dagger|||+5 (range 30/90)|+5|+5 (range (20/40)|||1d10 +3|1d8 +3|1d4 +3||
1+
Pistol|Whip Rapier +1|Mythcarver +3|Blunderbuss+2|Claw(bonus action)|+10(range 30/90)|+12|+14|+12(range 30/100) |+11|1d10 +4|1d8/1d6 + 1d4 cold +6 |1d8 +5 +3|1d12 +4 + 2|1d8 +5

Diff for: battle_stats.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
15|+3|30||27|20|4|1d8|2|false|false|false|false|false|false
1+
19|+9|30||163|88|0/10|1d8|17|false|false|false|false|false|false

Diff for: bonds.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
I've been searching my whole life for the answer to a certain question.
1+
I've been searching my whole life for the answer to a certain question/riddle.

Diff for: character_traits.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lil' glocc tha flex god|Bard - 3|Sage|Tyler|+2|Half Elf Aasimar|Neutral Good|1675/2700
1+
Lil Glocc tha Flex God|Bard - 19|Sage|Tyler|+6|Half Elf Aasimar|Neutral Good|336625

Diff for: color.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#9bb570

Diff for: color2.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#a3ffad

Diff for: equip.txt

+38-9
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,49 @@
1-
Studded Leather Armor
1+
Lizard Scale Studded Leather Armor +2
2+
cloak of displacement*
3+
Fochlucan Bandor*
4+
ring of feather falling*
5+
slipper of splider climb*
6+
Staff of Charming*
7+
Rod of Absorbtion*(8)
8+
Rod of Alertness*
9+
Mythcarver*
10+
Headband of intellect*
11+
Amulet of Health*
12+
bag of holding
13+
Crystal Ball
14+
Rope of Entaglement
15+
fermenting blackberry drank
16+
Horn of Blasting
17+
bronze horn of valhalla
18+
circlet of blasting
19+
pipes of haunting
20+
mariners armor
21+
red liquid from fountain
22+
potion of undead protection x2
223
Bottle of black ink
324
Quill
425
Small Knife
5-
6-
Qustion/Riddle from a dead colleague I have not been able to answer yet.
7-
8-
Common Clothes
9-
Rapier
10-
Dagger
11-
Pistol
12-
26+
squid
27+
------------
28+
Boon of Luck:
29+
2 d10's I can use for Saving Throw. Attack Roll. Ability Check.
30+
--------------
31+
Sudde: prof for 1 hour)
32+
char - pink x1
33+
wis - white x2
34+
int - green x0
35+
cont - yellow x0
36+
str - red x0
37+
dex - blue x0
38+
---------------
1339
Entertainers Pack:
1440
Backpack
1541
Bedroll
1642
2 costumes
1743
5 candles
1844
5 days of Rations
45+
2 potion of healing
1946
Waterskin
2047
Disguise kit
48+
Common Clothes
49+

Diff for: feat_trait.txt

+31-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,36 @@ Celestial Resistance
1010
Healing Hands
1111
Light Bearer
1212
Ritual Casting
13-
Bardic Inspiration
13+
Bardic Inspiration (d12)
1414
Jack of All Trades
15-
Song of Rest
15+
Song of Rest (1d12)
1616
Crossbow Expert
17-
Instrument: Dope rhymes
17+
Font of Inspiration
18+
Countercharm
19+
Advantage on Stealth in Forest and Swamp areas (from my armor)
20+
Temporary troll hitpoints(10)
21+
War Caster
22+
Dark Vision
23+
Fey Ancestory
24+
Light Bearer
25+
Healing Hands
26+
Lucky
27+
Free Instrument Concentration
28+
UnerwaterBreathing (from eating Hydra)
29+
Peerless Skill
30+
Alert
31+
Main Instrument: Dope rhymes
32+
Frightening Presence
33+
34+
35+
Resistant to Nectrotic
36+
Resistant to Radient
37+
Immune to Fire(thordak)
38+
Resistance to Acid(tattoo)
39+
Resistance to Force(tattoo)
40+
Resistance to Psychic(tattoo)
41+
Resistance to Lightning(tattoo)
42+
Resistance to Poison(tattoo)
43+
Resistance to Cold(tattoo)
44+
45+

Diff for: flaws.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
I overlook obvious solutions in favor of complicated ones.
1+
I overlook obvious solutions in favor of complicated ones.

0 commit comments

Comments
 (0)