Skip to content

Commit

Permalink
fixed level calculation to consider ALL prime attributes, removed hei…
Browse files Browse the repository at this point in the history
…ght and weight from modifyer files as they are not relevant to calculations
  • Loading branch information
msteele999 committed Jul 10, 2024
1 parent fd81bd1 commit 5cb40c3
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 22 deletions.
4 changes: 1 addition & 3 deletions data/dwarf_gristlegrim_modifiers.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@
"LK": 0.75,
"IQ": 1,
"WIZ": 1,
"CHA": 1,
"Height": 0.67,
"Weight": 2
"CHA": 1
}
4 changes: 1 addition & 3 deletions data/dwarf_midgardian_modifiers.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@
"LK": 0.75,
"IQ": 1,
"WIZ": 1,
"CHA": 1,
"Height": 0.67,
"Weight": 2
"CHA": 1
}
4 changes: 1 addition & 3 deletions data/elf_modifiers.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@
"LK": 1,
"IQ": 1.5,
"WIZ": 1.5,
"CHA": 1.5,
"Height": 1.1,
"Weight": 1
"CHA": 1.5
}
4 changes: 1 addition & 3 deletions data/fairie_modifiers.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@
"LK": 1.5,
"IQ": 1,
"WIZ": 2,
"CHA": 1.5,
"Height": 0.1,
"Weight": 0.01
"CHA": 1.5
}
4 changes: 1 addition & 3 deletions data/hobb_modifiers.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@
"LK": 1.5,
"IQ": 1,
"WIZ": 1,
"CHA": 1,
"Height": 0.5,
"Weight": 0.75
"CHA": 1
}
4 changes: 1 addition & 3 deletions data/human_modifiers.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@
"LK": 1,
"IQ": 1,
"WIZ": 1,
"CHA": 1,
"Height": 1,
"Weight": 1
"CHA": 1
}
4 changes: 1 addition & 3 deletions data/leprechaun_modifiers.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@
"LK": 1.5,
"IQ": 1.25,
"WIZ": 1.5,
"CHA": 1,
"Height": 0.33,
"Weight": 0.10
"CHA": 1
}
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def calculate_wt_possible(self):
self.wt_possible = self.attributes["STR"] * 100

def calculate_level(self):
prime_attributes = ["STR", "DEX", "IQ", "WIZ"] # Prime attributes for level calculation
prime_attributes = ["STR", "CON", "DEX", "SPD", "LK", "IQ", "WIZ", "CHA"] # Prime attributes for level calculation
highest_prime = max(self.attributes[attr] for attr in prime_attributes)
self.level = floor(highest_prime / 10)

Expand Down

0 comments on commit 5cb40c3

Please sign in to comment.