cleaning up app and improving html
This commit is contained in:
9
main.py
9
main.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user