Beispiel #1
0
 def __init__(self):
     self.ITEMS = DataManager("data/item/items.p")
     self.BASE_ITEMS = DataManager("data/item/base_items.p")
     self.RARE_ATTRIBUTES = DataManager(
         "data/item/attributes/rare_attributes.p")
     self.LEGENDARY_ATTRIBUTES = DataManager(
         "data/item/attributes/legendary_attributes.p")
     self.UNIQUE_ATTRIBUTES = DataManager(
         "data/item/attributes/unique_attributes.p")
Beispiel #2
0
 def __init__(self):
     super().__init__("data/monster.p")
     self.attribute = DataManager("data/monster_attributes.p")
Beispiel #3
0
 def setUp(self):
     self.dm = DataManager("tests/game/serialize/data/data_test.p")
Beispiel #4
0
 def test_reference(self):
     """Determine if the reference is the same"""
     dm2 = DataManager("tests/game/serialize/data/data_test.p")
     self.assertIs(self.dm.get(), dm2.get())