aboutsummaryrefslogtreecommitdiff
path: root/src/scalevalapokalypsi/Model/Action.scala
diff options
context:
space:
mode:
authorAleksi Heikkila <aleksi.e.heikkila@aalto.fi>2024-11-23 21:48:32 +0200
committerAleksi Heikkila <aleksi.e.heikkila@aalto.fi>2024-11-23 21:48:32 +0200
commitb11c02e8f1f4dea09847da999c2acb2f96df8a58 (patch)
tree9ded38857c98ec74a5917202afe0605ddf0310b3 /src/scalevalapokalypsi/Model/Action.scala
parentfe2543627bcec1ea0f7a429bede20ca293458ba9 (diff)
downloadscalevalapokalypsi-b11c02e8f1f4dea09847da999c2acb2f96df8a58.tar.gz
scalevalapokalypsi-b11c02e8f1f4dea09847da999c2acb2f96df8a58.zip
Inventory, pickup loppuun, drop loppuun
Diffstat (limited to 'src/scalevalapokalypsi/Model/Action.scala')
-rw-r--r--src/scalevalapokalypsi/Model/Action.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scalevalapokalypsi/Model/Action.scala b/src/scalevalapokalypsi/Model/Action.scala
index a781ee8..52ba165 100644
--- a/src/scalevalapokalypsi/Model/Action.scala
+++ b/src/scalevalapokalypsi/Model/Action.scala
@@ -33,6 +33,7 @@ class Action(input: String):
result.map((true, _))
case "rest" => Some((true, actor.rest()))
case "get" => Some((false, actor.pickUp(this.modifiers)))
+ case "inventory" => Some((false, actor.inventory))
case "say" =>
val to = "to"
val recipient = modifiers.reverse.takeWhile(_ != ' ').reverse