Commit 45beb26f authored by Ralf's avatar Ralf
Browse files

fix sending chat

parent 6550d3d5
...@@ -103,13 +103,13 @@ class Player(Thing): ...@@ -103,13 +103,13 @@ class Player(Thing):
for thing in target.things: for thing in target.things:
if thing != self and isinstance(thing, Player): if thing != self and isinstance(thing, Player):
playerToPush = thing playerToPush = thing
self.send("By moving to the "+direction[0]+" you pushed another player away.")) self.send("By moving to the "+direction[0]+" you pushed another player away.")
self.game.labyrinth.moveThing(self, target, (lambda:playerToPush.isMovedBy(self) if playerToPush else None)) self.game.labyrinth.moveThing(self, target, (lambda:playerToPush.isMovedBy(self) if playerToPush else None))
elif verb in sayVerbs: elif verb in sayVerbs:
msg = " ".join(words[1:]) msg = " ".join(words[1:])
for dx, dy in [(0, 0)]+directionOffsets.values(): for dx, dy in directionOffsets.values():
for thing in self.field.neighbor(dx=dx, dy=dy): for thing in self.field.neighbor(dx=dx, dy=dy):
if isinstance(thing, Player) and thing != self: if isinstance(thing, Player) and thing != self:
thing.send("You hear someone saying: "+msg) thing.send("You hear someone saying: "+msg)
......
Supports Markdown
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