name_of_room = getattr(self.current_location, direction) return globals()[name_of_room] # Option 2 - set all at once, modify controller # Objects # Weapons rapier1 = Objects.Rapier() dullsword1 = Objects.DullSword() broadsword1 = Objects.BroadSword() crysknife1 = Objects.CrysKnife() rapier2 = Objects.Rapier() dummy1 = Objects.Dummy() full_shield1 = Objects.FullShield() life1 = Objects.Life() atomic1 = Objects.Bow() lasgun1 = Objects.Lasgun() needle1 = Objects.Needle() crysknife2 = Objects.CrysKnife() broadsword2 = Objects.BroadSword() dullsword2 = Objects.DullSword() wood_sword1 = Objects.WoodSword() rapier3 = Objects.Rapier() tooth1 = Objects.Tooth # Armor half_shield1 = Objects.HalfShield half_shield2 = Objects.HalfShield quart_shield2 = Objects.QuartShield quart_shield1 = Objects.QuartShield() # Food chicken1 = Objects.Chicken()