示例#1
0
 def __init__(self, description="", reg=None, *args, **kwargs):
     from region import Node
     Thing.__init__(self, *args, **kwargs)
     self.reg = reg
     self.map_node: Optional[Node] = None
     self.traits.add(trait.location())
     self.description = description
示例#2
0
 def generate_items(self):
     # self.reg.make_boss(location=self)
     d = self.decor_dict
     d["bed"] = Thing(
         location=self,
         names=["wooden bed", "bed"],
     )
     d["curtains"] = Item(
         location=self,
         names=["bead curtains", "curtains"],
     )
示例#3
0
 def generate_items(self):
     d = self.decor_dict
     d["bedroll"] = Thing(self, "bedroll")
     d["lamp"] = Item(self, Name("lamp", "lamp lantern"))
示例#4
0
 def generate_items(self):
     d = self.decor_dict
     d["table"] = Thing(self, "table")
     d["crate"] = Thing(self, Name("stool", "stool crate cushion bag"))
示例#5
0
 def generate_items(self):
     d = self.decor_dict
     d["table"] = Thing(location=self, names=["table"])
     d["scraps"] = Item(location=self, names=["scraps", "debris"])
示例#6
0
 def generate_items(self):
     d = self.decor_dict
     d["beds"] = Thing(location=self, name="bed", othernames=["beds"])
示例#7
0
 def generate_items(self):
     d = self.decor_dict
     d["bones"] = Item(location=self, name="bones")
     d["chest"] = Item(location=self, name="chest")
     d["chest"].price = 1500
     d["pedestal"] = Thing(location=self, name="pedestal")
示例#8
0
 def generate_items(self):
     for item_name in self.basic_items:
         self.decor_dict[item_name] = Item(location=self, name=item_name)
     for thing_name in self.basic_things:
         self.decor_dict[thing_name] = Thing(location=self, name=thing_name)