2 Komitmen 3825347185 ... ec16cfeb04

Pembuat SHA1 Pesan Tanggal
  Noath ec16cfeb04 It is conflict working 6 tahun lalu
  Noath 4ea963490c added sprites 6 tahun lalu

+ 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__':

TEMPAT SAMPAH
assets/units/human/human-archer/sprites/move.gif


TEMPAT SAMPAH
assets/units/human/human-archer/sprites/stand.gif


TEMPAT SAMPAH
assets/units/human/human-mage/sprites/move.gif


TEMPAT SAMPAH
assets/units/human/human-mage/sprites/stand.gif


TEMPAT SAMPAH
assets/units/human/human-rider/sprites/move.gif


TEMPAT SAMPAH
assets/units/human/human-rider/sprites/stand.gif


TEMPAT SAMPAH
assets/units/human/human-rogue/sprites/move.gif


TEMPAT SAMPAH
assets/units/human/human-rogue/sprites/stand.gif


TEMPAT SAMPAH
assets/units/human/human-warrior/sprites/move.gif


TEMPAT SAMPAH
assets/units/human/human-warrior/sprites/stand.gif


TEMPAT SAMPAH
assets/units/undead/undead-archer/sprites/move.gif


TEMPAT SAMPAH
assets/units/undead/undead-archer/sprites/stand.gif


TEMPAT SAMPAH
assets/units/undead/undead-mage/sprites/move.gif


TEMPAT SAMPAH
assets/units/undead/undead-mage/sprites/stand.gif


TEMPAT SAMPAH
assets/units/undead/undead-rider/sprites/move.gif


TEMPAT SAMPAH
assets/units/undead/undead-rider/sprites/stand.gif


TEMPAT SAMPAH
assets/units/undead/undead-rogue/sprites/move.gif


TEMPAT SAMPAH
assets/units/undead/undead-rogue/sprites/stand.gif


TEMPAT SAMPAH
assets/units/undead/undead-warrior/sprites/move.gif


TEMPAT SAMPAH
assets/units/undead/undead-warrior/sprites/stand.gif