예제 #1
0
 def __init__(self, world, identifier, bulk, max_stack=1,
              start_stack=1, item_type=""):
     RPGEntity.__init__(self, world, identifier)
     self.containable.bulk = bulk
     self.containable.max_stack = max_stack
     self.containable.current_stack = start_stack
     self.containable.item_type = item_type
예제 #2
0
 def __init__(self, world, identifier):
     RPGEntity.__init__(self, world, identifier)
     self.char_stats.gender = "male"  # Initialize the char_stats component
예제 #3
0
 def __init__(self, world, identifier, bulk):
     RPGEntity.__init__(self, world, identifier)
     self.containable.bulk = bulk
예제 #4
0
 def __init__(self, world, identifier, max_bulk, max_slots):
     RPGEntity.__init__(self, world, identifier)
     self.container.max_bulk = max_bulk
     self.container.max_slots = max_slots
예제 #5
0
 def __init__(self, world, identifier, max_bulk, slots):
     RPGEntity.__init__(self, world, identifier)
     self.container.children = slots
     self.container.max_bulk = max_bulk