Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class OOC_Workshop(Room):
- def at_object_creation(self):
- self.db.desc = ("This small workshop has all the basic amenities required "
- "for creating a fresh body.")
- portal_room = create_object(typeclass="typeclasses.rooms.OOC_Room",
- key="Portal Room")
- # Make exits connecting the Portal Room with the Workshop
- exit_to_portal_room = create_object(typeclass="typeclasses.exits.Exit",
- key="north", aliases="n", destination=portal_room,
- location=self, home=self)
- exit_to_workshop = create_object(typeclass="typeclasses.exits.Exit",
- key="south", aliases="s", destination=self,
- location=portal_room, home=portal_room)
- # Connect the portal room to the Common Room
- common_room = search_object("Common Room")
- print(f"{'Common Room found!' if common_room else 'Common Room NOT found!'}")
- exit_to_common_room = create_object(typeclass="typeclasses.exits.Exit",
- key="north", aliases="n", destination=common_room[0],
- location=portal_room, home=portal_room)
- print(f"{'Exit to common room created!' if exit_to_common_room else 'Exit to common room NOT created!'}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement