diff options
author | Aleksi Heikkila <aleksi.e.heikkila@aalto.fi> | 2024-11-23 21:48:32 +0200 |
---|---|---|
committer | Aleksi Heikkila <aleksi.e.heikkila@aalto.fi> | 2024-11-23 21:48:32 +0200 |
commit | b11c02e8f1f4dea09847da999c2acb2f96df8a58 (patch) | |
tree | 9ded38857c98ec74a5917202afe0605ddf0310b3 /src/scalevalapokalypsi/Model/Action.scala | |
parent | fe2543627bcec1ea0f7a429bede20ca293458ba9 (diff) | |
download | scalevalapokalypsi-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.scala | 1 |
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 |