|
@@ -102,7 +102,6 @@ def print_traits(file, lvl, baseclass):
|
|
file.write('physic_def=' + str(max(1, int(math.ceil(lvl * 0.75)))) + '\n')
|
|
file.write('physic_def=' + str(max(1, int(math.ceil(lvl * 0.75)))) + '\n')
|
|
|
|
|
|
|
|
|
|
-# -d D:\Honourihed\repo
|
|
|
|
|
|
|
|
|
|
|
|
def race_traits_fill(racename):
|
|
def race_traits_fill(racename):
|
|
@@ -128,9 +127,24 @@ def race_traits_fill(racename):
|
|
print(path + ' - FAILED!')
|
|
print(path + ' - FAILED!')
|
|
|
|
|
|
|
|
|
|
|
|
+# -d D:\Honourihed\repo
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+def create_folders(racename, folder_name):
|
|
|
|
+ path_to_race = path_to_game + '\\assets\\units\\' + racename
|
|
|
|
+ for class_dir in os.listdir(path=path_to_race):
|
|
|
|
+ if '.' not in class_dir:
|
|
|
|
+ new_path = path_to_race + '\\' + class_dir + '\\' + folder_name
|
|
|
|
+ if not os.path.exists(new_path):
|
|
|
|
+ os.mkdir(new_path)
|
|
|
|
+
|
|
|
|
+
|
|
def main():
|
|
def main():
|
|
- race_traits_fill('undead')
|
|
|
|
- race_traits_fill('human')
|
|
|
|
|
|
+ # race_traits_fill('undead')
|
|
|
|
+ # race_traits_fill('human')
|
|
|
|
+ create_folders('undead', 'sprites')
|
|
|
|
+ create_folders('human', 'sprites')
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
if __name__ == '__main__':
|