From 883f2a7eea8ef54ac32bf52cb322182a21095bab Mon Sep 17 00:00:00 2001 From: Maximilien Rigaut Date: Thu, 18 Jul 2019 22:25:54 +0200 Subject: [PATCH] Changed a couple of values & Changed the diff generator --- Helpers/Changes/19-07-18-22-29.html | 67 +++++++++++++++++++++++++++++ Helpers/Changes/latest.html | 2 +- Helpers/Characters/God.ini | 4 +- Helpers/Characters/voile.ini | 6 +-- Helpers/macro.py | 13 +++--- 5 files changed, 81 insertions(+), 11 deletions(-) create mode 100644 Helpers/Changes/19-07-18-22-29.html diff --git a/Helpers/Changes/19-07-18-22-29.html b/Helpers/Changes/19-07-18-22-29.html new file mode 100644 index 0000000..05febb9 --- /dev/null +++ b/Helpers/Changes/19-07-18-22-29.html @@ -0,0 +1,67 @@ + + + + + + + + +
+diff --git a/Helpers/Characters/God.ini b/Helpers/Characters/God.ini
+index 90b4f79..3a7d99f 100644
+--- a/Helpers/Characters/God.ini
++++ b/Helpers/Characters/God.ini
+@@ -69,12 +69,12 @@
+    b_iresanglante_dmg=30
+    b_brumesang_value=20
+    b_torrentpourpre_abysse=
+    b_torrentpourpre_souffrance=2
+    b_torrentpourpre_sang=5
+    b_soifimpie_rgn=2
+    d_soif_heal=2b_soifimpie_rgn=6
+    d_soif_heal=10
+    b_foudresang_init=9
+    b_bainsang_act=2
+
+[Characters/frene.ini]
+    #TOUT faire dependre des affinitée
+diff --git a/Helpers/Characters/voile.ini b/Helpers/Characters/voile.ini
+index eea45fd..55e66aa 100644
+--- a/Helpers/Characters/voile.ini
++++ b/Helpers/Characters/voile.ini
+@@ -1,8 +1,8 @@
+[DEFAULT]
+    momentum = @{Voile|momentum}    # Niveau actuel du momentum
+    momentum_max = @{Voile|repeating_skills_-Lk0MZh88yaOnxpRaacq_general_skilllevel}@{Voile|repeating_skills_-Lk0MZh88yaOnxpRaacq_general_skilllevel}*10    # Niveau maximum du momentum
+    harmony = @{Voile|harmony}  # ADD STACKS
+    harmony_max = @{Voile|repeating_skills_-Lk0LDt03hSUUtdwbzLV_general_skilllevel} # Compétence d'harmonie
+    blood_g=@{blood_gate}       # Niveau actuel de la jauge
+    suffer_g=@{suffering_gate}  # Niveau actuel de la jauge
+    abyss_g=@{abyss_gate}       # Niveau actuel de la jauge
+@@ -20,11 +20,11 @@
+[harmony]
+    level=Ultime
+    type = Reserve/Passif
+    display_name=Harmony
+    cost=8
+    X=X=@{Voile|repeating_skills_-Lk0LDt03hSUUtdwbzLV_general_skilllevel}
+    description=Les points d’harmonie se gagnent au cours d’une longue méditation.
+        A hauteur de {harmony_charge} de méditation, et peuvent servir de coût à certaines techniques majeures.
+        Les points d'harmonie donnent un bonus passif a la discrétion, l'initiative et aux techniques de résistance mentale et de perception.
+    self=Vous atteignez un niveau d'harmonie de {harmony},
+            Voile obtiens un bonus de +{b_harmony}*{harmony} point a l’initiative et aux actions de perception
+@@ -209,11 +209,11 @@
+[Souffle de sang]
+    level=Mineure
+    display_name=Souffle De Sang
+    type=Actif/Instant/Empower
+    X = @{Voile|repeating_magic-vital-skills_-Lk0IuscZnLZGW3GnEx0_magic_vital_skilllevel}
+    cost=2cost=4
+    description=Consomme {b_souffle_de_sang_charge_level} points de la Porte de Souffrance
+        Votre prochaine attaque gagne un Fauchage
+    self=Votre prochaine attaque peut toucher jusqu'a {X} cibles supplémentaires sans malus, elle obeit aux regles de fauchage.
+    others= La souffrance canalisée en une lame éthérée, tranchant tout sur son passage
+    special =
+
+ + diff --git a/Helpers/Changes/latest.html b/Helpers/Changes/latest.html index b61340e..cb032a9 100644 --- a/Helpers/Changes/latest.html +++ b/Helpers/Changes/latest.html @@ -1 +1 @@ -Redirect \ No newline at end of file +Redirect \ No newline at end of file diff --git a/Helpers/Characters/God.ini b/Helpers/Characters/God.ini index 90b4f79..3a7d99f 100644 --- a/Helpers/Characters/God.ini +++ b/Helpers/Characters/God.ini @@ -71,8 +71,8 @@ b_torrentpourpre_abysse= b_torrentpourpre_souffrance=2 b_torrentpourpre_sang=5 - b_soifimpie_rgn=2 - d_soif_heal=2 + b_soifimpie_rgn=6 + d_soif_heal=10 b_foudresang_init=9 b_bainsang_act=2 diff --git a/Helpers/Characters/voile.ini b/Helpers/Characters/voile.ini index eea45fd..55e66aa 100644 --- a/Helpers/Characters/voile.ini +++ b/Helpers/Characters/voile.ini @@ -1,6 +1,6 @@ [DEFAULT] momentum = @{Voile|momentum} # Niveau actuel du momentum - momentum_max = @{Voile|repeating_skills_-Lk0MZh88yaOnxpRaacq_general_skilllevel} # Niveau maximum du momentum + momentum_max = @{Voile|repeating_skills_-Lk0MZh88yaOnxpRaacq_general_skilllevel}*10 # Niveau maximum du momentum harmony = @{Voile|harmony} # ADD STACKS harmony_max = @{Voile|repeating_skills_-Lk0LDt03hSUUtdwbzLV_general_skilllevel} # Compétence d'harmonie blood_g=@{blood_gate} # Niveau actuel de la jauge @@ -22,7 +22,7 @@ type = Reserve/Passif display_name=Harmony cost=8 - X= + X=@{Voile|repeating_skills_-Lk0LDt03hSUUtdwbzLV_general_skilllevel} description=Les points d’harmonie se gagnent au cours d’une longue méditation. A hauteur de {harmony_charge} de méditation, et peuvent servir de coût à certaines techniques majeures. Les points d'harmonie donnent un bonus passif a la discrétion, l'initiative et aux techniques de résistance mentale et de perception. @@ -211,7 +211,7 @@ display_name=Souffle De Sang type=Actif/Instant/Empower X = @{Voile|repeating_magic-vital-skills_-Lk0IuscZnLZGW3GnEx0_magic_vital_skilllevel} - cost=2 + cost=4 description=Consomme {b_souffle_de_sang_charge_level} points de la Porte de Souffrance Votre prochaine attaque gagne un Fauchage self=Votre prochaine attaque peut toucher jusqu'a {X} cibles supplémentaires sans malus, elle obeit aux regles de fauchage. diff --git a/Helpers/macro.py b/Helpers/macro.py index e0afd3e..f468be8 100755 --- a/Helpers/macro.py +++ b/Helpers/macro.py @@ -17,8 +17,9 @@ verbose=False def dprint(text): if verbose: print(text) - +notrash_chars=["exemple.ini"] reserved_chars=["exemple.ini","God.ini"] + errors={ "notfound":term.red("[Error] Couldn't find {char} in the Character directory"), "sectionnotfound":term.red("[Error] Coulnd't find section {section} in {where}"), @@ -100,7 +101,7 @@ def varnames(e): def diff(characters,output,version): import datetime - chars,names=get_char(characters) + chars,names=get_char(characters,all=True) if len(chars)==0: dprint(errors["notfound"].format(char="any character")) return @@ -119,9 +120,9 @@ def diff(characters,output,version): with open(join(output,"latest.html"),"w") as file: file.write('Redirect'.format(date)) -def get_char(names): +def get_char(names,all=False): if names[0]=="all": - return get_all_chars() + return get_all_chars(all=all) char,rnames=[],[] for n in names: c=join("Characters", n+".ini") @@ -132,7 +133,9 @@ def get_char(names): dprint(errors["notfound"].format(char=c)) return char,rnames -def get_all_chars(): +def get_all_chars(all): + if all: + reserved_chars=notrash_chars names=[f for f in listdir("Characters") if (f not in reserved_chars and isfile(join("Characters", f)))] return [join("Characters", f) for f in names],[n[:-4] for n in names] # MOAR BLOBSHITCODING