From 4dceb0750626069db7854bfb801444d623379239 Mon Sep 17 00:00:00 2001 From: Joshua Murphy Date: Thu, 16 Jul 2020 01:24:04 -0500 Subject: [PATCH] Fixed container.rb definition Fixed an issue with the container definition causing creating a new container to create it with the goid of the room it's in, breaking the game. --- objects/container.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objects/container.rb b/objects/container.rb index 69fcbdc..25fddc1 100644 --- a/objects/container.rb +++ b/objects/container.rb @@ -7,7 +7,7 @@ class Container < GameObject include HasInventory #Create new container. Capacity is unlimited if unset. - def initialize(capacity = nil, *args) + def initialize(*args, capacity: nil) super(*args) @generic = "container"