Commit 4505d7ff authored by Ralf's avatar Ralf

tell adins first

parent 69d4af14
......@@ -24,7 +24,7 @@ class Game:
self.labyrinth.createThing(treasure,ttile)
euclid = Euclid(self)
etile = random.choice(self.labyrinth.getFreeTiles())
#self.labyrinth.createThing(euclid,etile)
self.labyrinth.createThing(euclid,etile)
eliza = Extern(self, "Eliza", "Z", os.path.join(scriptDir, "eliza"), "./simple")
ztile = random.choice(self.labyrinth.getFreeTiles())
self.labyrinth.createThing(eliza,ztile)
......
......@@ -152,11 +152,11 @@ class Labyrinth:
self.tell(teller, teller.neighborThings(), verb, message)
def tell(self,teller,tolds,verb,message):
for thing in tolds:
assert thing != teller
thing.tell(teller,verb,message)
for admin in self.game.admins:
if hasattr(teller,'uid'):
admin.send("player {0} {1}s: {2}".format(teller.uid, verb, message))
else:
admin.send("{0} {1}s: {2}".format(str(teller), verb, message))
for thing in tolds:
assert thing != teller
thing.tell(teller,verb,message)
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