Commit da5a4ff9 authored by ajil.k's avatar ajil.k

updated

parent b43e4421
......@@ -11,7 +11,6 @@ def create_new_character(prototypes):
prototype = CharacterPrototype()
base_character_name = "normal_character"
prototype.create_character(base_character_name, base_character)
print(prototypes)
# Creates a new character by cloning the base character and updating its attributes
new_character = prototype.clone(base_character_name,
health=prototypes.health,
......
......@@ -19,7 +19,6 @@ async def root():
@prototype.post(EndPoints.create_characters)
def create_characters(prototypes: PrototypeCharacter):
try:
print(prototypes)
base_character, new_character = create_new_character(prototypes)
return {"Base Character": base_character, "New Character": new_character}
except Exception as e:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment