Loading GamePackage/GameAchievement/manager.py +2 −2 Changes for GamePackage/GameAchievement/manager.py: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -15,11 +15,11 @@ sys.path.append(os.path.abspath('./')) # sys.path.append('/Users/zhongmuyao/Library/Mobile Documents/com~apple~CloudDocs/Project.nosync/python3/pygengin') from GamePackage.GameConfig.manager import * from GamePackage.GameBase.base import Base from GamePackage.GameData.datatools import DataManager from GamePackage.GameData.manager import DataManager import time,json def get_achievement_data(): c=Configer() c=ConfigeManager() return c.get_option('achievement_data') class AchieveManager(Base): Loading GamePackage/GameConfig/manager.py +2 −2 Changes for GamePackage/GameConfig/manager.py: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ sys.path.append(os.path.abspath('./')) class Configer: class ConfigeManager: def __init__(self,config_path='GamePackage/GameConfig/option.json'): with open(config_path,'r') as f: self.config_json=json.load(f) Loading @@ -22,6 +22,6 @@ class Configer: return self.config_json['database'] if __name__ == '__main__': c=Configer() c=ConfigeManager() print(c.get_option('GameEngin')) pass GamePackage/GameData/achv.json +2 −2 Changes for GamePackage/GameData/achv.json: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ "name": "First Glimps", "describe": "Some Description", "timestamp": 1636488110.235156, "level": 0, "hardness": 0, "icon0": "", "icon1": "", "next": [], Loading @@ -19,7 +19,7 @@ "name": "Game Experience", "describe": "Enjoy your game", "timestamp": "", "level": 1, "hardness": 1, "icon0": "", "icon1": "", "next": [], Loading GamePackage/GameData/equipment.json 0 → 100644 +82 −0 Changes for GamePackage/GameData/equipment.json: 82 added lines, 0 removed lines. Original line number Diff line number Diff line { "armor_class": { "helmet": [{}], "cloth": [{}], "trousers": [{}], "gloves": [{}], "ring": [{}], "bracer": [{}], "shoes": [{}], "necklace": [{}], "earrings": [{}], "accessories": [{}] }, "armor": [{ "index": 0, "name": "King's helmet", "Describe": "Used by the first King of Europ.", "class": "helmet" }], "weapon": [{ "index": 0, "info": { "name": "Sant Sword", "Describe": "The sword used for create the world!", "class": "sword" }, "attr": { "attk": [100, 150], "str": 10, "alg": 10, "int": 10, "crit_prob": 10, "crit_time": 2.5 }, "effect": { "slow": 25, "slience": 3, "stone": 2, "poison": [24, 32], "curse": [32, 21] }, "set_effect": { "set_index": [1, 2, 3, 4, 5, 6], "set2": { "describe": "health!", "effect": { "heal": 32 } }, "set4": { "describe": "attack them!", "effect": { "attack": 50 } }, "set6": { "describe": "no animy!", "effect": { "armor": 50 } } }, "require": { "level": 10, "proficiency": 100, "str": 50, "achv": 5 } }], "weapon_class": { "sword": [{}], "bow": [], "wand": [], "knife": [], "hammer": [], "axe": [], "spear": [] } } No newline at end of file GamePackage/GameData/datatools.py→GamePackage/GameData/manager.py +0 −0 File moved. View file Loading
GamePackage/GameAchievement/manager.py +2 −2 Changes for GamePackage/GameAchievement/manager.py: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -15,11 +15,11 @@ sys.path.append(os.path.abspath('./')) # sys.path.append('/Users/zhongmuyao/Library/Mobile Documents/com~apple~CloudDocs/Project.nosync/python3/pygengin') from GamePackage.GameConfig.manager import * from GamePackage.GameBase.base import Base from GamePackage.GameData.datatools import DataManager from GamePackage.GameData.manager import DataManager import time,json def get_achievement_data(): c=Configer() c=ConfigeManager() return c.get_option('achievement_data') class AchieveManager(Base): Loading
GamePackage/GameConfig/manager.py +2 −2 Changes for GamePackage/GameConfig/manager.py: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ sys.path.append(os.path.abspath('./')) class Configer: class ConfigeManager: def __init__(self,config_path='GamePackage/GameConfig/option.json'): with open(config_path,'r') as f: self.config_json=json.load(f) Loading @@ -22,6 +22,6 @@ class Configer: return self.config_json['database'] if __name__ == '__main__': c=Configer() c=ConfigeManager() print(c.get_option('GameEngin')) pass
GamePackage/GameData/achv.json +2 −2 Changes for GamePackage/GameData/achv.json: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ "name": "First Glimps", "describe": "Some Description", "timestamp": 1636488110.235156, "level": 0, "hardness": 0, "icon0": "", "icon1": "", "next": [], Loading @@ -19,7 +19,7 @@ "name": "Game Experience", "describe": "Enjoy your game", "timestamp": "", "level": 1, "hardness": 1, "icon0": "", "icon1": "", "next": [], Loading
GamePackage/GameData/equipment.json 0 → 100644 +82 −0 Changes for GamePackage/GameData/equipment.json: 82 added lines, 0 removed lines. Original line number Diff line number Diff line { "armor_class": { "helmet": [{}], "cloth": [{}], "trousers": [{}], "gloves": [{}], "ring": [{}], "bracer": [{}], "shoes": [{}], "necklace": [{}], "earrings": [{}], "accessories": [{}] }, "armor": [{ "index": 0, "name": "King's helmet", "Describe": "Used by the first King of Europ.", "class": "helmet" }], "weapon": [{ "index": 0, "info": { "name": "Sant Sword", "Describe": "The sword used for create the world!", "class": "sword" }, "attr": { "attk": [100, 150], "str": 10, "alg": 10, "int": 10, "crit_prob": 10, "crit_time": 2.5 }, "effect": { "slow": 25, "slience": 3, "stone": 2, "poison": [24, 32], "curse": [32, 21] }, "set_effect": { "set_index": [1, 2, 3, 4, 5, 6], "set2": { "describe": "health!", "effect": { "heal": 32 } }, "set4": { "describe": "attack them!", "effect": { "attack": 50 } }, "set6": { "describe": "no animy!", "effect": { "armor": 50 } } }, "require": { "level": 10, "proficiency": 100, "str": 50, "achv": 5 } }], "weapon_class": { "sword": [{}], "bow": [], "wand": [], "knife": [], "hammer": [], "axe": [], "spear": [] } } No newline at end of file