Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Hacksaar
Haxotel
Commits
45beb26f
Commit
45beb26f
authored
Aug 01, 2014
by
Ralf
Browse files
fix sending chat
parent
6550d3d5
Changes
1
Show whitespace changes
Inline
Side-by-side
player.py
View file @
45beb26f
...
...
@@ -103,13 +103,13 @@ class Player(Thing):
for
thing
in
target
.
things
:
if
thing
!=
self
and
isinstance
(
thing
,
Player
):
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
))
elif
verb
in
sayVerbs
:
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
):
if
isinstance
(
thing
,
Player
)
and
thing
!=
self
:
thing
.
send
(
"You hear someone saying: "
+
msg
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment