fixed issue crashing connections and added system logger

This commit is contained in:
2024-01-14 17:55:35 +01:00
parent 677552a617
commit 15cce52aea
16 changed files with 93 additions and 81 deletions

View File

@ -13,7 +13,8 @@ def PlaceCard(tcpClient, card):
"event":"placecard",
"card": card.getID(),
"type": card.getType(),
"pos": card.getPos(),
"posx": card.getPos().x,
"posy": card.getPos().y,
}
tcpClient.send(payload)
@ -27,7 +28,7 @@ def CardPlaced(world:World, card:int, type:str, owner:str, pos:pygame.Vector2, i
world.spawnSpellCard(f"Assets/Cards/{card}/", pos, inputHandler, owner)
pass
elif type == "TrapCard":
world.spawmTrapCard(f"Assets/Cards/{card}/", pos, inputHandler, owner)
world.spawnTrapCard(f"Assets/Cards/{card}/", pos, inputHandler, owner)
pass
pass