Mercurial > pyntnclick
diff gamelib/scenes/machine.py @ 792:bdaffaa8b6bf pyntnclick
Loading and saving! (Plus a bunch of other stuff to make it possible.)
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sun, 27 Jan 2013 12:43:28 +0200 |
parents | a35f5364437d |
children | eed75a1d50c4 |
line wrap: on
line diff
--- a/gamelib/scenes/machine.py Sat Jan 26 20:29:58 2013 +0200 +++ b/gamelib/scenes/machine.py Sun Jan 27 12:43:28 2013 +0200 @@ -99,7 +99,7 @@ INITIAL = "empty" INITIAL_DATA = { - 'contents': set(), + 'contents': [], } def select_interact(self): @@ -122,7 +122,7 @@ if "can" in contents: return Result(_("There is already a can in the welder.")) self.game.remove_inventory_item(item.name) - contents.add("can") + contents.append("can") self.set_interact() return Result(_("You carefully place the can in the laser welder.")) @@ -131,7 +131,7 @@ if "tube" in contents: return Result(_("There is already a tube fragment in the welder.")) self.game.remove_inventory_item(item.name) - contents.add("tube") + contents.append("tube") self.set_interact() return Result(_("You carefully place the tube fragments in the" " laser welder.")) @@ -179,7 +179,7 @@ return Result(_("The laser welder needs something to weld the" " tube fragments to.")) else: - welder_slot.set_data("contents", set()) + welder_slot.set_data("contents", []) welder_slot.set_interact() if self.game.is_in_inventory("cryo_pipes_one"): self.game.replace_inventory_item("cryo_pipes_one",