From b11c02e8f1f4dea09847da999c2acb2f96df8a58 Mon Sep 17 00:00:00 2001 From: Aleksi Heikkila Date: Sat, 23 Nov 2024 21:48:32 +0200 Subject: Inventory, pickup loppuun, drop loppuun --- src/scalevalapokalypsi/Model/Action.scala | 1 + 1 file changed, 1 insertion(+) (limited to 'src/scalevalapokalypsi/Model/Action.scala') 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 -- cgit v1.2.3