aboutsummaryrefslogtreecommitdiff
path: root/src/scalevalapokalypsi/Model/Entities/Player.scala
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2024-11-23 05:24:10 +0200
committerJoel Kronqvist <joel.kronqvist@iki.fi>2024-11-23 05:24:10 +0200
commit28b83db50f33cb704311ffe608dcd8c4412635cf (patch)
treec1be7986ef783973ceeffb2b966bec0019feff1b /src/scalevalapokalypsi/Model/Entities/Player.scala
parentdb5612ed9734d51e6fcd0d7b5a7635e49b773581 (diff)
downloadscalevalapokalypsi-28b83db50f33cb704311ffe608dcd8c4412635cf.tar.gz
scalevalapokalypsi-28b83db50f33cb704311ffe608dcd8c4412635cf.zip
NPCs, zombies and talking
Diffstat (limited to 'src/scalevalapokalypsi/Model/Entities/Player.scala')
-rw-r--r--src/scalevalapokalypsi/Model/Entities/Player.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scalevalapokalypsi/Model/Entities/Player.scala b/src/scalevalapokalypsi/Model/Entities/Player.scala
index a66f521..7d166b4 100644
--- a/src/scalevalapokalypsi/Model/Entities/Player.scala
+++ b/src/scalevalapokalypsi/Model/Entities/Player.scala
@@ -27,7 +27,7 @@ class Player(name: String, initialLocation: Area) extends Entity(name, initialLo
val res = (res1 ++ res2).toVector
observations.clear()
observedEvents.clear()
- res
+ res.filter(s => !(s.isEmpty))
/** Returns whether this player has a pending sing effect. */
def isSinging: Boolean = this.pendingSingEffect.isDefined