fixed issue crashing connections and added system logger
This commit is contained in:
@ -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
|
||||
|
||||
|
Binary file not shown.
Reference in New Issue
Block a user