diff options
author | Joel Kronqvist <joel.kronqvist@iki.fi> | 2024-11-23 05:24:10 +0200 |
---|---|---|
committer | Joel Kronqvist <joel.kronqvist@iki.fi> | 2024-11-23 05:24:10 +0200 |
commit | 28b83db50f33cb704311ffe608dcd8c4412635cf (patch) | |
tree | c1be7986ef783973ceeffb2b966bec0019feff1b /src/scalevalapokalypsi/Model/Entities/Player.scala | |
parent | db5612ed9734d51e6fcd0d7b5a7635e49b773581 (diff) | |
download | scalevalapokalypsi-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.scala | 2 |
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 |