2 Incheckningar 3825347185 ... ec16cfeb04

Upphovsman SHA1 Meddelande Datum
  Noath ec16cfeb04 It is conflict working 6 år sedan
  Noath 4ea963490c added sprites 6 år sedan

+ 17 - 3
assets/Filling traits.py

@@ -102,7 +102,6 @@ def print_traits(file, lvl, baseclass):
         file.write('physic_def=' + str(max(1, int(math.ceil(lvl * 0.75)))) + '\n')
 
 
-# -d D:\Honourihed\repo
 
 
 def race_traits_fill(racename):
@@ -128,9 +127,24 @@ def race_traits_fill(racename):
                         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():
-    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__':

BIN
assets/units/human/human-archer/sprites/move.gif


BIN
assets/units/human/human-archer/sprites/stand.gif


BIN
assets/units/human/human-mage/sprites/move.gif


BIN
assets/units/human/human-mage/sprites/stand.gif


BIN
assets/units/human/human-rider/sprites/move.gif


BIN
assets/units/human/human-rider/sprites/stand.gif


BIN
assets/units/human/human-rogue/sprites/move.gif


BIN
assets/units/human/human-rogue/sprites/stand.gif


BIN
assets/units/human/human-warrior/sprites/move.gif


BIN
assets/units/human/human-warrior/sprites/stand.gif


BIN
assets/units/undead/undead-archer/sprites/move.gif


BIN
assets/units/undead/undead-archer/sprites/stand.gif


BIN
assets/units/undead/undead-mage/sprites/move.gif


BIN
assets/units/undead/undead-mage/sprites/stand.gif


BIN
assets/units/undead/undead-rider/sprites/move.gif


BIN
assets/units/undead/undead-rider/sprites/stand.gif


BIN
assets/units/undead/undead-rogue/sprites/move.gif


BIN
assets/units/undead/undead-rogue/sprites/stand.gif


BIN
assets/units/undead/undead-warrior/sprites/move.gif


BIN
assets/units/undead/undead-warrior/sprites/stand.gif