cleaning up app and improving html

This commit is contained in:
Zachary Watts
2026-05-02 00:41:49 -04:00
parent 78ba21227a
commit 2173733463
5 changed files with 53 additions and 42 deletions

View File

@@ -105,7 +105,7 @@ def returnCharacter(identifer):
if adv.identifier == identifier:
return adv
def createCharacterWithDict(character_dict):
def createCharacterWithDict(character_dict) -> Adventurer:
chosen_class = character_dict['player_class']
c_id = character_dict['identifier']
level = character_dict['level']
@@ -116,13 +116,8 @@ def createCharacterWithDict(character_dict):
setattr(new_char,k, v)
return new_char
# used for local testing
def main():
#adventurer_party = returnParty(party_size=2, party_level=2)
#for adv in adventurer_party.adventurers:
# print(adv.adv_class, adv.level)
# adv.set_level(10)
# print(adv.adv_class, adv.level)
adv_dict = Adventurer.get_subclass_dict()
test_class = adv_dict['cleric']
new_char = test_class(c_id="adv-1",level=2)