Addentum of Voile character and generation of the html of the char
This commit is contained in:
parent
62c46fa0ad
commit
84539f5cb6
|
|
@ -1,4 +1,4 @@
|
|||
[Base]
|
||||
[DEFAULT]
|
||||
fo = (@{base-Force}+@{exal-Force})
|
||||
ag = (@{base-Agilite}+@{exal-Agilite})
|
||||
pe = (@{base-Perception}+@{exal-Perception})
|
||||
|
|
@ -9,5 +9,5 @@
|
|||
cn = (@{base-Chance}+@{exal-Chance})
|
||||
sp = (@{base-special}+@{exal-special})
|
||||
[Type]
|
||||
big = changes
|
||||
[God]
|
||||
|
||||
[harmony]
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
[Sceau du Phenix]
|
||||
level = Ultime
|
||||
display_name = Sceau du Phénix
|
||||
description = a
|
||||
self =n
|
||||
others = n
|
||||
_vars =n
|
||||
macro = changes
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
description = Description pour dev/balance/concept
|
||||
self = Message complet pour l'utilisateur lors de l'utilisation
|
||||
others = Message complet pour les autres lors de l'utilisation
|
||||
_var = Valeur de la variable {{var}} * 77
|
||||
var = Valeur de la variable {{var}}
|
||||
macro = Macro propre de la technique, avec tout les setvars
|
||||
special = Détails a prendre en compte,
|
||||
les variables importantes, les stacks. (Notes pour la balance)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,104 @@
|
|||
[DEFAULT]
|
||||
momentum = @{momentum_level}
|
||||
|
||||
[harmony]
|
||||
level=Ultime
|
||||
display_name=Harmony
|
||||
X = @{harmony_level}
|
||||
Y = ?
|
||||
description=Les points d’harmonie se gagnent au cours d’une longue méditation.
|
||||
typiquement 1 par jour/semaine/mois de méditation, et peuvent servir de coût à certaines techniques
|
||||
majeures, Avoir des points d’harmonie donne des bonus à la discrétion, a l’initiative,
|
||||
a la plupart des actions de déplacement, de perception et de volonté.
|
||||
self=L’harmony atteint {X} stack, offrant un bonus de +{Y} point a l’initiative et aux actions de perception
|
||||
others=
|
||||
special = Système de stack augmentant hors combat et diminuant lors de l’utilisation active des techniques liées.
|
||||
(possiblement regrouper l’ensemble des bonus passif sur une seule commande?)
|
||||
macro =
|
||||
|
||||
[shadow_har]
|
||||
level=Avancée
|
||||
display_name=Harmony Of Shadow
|
||||
X = @{shadow_har_level}
|
||||
description=Passif - Augmente la discrétion, et rend le ciblages plus difficiles.
|
||||
Actif - Augmente pendant un cours instant la conscience de son environnement,
|
||||
permettant de révéler la vrai nature des adversaire et objets dans le champ de perception.
|
||||
self=Vous perdez un point d’harmony, L’harmony atteint {X} stack.
|
||||
others=L’intense concentration de Voile lui permet de percer les secrets dissimulés
|
||||
special= L’effet du passif dépend du nombre de stack d’Harmony, l’activation de l’actif diminue le stack d’un point.
|
||||
|
||||
[wind_har]
|
||||
level=Avancée
|
||||
display_name=Harmony Of Wind
|
||||
description=Passif - Augmente le nombre d’action et rend les attaques d’opportunités plus difficiles
|
||||
Actif - Permet de se désengager d’une attaque magique ou physique et un replacer gratuitement. Compte comme une esquive totale de l’attaque.
|
||||
self=
|
||||
others=Pendant un cours instant, Voile disparaît
|
||||
L’attaque frappe dans le vide
|
||||
special = L’effet du passif dépend du nombre de stack d’Harmony, l’activation de l’actif diminue le stack d’un point.
|
||||
|
||||
[water_har]
|
||||
level=Avancée
|
||||
display_name=Harmony Of Water
|
||||
self=
|
||||
description=Passif - Certaines contraintes physiques (frottement vent, courant gravité, résistance des matériaux…)
|
||||
sont moins limitants pour les actions du personnage,
|
||||
limitant les malus que le terrain peut imposer et facilitant les actions de mouvements.
|
||||
Actif - Amplifie cet effet pendant un court instant, permettant d’effectuer des action défiant la physique comme courir sur l’eau ou traverser un mur.
|
||||
others=
|
||||
special = L’effet du passif dépend du nombre de stack d’Harmony, l’activation de l’actif diminue le stack d’un point.
|
||||
|
||||
[metal_har]
|
||||
level=Avancée
|
||||
display_name=Harmony Of Metal
|
||||
description=Passif: Augmente la résistance mentale et la capacité à rester stoïque quelle que soit la situation, rendant difficile la lecture de son langage corporel.
|
||||
Actif: Permet d'atténuer les effets néfastes appliqués sur l’esprit.
|
||||
self=
|
||||
others=L’esprit se renforce, repoussant les effets déléteres...
|
||||
special= L’effet du passif dépend du nombre de stack d’Harmony, l’activation de l’actif diminue le stack d’un point.
|
||||
|
||||
[momentum]
|
||||
level=Ultime
|
||||
display_name=Momentum
|
||||
Y=?
|
||||
X=?
|
||||
description=Les Points de Momentum, se gagne activement au cours d’un combat, en fonction du nombre d’attaques parades ou esquives effectuées dans le tour.
|
||||
Chaque stack de momentum donne un petit bonus à l’esquive, la parade, à l’attaque,
|
||||
à la charge, au nombre d’action dans le tour, mais aussi à certaines actions comme la course,
|
||||
l’acrobatie ou le saut, représentant le momentum progressivement gagné par le personnage.
|
||||
Tant que le personnage a du momentum, il est particulièrement difficile de porter des attaques d’opportunités contre lui.
|
||||
self=Le momentum augmente, donnant un bonus de {X}*{momentum} a l’esquive, parade, attaque et charge, et augmentant le nombre d’action de {Y}*{momentum}
|
||||
others=
|
||||
special = Système de stack augmentant en combat et diminuant lors de l’utilisation active des techniques liées.
|
||||
|
||||
[impact]
|
||||
level=Majeur
|
||||
display_name=Impact
|
||||
X=@{impact_level}
|
||||
Y=?
|
||||
description=Dépense l’ensemble du momentum dans une charge durant une action complète.
|
||||
La puissance de l’impact fracture le sol et inflige de lourds dégâts aux
|
||||
adversaires dans une large zone dépendant du nombre de points de momentum consumés
|
||||
self=Le momentum est reset
|
||||
others=L’impact cible une zone sur {X}*{momentum} mètres infligeant {Y}*{momentum} dégâts bonus à l’attaque
|
||||
special= Système de stack augmentant en combat et diminuant lors de l’utilisation active des techniques liées.
|
||||
|
||||
[adagio]
|
||||
level=Majeur
|
||||
display_name=Adagio
|
||||
X=?
|
||||
Y=?
|
||||
description=Chaque attaque contre un adversaire différent augmente le momentum
|
||||
self=Le momentum augmente, donnant un bonus de {X}*{momentum} a l’esquive, parade, attaque et charge, et augmentant le nombre d’action de {Y}*{momentum}
|
||||
others=
|
||||
special = Système de stack augmentant en combat et diminuant lors de l’utilisation active des techniques liées.
|
||||
|
||||
[tempo_martial]
|
||||
level=Ultime
|
||||
display_name=Tempo Martial
|
||||
X=@{tempo_martial_level}
|
||||
Y=?
|
||||
description=En consommant ? action, l’effet de la prochaine action physique est Amélioré de {X} degrés ou {Y} dégats/parade/esquive
|
||||
self=En consommant ? action, l’effet de la prochaine action physique est Amélioré de {X} degrés ou {Y} dégats/parade/esquive
|
||||
others=L’effet de la prochaine action physique est Amélioré de {X} degrés ou {Y} dégats/parade/esquive
|
||||
special =
|
||||
|
|
@ -0,0 +1,288 @@
|
|||
pre { white-space: pre-wrap; }
|
||||
.ef0,.f0 { color: #000000; } .eb0,.b0 { background-color: #000000; }
|
||||
.ef1,.f1 { color: #CD0000; } .eb1,.b1 { background-color: #CD0000; }
|
||||
.ef2,.f2 { color: #00CD00; } .eb2,.b2 { background-color: #00CD00; }
|
||||
.ef3,.f3 { color: #CDCD00; } .eb3,.b3 { background-color: #CDCD00; }
|
||||
.ef4,.f4 { color: #0000EE; } .eb4,.b4 { background-color: #0000EE; }
|
||||
.ef5,.f5 { color: #CD00CD; } .eb5,.b5 { background-color: #CD00CD; }
|
||||
.ef6,.f6 { color: #00CDCD; } .eb6,.b6 { background-color: #00CDCD; }
|
||||
.ef7,.f7 { color: #E5E5E5; } .eb7,.b7 { background-color: #E5E5E5; }
|
||||
.ef8, .f0 > .bold,.bold > .f0 { color: #7F7F7F; font-weight: bold; font-size: 1.1em; }
|
||||
.ef9, .f1 > .bold,.bold > .f1 { color: #FF0000; font-weight: bold; font-size: 1.1em;}
|
||||
.ef10,.f2 > .bold,.bold > .f2 { color: #00FF00; font-weight: bold; font-size: 1.1em;}
|
||||
.ef11,.f3 > .bold,.bold > .f3 { color: #FFFF00; font-weight: bold; font-size: 1.1em;}
|
||||
.ef12,.f4 > .bold,.bold > .f4 { color: #0000EE; font-weight: bold; font-size: 1.1em;}
|
||||
.ef13,.f5 > .bold,.bold > .f5 { color: #FF00FF; font-weight: bold; font-size: 1.1em;}
|
||||
.ef14,.f6 > .bold,.bold > .f6 { color: #00FFFF; font-weight: bold; font-size: 1.1em;}
|
||||
.ef15,.f7 > .bold,.bold > .f7 { color: #FFFFFF; font-weight: bold; font-size: 1.1em;}
|
||||
.eb8 { background-color: #7F7F7F; }
|
||||
.eb9 { background-color: #FF0000; }
|
||||
.eb10 { background-color: #00FF00; }
|
||||
.eb11 { background-color: #FFFF00; }
|
||||
.eb12 { background-color: #5C5CFF; }
|
||||
.eb13 { background-color: #FF00FF; }
|
||||
.eb14 { background-color: #00FFFF; }
|
||||
.eb15 { background-color: #FFFFFF; }
|
||||
.ef16 { color: #000000; } .eb16 { background-color: #000000; }
|
||||
.ef17 { color: #00005f; } .eb17 { background-color: #00005f; }
|
||||
.ef18 { color: #000087; } .eb18 { background-color: #000087; }
|
||||
.ef19 { color: #0000af; } .eb19 { background-color: #0000af; }
|
||||
.ef20 { color: #0000d7; } .eb20 { background-color: #0000d7; }
|
||||
.ef21 { color: #0000ff; } .eb21 { background-color: #0000ff; }
|
||||
.ef22 { color: #005f00; } .eb22 { background-color: #005f00; }
|
||||
.ef23 { color: #005f5f; } .eb23 { background-color: #005f5f; }
|
||||
.ef24 { color: #005f87; } .eb24 { background-color: #005f87; }
|
||||
.ef25 { color: #005faf; } .eb25 { background-color: #005faf; }
|
||||
.ef26 { color: #005fd7; } .eb26 { background-color: #005fd7; }
|
||||
.ef27 { color: #005fff; } .eb27 { background-color: #005fff; }
|
||||
.ef28 { color: #008700; } .eb28 { background-color: #008700; }
|
||||
.ef29 { color: #00875f; } .eb29 { background-color: #00875f; }
|
||||
.ef30 { color: #008787; } .eb30 { background-color: #008787; }
|
||||
.ef31 { color: #0087af; } .eb31 { background-color: #0087af; }
|
||||
.ef32 { color: #0087d7; } .eb32 { background-color: #0087d7; }
|
||||
.ef33 { color: #0087ff; } .eb33 { background-color: #0087ff; }
|
||||
.ef34 { color: #00af00; } .eb34 { background-color: #00af00; }
|
||||
.ef35 { color: #00af5f; } .eb35 { background-color: #00af5f; }
|
||||
.ef36 { color: #00af87; } .eb36 { background-color: #00af87; }
|
||||
.ef37 { color: #00afaf; } .eb37 { background-color: #00afaf; }
|
||||
.ef38 { color: #00afd7; } .eb38 { background-color: #00afd7; }
|
||||
.ef39 { color: #00afff; } .eb39 { background-color: #00afff; }
|
||||
.ef40 { color: #00d700; } .eb40 { background-color: #00d700; }
|
||||
.ef41 { color: #00d75f; } .eb41 { background-color: #00d75f; }
|
||||
.ef42 { color: #00d787; } .eb42 { background-color: #00d787; }
|
||||
.ef43 { color: #00d7af; } .eb43 { background-color: #00d7af; }
|
||||
.ef44 { color: #00d7d7; } .eb44 { background-color: #00d7d7; }
|
||||
.ef45 { color: #00d7ff; } .eb45 { background-color: #00d7ff; }
|
||||
.ef46 { color: #00ff00; } .eb46 { background-color: #00ff00; }
|
||||
.ef47 { color: #00ff5f; } .eb47 { background-color: #00ff5f; }
|
||||
.ef48 { color: #00ff87; } .eb48 { background-color: #00ff87; }
|
||||
.ef49 { color: #00ffaf; } .eb49 { background-color: #00ffaf; }
|
||||
.ef50 { color: #00ffd7; } .eb50 { background-color: #00ffd7; }
|
||||
.ef51 { color: #00ffff; } .eb51 { background-color: #00ffff; }
|
||||
.ef52 { color: #5f0000; } .eb52 { background-color: #5f0000; }
|
||||
.ef53 { color: #5f005f; } .eb53 { background-color: #5f005f; }
|
||||
.ef54 { color: #5f0087; } .eb54 { background-color: #5f0087; }
|
||||
.ef55 { color: #5f00af; } .eb55 { background-color: #5f00af; }
|
||||
.ef56 { color: #5f00d7; } .eb56 { background-color: #5f00d7; }
|
||||
.ef57 { color: #5f00ff; } .eb57 { background-color: #5f00ff; }
|
||||
.ef58 { color: #5f5f00; } .eb58 { background-color: #5f5f00; }
|
||||
.ef59 { color: #5f5f5f; } .eb59 { background-color: #5f5f5f; }
|
||||
.ef60 { color: #5f5f87; } .eb60 { background-color: #5f5f87; }
|
||||
.ef61 { color: #5f5faf; } .eb61 { background-color: #5f5faf; }
|
||||
.ef62 { color: #5f5fd7; } .eb62 { background-color: #5f5fd7; }
|
||||
.ef63 { color: #5f5fff; } .eb63 { background-color: #5f5fff; }
|
||||
.ef64 { color: #5f8700; } .eb64 { background-color: #5f8700; }
|
||||
.ef65 { color: #5f875f; } .eb65 { background-color: #5f875f; }
|
||||
.ef66 { color: #5f8787; } .eb66 { background-color: #5f8787; }
|
||||
.ef67 { color: #5f87af; } .eb67 { background-color: #5f87af; }
|
||||
.ef68 { color: #5f87d7; } .eb68 { background-color: #5f87d7; }
|
||||
.ef69 { color: #5f87ff; } .eb69 { background-color: #5f87ff; }
|
||||
.ef70 { color: #5faf00; } .eb70 { background-color: #5faf00; }
|
||||
.ef71 { color: #5faf5f; } .eb71 { background-color: #5faf5f; }
|
||||
.ef72 { color: #5faf87; } .eb72 { background-color: #5faf87; }
|
||||
.ef73 { color: #5fafaf; } .eb73 { background-color: #5fafaf; }
|
||||
.ef74 { color: #5fafd7; } .eb74 { background-color: #5fafd7; }
|
||||
.ef75 { color: #5fafff; } .eb75 { background-color: #5fafff; }
|
||||
.ef76 { color: #5fd700; } .eb76 { background-color: #5fd700; }
|
||||
.ef77 { color: #5fd75f; } .eb77 { background-color: #5fd75f; }
|
||||
.ef78 { color: #5fd787; } .eb78 { background-color: #5fd787; }
|
||||
.ef79 { color: #5fd7af; } .eb79 { background-color: #5fd7af; }
|
||||
.ef80 { color: #5fd7d7; } .eb80 { background-color: #5fd7d7; }
|
||||
.ef81 { color: #5fd7ff; } .eb81 { background-color: #5fd7ff; }
|
||||
.ef82 { color: #5fff00; } .eb82 { background-color: #5fff00; }
|
||||
.ef83 { color: #5fff5f; } .eb83 { background-color: #5fff5f; }
|
||||
.ef84 { color: #5fff87; } .eb84 { background-color: #5fff87; }
|
||||
.ef85 { color: #5fffaf; } .eb85 { background-color: #5fffaf; }
|
||||
.ef86 { color: #5fffd7; } .eb86 { background-color: #5fffd7; }
|
||||
.ef87 { color: #5fffff; } .eb87 { background-color: #5fffff; }
|
||||
.ef88 { color: #870000; } .eb88 { background-color: #870000; }
|
||||
.ef89 { color: #87005f; } .eb89 { background-color: #87005f; }
|
||||
.ef90 { color: #870087; } .eb90 { background-color: #870087; }
|
||||
.ef91 { color: #8700af; } .eb91 { background-color: #8700af; }
|
||||
.ef92 { color: #8700d7; } .eb92 { background-color: #8700d7; }
|
||||
.ef93 { color: #8700ff; } .eb93 { background-color: #8700ff; }
|
||||
.ef94 { color: #875f00; } .eb94 { background-color: #875f00; }
|
||||
.ef95 { color: #875f5f; } .eb95 { background-color: #875f5f; }
|
||||
.ef96 { color: #875f87; } .eb96 { background-color: #875f87; }
|
||||
.ef97 { color: #875faf; } .eb97 { background-color: #875faf; }
|
||||
.ef98 { color: #875fd7; } .eb98 { background-color: #875fd7; }
|
||||
.ef99 { color: #875fff; } .eb99 { background-color: #875fff; }
|
||||
.ef100 { color: #878700; } .eb100 { background-color: #878700; }
|
||||
.ef101 { color: #87875f; } .eb101 { background-color: #87875f; }
|
||||
.ef102 { color: #878787; } .eb102 { background-color: #878787; }
|
||||
.ef103 { color: #8787af; } .eb103 { background-color: #8787af; }
|
||||
.ef104 { color: #8787d7; } .eb104 { background-color: #8787d7; }
|
||||
.ef105 { color: #8787ff; } .eb105 { background-color: #8787ff; }
|
||||
.ef106 { color: #87af00; } .eb106 { background-color: #87af00; }
|
||||
.ef107 { color: #87af5f; } .eb107 { background-color: #87af5f; }
|
||||
.ef108 { color: #87af87; } .eb108 { background-color: #87af87; }
|
||||
.ef109 { color: #87afaf; } .eb109 { background-color: #87afaf; }
|
||||
.ef110 { color: #87afd7; } .eb110 { background-color: #87afd7; }
|
||||
.ef111 { color: #87afff; } .eb111 { background-color: #87afff; }
|
||||
.ef112 { color: #87d700; } .eb112 { background-color: #87d700; }
|
||||
.ef113 { color: #87d75f; } .eb113 { background-color: #87d75f; }
|
||||
.ef114 { color: #87d787; } .eb114 { background-color: #87d787; }
|
||||
.ef115 { color: #87d7af; } .eb115 { background-color: #87d7af; }
|
||||
.ef116 { color: #87d7d7; } .eb116 { background-color: #87d7d7; }
|
||||
.ef117 { color: #87d7ff; } .eb117 { background-color: #87d7ff; }
|
||||
.ef118 { color: #87ff00; } .eb118 { background-color: #87ff00; }
|
||||
.ef119 { color: #87ff5f; } .eb119 { background-color: #87ff5f; }
|
||||
.ef120 { color: #87ff87; } .eb120 { background-color: #87ff87; }
|
||||
.ef121 { color: #87ffaf; } .eb121 { background-color: #87ffaf; }
|
||||
.ef122 { color: #87ffd7; } .eb122 { background-color: #87ffd7; }
|
||||
.ef123 { color: #87ffff; } .eb123 { background-color: #87ffff; }
|
||||
.ef124 { color: #af0000; } .eb124 { background-color: #af0000; }
|
||||
.ef125 { color: #af005f; } .eb125 { background-color: #af005f; }
|
||||
.ef126 { color: #af0087; } .eb126 { background-color: #af0087; }
|
||||
.ef127 { color: #af00af; } .eb127 { background-color: #af00af; }
|
||||
.ef128 { color: #af00d7; } .eb128 { background-color: #af00d7; }
|
||||
.ef129 { color: #af00ff; } .eb129 { background-color: #af00ff; }
|
||||
.ef130 { color: #af5f00; } .eb130 { background-color: #af5f00; }
|
||||
.ef131 { color: #af5f5f; } .eb131 { background-color: #af5f5f; }
|
||||
.ef132 { color: #af5f87; } .eb132 { background-color: #af5f87; }
|
||||
.ef133 { color: #af5faf; } .eb133 { background-color: #af5faf; }
|
||||
.ef134 { color: #af5fd7; } .eb134 { background-color: #af5fd7; }
|
||||
.ef135 { color: #af5fff; } .eb135 { background-color: #af5fff; }
|
||||
.ef136 { color: #af8700; } .eb136 { background-color: #af8700; }
|
||||
.ef137 { color: #af875f; } .eb137 { background-color: #af875f; }
|
||||
.ef138 { color: #af8787; } .eb138 { background-color: #af8787; }
|
||||
.ef139 { color: #af87af; } .eb139 { background-color: #af87af; }
|
||||
.ef140 { color: #af87d7; } .eb140 { background-color: #af87d7; }
|
||||
.ef141 { color: #af87ff; } .eb141 { background-color: #af87ff; }
|
||||
.ef142 { color: #afaf00; } .eb142 { background-color: #afaf00; }
|
||||
.ef143 { color: #afaf5f; } .eb143 { background-color: #afaf5f; }
|
||||
.ef144 { color: #afaf87; } .eb144 { background-color: #afaf87; }
|
||||
.ef145 { color: #afafaf; } .eb145 { background-color: #afafaf; }
|
||||
.ef146 { color: #afafd7; } .eb146 { background-color: #afafd7; }
|
||||
.ef147 { color: #afafff; } .eb147 { background-color: #afafff; }
|
||||
.ef148 { color: #afd700; } .eb148 { background-color: #afd700; }
|
||||
.ef149 { color: #afd75f; } .eb149 { background-color: #afd75f; }
|
||||
.ef150 { color: #afd787; } .eb150 { background-color: #afd787; }
|
||||
.ef151 { color: #afd7af; } .eb151 { background-color: #afd7af; }
|
||||
.ef152 { color: #afd7d7; } .eb152 { background-color: #afd7d7; }
|
||||
.ef153 { color: #afd7ff; } .eb153 { background-color: #afd7ff; }
|
||||
.ef154 { color: #afff00; } .eb154 { background-color: #afff00; }
|
||||
.ef155 { color: #afff5f; } .eb155 { background-color: #afff5f; }
|
||||
.ef156 { color: #afff87; } .eb156 { background-color: #afff87; }
|
||||
.ef157 { color: #afffaf; } .eb157 { background-color: #afffaf; }
|
||||
.ef158 { color: #afffd7; } .eb158 { background-color: #afffd7; }
|
||||
.ef159 { color: #afffff; } .eb159 { background-color: #afffff; }
|
||||
.ef160 { color: #d70000; } .eb160 { background-color: #d70000; }
|
||||
.ef161 { color: #d7005f; } .eb161 { background-color: #d7005f; }
|
||||
.ef162 { color: #d70087; } .eb162 { background-color: #d70087; }
|
||||
.ef163 { color: #d700af; } .eb163 { background-color: #d700af; }
|
||||
.ef164 { color: #d700d7; } .eb164 { background-color: #d700d7; }
|
||||
.ef165 { color: #d700ff; } .eb165 { background-color: #d700ff; }
|
||||
.ef166 { color: #d75f00; } .eb166 { background-color: #d75f00; }
|
||||
.ef167 { color: #d75f5f; } .eb167 { background-color: #d75f5f; }
|
||||
.ef168 { color: #d75f87; } .eb168 { background-color: #d75f87; }
|
||||
.ef169 { color: #d75faf; } .eb169 { background-color: #d75faf; }
|
||||
.ef170 { color: #d75fd7; } .eb170 { background-color: #d75fd7; }
|
||||
.ef171 { color: #d75fff; } .eb171 { background-color: #d75fff; }
|
||||
.ef172 { color: #d78700; } .eb172 { background-color: #d78700; }
|
||||
.ef173 { color: #d7875f; } .eb173 { background-color: #d7875f; }
|
||||
.ef174 { color: #d78787; } .eb174 { background-color: #d78787; }
|
||||
.ef175 { color: #d787af; } .eb175 { background-color: #d787af; }
|
||||
.ef176 { color: #d787d7; } .eb176 { background-color: #d787d7; }
|
||||
.ef177 { color: #d787ff; } .eb177 { background-color: #d787ff; }
|
||||
.ef178 { color: #d7af00; } .eb178 { background-color: #d7af00; }
|
||||
.ef179 { color: #d7af5f; } .eb179 { background-color: #d7af5f; }
|
||||
.ef180 { color: #d7af87; } .eb180 { background-color: #d7af87; }
|
||||
.ef181 { color: #d7afaf; } .eb181 { background-color: #d7afaf; }
|
||||
.ef182 { color: #d7afd7; } .eb182 { background-color: #d7afd7; }
|
||||
.ef183 { color: #d7afff; } .eb183 { background-color: #d7afff; }
|
||||
.ef184 { color: #d7d700; } .eb184 { background-color: #d7d700; }
|
||||
.ef185 { color: #d7d75f; } .eb185 { background-color: #d7d75f; }
|
||||
.ef186 { color: #d7d787; } .eb186 { background-color: #d7d787; }
|
||||
.ef187 { color: #d7d7af; } .eb187 { background-color: #d7d7af; }
|
||||
.ef188 { color: #d7d7d7; } .eb188 { background-color: #d7d7d7; }
|
||||
.ef189 { color: #d7d7ff; } .eb189 { background-color: #d7d7ff; }
|
||||
.ef190 { color: #d7ff00; } .eb190 { background-color: #d7ff00; }
|
||||
.ef191 { color: #d7ff5f; } .eb191 { background-color: #d7ff5f; }
|
||||
.ef192 { color: #d7ff87; } .eb192 { background-color: #d7ff87; }
|
||||
.ef193 { color: #d7ffaf; } .eb193 { background-color: #d7ffaf; }
|
||||
.ef194 { color: #d7ffd7; } .eb194 { background-color: #d7ffd7; }
|
||||
.ef195 { color: #d7ffff; } .eb195 { background-color: #d7ffff; }
|
||||
.ef196 { color: #ff0000; } .eb196 { background-color: #ff0000; }
|
||||
.ef197 { color: #ff005f; } .eb197 { background-color: #ff005f; }
|
||||
.ef198 { color: #ff0087; } .eb198 { background-color: #ff0087; }
|
||||
.ef199 { color: #ff00af; } .eb199 { background-color: #ff00af; }
|
||||
.ef200 { color: #ff00d7; } .eb200 { background-color: #ff00d7; }
|
||||
.ef201 { color: #ff00ff; } .eb201 { background-color: #ff00ff; }
|
||||
.ef202 { color: #ff5f00; } .eb202 { background-color: #ff5f00; }
|
||||
.ef203 { color: #ff5f5f; } .eb203 { background-color: #ff5f5f; }
|
||||
.ef204 { color: #ff5f87; } .eb204 { background-color: #ff5f87; }
|
||||
.ef205 { color: #ff5faf; } .eb205 { background-color: #ff5faf; }
|
||||
.ef206 { color: #ff5fd7; } .eb206 { background-color: #ff5fd7; }
|
||||
.ef207 { color: #ff5fff; } .eb207 { background-color: #ff5fff; }
|
||||
.ef208 { color: #ff8700; } .eb208 { background-color: #ff8700; }
|
||||
.ef209 { color: #ff875f; } .eb209 { background-color: #ff875f; }
|
||||
.ef210 { color: #ff8787; } .eb210 { background-color: #ff8787; }
|
||||
.ef211 { color: #ff87af; } .eb211 { background-color: #ff87af; }
|
||||
.ef212 { color: #ff87d7; } .eb212 { background-color: #ff87d7; }
|
||||
.ef213 { color: #ff87ff; } .eb213 { background-color: #ff87ff; }
|
||||
.ef214 { color: #ffaf00; } .eb214 { background-color: #ffaf00; }
|
||||
.ef215 { color: #ffaf5f; } .eb215 { background-color: #ffaf5f; }
|
||||
.ef216 { color: #ffaf87; } .eb216 { background-color: #ffaf87; }
|
||||
.ef217 { color: #ffafaf; } .eb217 { background-color: #ffafaf; }
|
||||
.ef218 { color: #ffafd7; } .eb218 { background-color: #ffafd7; }
|
||||
.ef219 { color: #ffafff; } .eb219 { background-color: #ffafff; }
|
||||
.ef220 { color: #ffd700; } .eb220 { background-color: #ffd700; }
|
||||
.ef221 { color: #ffd75f; } .eb221 { background-color: #ffd75f; }
|
||||
.ef222 { color: #ffd787; } .eb222 { background-color: #ffd787; }
|
||||
.ef223 { color: #ffd7af; } .eb223 { background-color: #ffd7af; }
|
||||
.ef224 { color: #ffd7d7; } .eb224 { background-color: #ffd7d7; }
|
||||
.ef225 { color: #ffd7ff; } .eb225 { background-color: #ffd7ff; }
|
||||
.ef226 { color: #ffff00; } .eb226 { background-color: #ffff00; }
|
||||
.ef227 { color: #ffff5f; } .eb227 { background-color: #ffff5f; }
|
||||
.ef228 { color: #ffff87; } .eb228 { background-color: #ffff87; }
|
||||
.ef229 { color: #ffffaf; } .eb229 { background-color: #ffffaf; }
|
||||
.ef230 { color: #ffffd7; } .eb230 { background-color: #ffffd7; }
|
||||
.ef231 { color: #ffffff; } .eb231 { background-color: #ffffff; }
|
||||
.ef232 { color: #080808; } .eb232 { background-color: #080808; }
|
||||
.ef233 { color: #121212; } .eb233 { background-color: #121212; }
|
||||
.ef234 { color: #1c1c1c; } .eb234 { background-color: #1c1c1c; }
|
||||
.ef235 { color: #262626; } .eb235 { background-color: #262626; }
|
||||
.ef236 { color: #303030; } .eb236 { background-color: #303030; }
|
||||
.ef237 { color: #3a3a3a; } .eb237 { background-color: #3a3a3a; }
|
||||
.ef238 { color: #444444; } .eb238 { background-color: #444444; }
|
||||
.ef239 { color: #4e4e4e; } .eb239 { background-color: #4e4e4e; }
|
||||
.ef240 { color: #585858; } .eb240 { background-color: #585858; }
|
||||
.ef241 { color: #626262; } .eb241 { background-color: #626262; }
|
||||
.ef242 { color: #6c6c6c; } .eb242 { background-color: #6c6c6c; }
|
||||
.ef243 { color: #767676; } .eb243 { background-color: #767676; }
|
||||
.ef244 { color: #808080; } .eb244 { background-color: #808080; }
|
||||
.ef245 { color: #8a8a8a; } .eb245 { background-color: #8a8a8a; }
|
||||
.ef246 { color: #949494; } .eb246 { background-color: #949494; }
|
||||
.ef247 { color: #9e9e9e; } .eb247 { background-color: #9e9e9e; }
|
||||
.ef248 { color: #a8a8a8; } .eb248 { background-color: #a8a8a8; }
|
||||
.ef249 { color: #b2b2b2; } .eb249 { background-color: #b2b2b2; }
|
||||
.ef250 { color: #bcbcbc; } .eb250 { background-color: #bcbcbc; }
|
||||
.ef251 { color: #c6c6c6; } .eb251 { background-color: #c6c6c6; }
|
||||
.ef252 { color: #d0d0d0; } .eb252 { background-color: #d0d0d0; }
|
||||
.ef253 { color: #dadada; } .eb253 { background-color: #dadada; }
|
||||
.ef254 { color: #e4e4e4; } .eb254 { background-color: #e4e4e4; }
|
||||
.ef255 { color: #eeeeee; } .eb255 { background-color: #eeeeee; }
|
||||
|
||||
.f9 { color: #000000; }
|
||||
.b9 { background-color: #AAAAAD; }
|
||||
.f9 > .bold,.bold > .f9, body.f9 > pre > .bold {
|
||||
/* Bold is heavy black on white, or bright white
|
||||
depending on the default background */
|
||||
color: #000000;
|
||||
font-weight: bold;
|
||||
}
|
||||
.reverse {
|
||||
/* CSS does not support swapping fg and bg colours unfortunately,
|
||||
so just hardcode something that will look OK on all backgrounds. */
|
||||
color: #000000; background-color: #E5E5E5;
|
||||
}
|
||||
.underline { text-decoration: underline; }
|
||||
.line-through { text-decoration: line-through; }
|
||||
.blink { text-decoration: blink; }
|
||||
|
||||
/* Avoid pixels between adjacent span elements.
|
||||
Note this only works for lines less than 80 chars
|
||||
where we close span elements on the same line.
|
||||
span { display: inline-block; }
|
||||
*/
|
||||
|
|
@ -0,0 +1,120 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<link rel="stylesheet" type="text/css" href="term.css"/>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="f9 b9">
|
||||
<pre>
|
||||
<span class="bold"><span class="f4">[Ultime] Harmony</span></span>
|
||||
<span class="f4"><span class="underline">Description</span></span>
|
||||
Les points d’harmonie se gagnent au cours d’une longue méditation.
|
||||
typiquement 1 par jour/semaine/mois de méditation, et peuvent servir de coût à certaines techniques
|
||||
majeures, Avoir des points d’harmonie donne des bonus à la discrétion, a l’initiative,
|
||||
a la plupart des actions de déplacement, de perception et de volonté.
|
||||
<span class="f4"><span class="underline">Description personelle</span></span>
|
||||
L’harmony atteint @{harmony_level} stack, offrant un bonus de +? point a l’initiative et aux actions de perception
|
||||
<span class="f4"><span class="underline">Description publique</span></span>
|
||||
|
||||
<span class="f4"><span class="underline">Spécial</span></span>
|
||||
Système de stack augmentant hors combat et diminuant lors de l’utilisation active des techniques liées.
|
||||
(possiblement regrouper l’ensemble des bonus passif sur une seule commande?)
|
||||
|
||||
<span class="bold"><span class="f4">[Avancée] Harmony Of Shadow</span></span>
|
||||
<span class="f4"><span class="underline">Description</span></span>
|
||||
Passif - Augmente la discrétion, et rend le ciblages plus difficiles.
|
||||
Actif - Augmente pendant un cours instant la conscience de son environnement,
|
||||
permettant de révéler la vrai nature des adversaire et objets dans le champ de perception.
|
||||
<span class="f4"><span class="underline">Description personelle</span></span>
|
||||
Vous perdez un point d’harmony, L’harmony atteint @{shadow_har_level} stack.
|
||||
<span class="f4"><span class="underline">Description publique</span></span>
|
||||
L’intense concentration de Voile lui permet de percer les secrets dissimulés
|
||||
<span class="f4"><span class="underline">Spécial</span></span>
|
||||
L’effet du passif dépend du nombre de stack d’Harmony, l’activation de l’actif diminue le stack d’un point.
|
||||
|
||||
<span class="bold"><span class="f4">[Avancée] Harmony Of Wind</span></span>
|
||||
<span class="f4"><span class="underline">Description</span></span>
|
||||
Passif - Augmente le nombre d’action et rend les attaques d’opportunités plus difficiles
|
||||
Actif - Permet de se désengager d’une attaque magique ou physique et un replacer gratuitement. Compte comme une esquive totale de l’attaque.
|
||||
<span class="f4"><span class="underline">Description personelle</span></span>
|
||||
|
||||
<span class="f4"><span class="underline">Description publique</span></span>
|
||||
Pendant un cours instant, Voile disparaît
|
||||
L’attaque frappe dans le vide
|
||||
<span class="f4"><span class="underline">Spécial</span></span>
|
||||
L’effet du passif dépend du nombre de stack d’Harmony, l’activation de l’actif diminue le stack d’un point.
|
||||
|
||||
<span class="bold"><span class="f4">[Avancée] Harmony Of Water</span></span>
|
||||
<span class="f4"><span class="underline">Description</span></span>
|
||||
Passif - Certaines contraintes physiques (frottement vent, courant gravité, résistance des matériaux…)
|
||||
sont moins limitants pour les actions du personnage,
|
||||
limitant les malus que le terrain peut imposer et facilitant les actions de mouvements.
|
||||
Actif - Amplifie cet effet pendant un court instant, permettant d’effectuer des action défiant la physique comme courir sur l’eau ou traverser un mur.
|
||||
<span class="f4"><span class="underline">Description personelle</span></span>
|
||||
|
||||
<span class="f4"><span class="underline">Description publique</span></span>
|
||||
|
||||
<span class="f4"><span class="underline">Spécial</span></span>
|
||||
L’effet du passif dépend du nombre de stack d’Harmony, l’activation de l’actif diminue le stack d’un point.
|
||||
|
||||
<span class="bold"><span class="f4">[Avancée] Harmony Of Metal</span></span>
|
||||
<span class="f4"><span class="underline">Description</span></span>
|
||||
Passif: Augmente la résistance mentale et la capacité à rester stoïque quelle que soit la situation, rendant difficile la lecture de son langage corporel.
|
||||
Actif: Permet d'atténuer les effets néfastes appliqués sur l’esprit.
|
||||
<span class="f4"><span class="underline">Description personelle</span></span>
|
||||
|
||||
<span class="f4"><span class="underline">Description publique</span></span>
|
||||
L’esprit se renforce, repoussant les effets déléteres...
|
||||
<span class="f4"><span class="underline">Spécial</span></span>
|
||||
L’effet du passif dépend du nombre de stack d’Harmony, l’activation de l’actif diminue le stack d’un point.
|
||||
|
||||
<span class="bold"><span class="f4">[Ultime] Momentum</span></span>
|
||||
<span class="f4"><span class="underline">Description</span></span>
|
||||
Les Points de Momentum, se gagne activement au cours d’un combat, en fonction du nombre d’attaques parades ou esquives effectuées dans le tour.
|
||||
Chaque stack de momentum donne un petit bonus à l’esquive, la parade, à l’attaque,
|
||||
à la charge, au nombre d’action dans le tour, mais aussi à certaines actions comme la course,
|
||||
l’acrobatie ou le saut, représentant le momentum progressivement gagné par le personnage.
|
||||
Tant que le personnage a du momentum, il est particulièrement difficile de porter des attaques d’opportunités contre lui.
|
||||
<span class="f4"><span class="underline">Description personelle</span></span>
|
||||
Le momentum augmente, donnant un bonus de ?*@{momentum_level} a l’esquive, parade, attaque et charge, et augmentant le nombre d’action de ?*@{momentum_level}
|
||||
<span class="f4"><span class="underline">Description publique</span></span>
|
||||
|
||||
<span class="f4"><span class="underline">Spécial</span></span>
|
||||
Système de stack augmentant en combat et diminuant lors de l’utilisation active des techniques liées.
|
||||
|
||||
<span class="bold"><span class="f4">[Majeur] Impact</span></span>
|
||||
<span class="f4"><span class="underline">Description</span></span>
|
||||
Dépense l’ensemble du momentum dans une charge durant une action complète.
|
||||
La puissance de l’impact fracture le sol et inflige de lourds dégâts aux
|
||||
adversaires dans une large zone dépendant du nombre de points de momentum consumés
|
||||
<span class="f4"><span class="underline">Description personelle</span></span>
|
||||
Le momentum est reset
|
||||
<span class="f4"><span class="underline">Description publique</span></span>
|
||||
L’impact cible une zone sur @{impact_level}*@{momentum_level} mètres infligeant ?*@{momentum_level} dégâts bonus à l’attaque
|
||||
<span class="f4"><span class="underline">Spécial</span></span>
|
||||
Système de stack augmentant en combat et diminuant lors de l’utilisation active des techniques liées.
|
||||
|
||||
<span class="bold"><span class="f4">[Majeur] Adagio</span></span>
|
||||
<span class="f4"><span class="underline">Description</span></span>
|
||||
Chaque attaque contre un adversaire différent augmente le momentum
|
||||
<span class="f4"><span class="underline">Description personelle</span></span>
|
||||
Le momentum augmente, donnant un bonus de ?*@{momentum_level} a l’esquive, parade, attaque et charge, et augmentant le nombre d’action de ?*@{momentum_level}
|
||||
<span class="f4"><span class="underline">Description publique</span></span>
|
||||
|
||||
<span class="f4"><span class="underline">Spécial</span></span>
|
||||
Système de stack augmentant en combat et diminuant lors de l’utilisation active des techniques liées.
|
||||
|
||||
<span class="bold"><span class="f4">[Ultime] Tempo Martial</span></span>
|
||||
<span class="f4"><span class="underline">Description</span></span>
|
||||
En consommant ? action, l’effet de la prochaine action physique est Amélioré de @{tempo_martial_level} degrés ou ? dégats/parade/esquive
|
||||
<span class="f4"><span class="underline">Description personelle</span></span>
|
||||
En consommant ? action, l’effet de la prochaine action physique est Amélioré de @{tempo_martial_level} degrés ou ? dégats/parade/esquive
|
||||
<span class="f4"><span class="underline">Description publique</span></span>
|
||||
L’effet de la prochaine action physique est Amélioré de @{tempo_martial_level} degrés ou ? dégats/parade/esquive
|
||||
<span class="f4"><span class="underline">Spécial</span></span>
|
||||
|
||||
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -114,83 +114,13 @@ fi
|
|||
[ "$css_only" ] || [ "$body_only" ] || printf '%s' "<html>
|
||||
<head>
|
||||
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>
|
||||
<style type=\"text/css\">
|
||||
pre { white-space: pre-wrap; }
|
||||
<link rel=\"stylesheet\" type=\"text/css\" href=\"term.css\"/>
|
||||
"
|
||||
[ "$body_only" ] || printf ".ef0,.f0 { color: #$P0; } .eb0,.b0 { background-color: #$P0; }
|
||||
.ef1,.f1 { color: #$P1; } .eb1,.b1 { background-color: #$P1; }
|
||||
.ef2,.f2 { color: #$P2; } .eb2,.b2 { background-color: #$P2; }
|
||||
.ef3,.f3 { color: #$P3; } .eb3,.b3 { background-color: #$P3; }
|
||||
.ef4,.f4 { color: #$P4; } .eb4,.b4 { background-color: #$P4; }
|
||||
.ef5,.f5 { color: #$P5; } .eb5,.b5 { background-color: #$P5; }
|
||||
.ef6,.f6 { color: #$P6; } .eb6,.b6 { background-color: #$P6; }
|
||||
.ef7,.f7 { color: #$P7; } .eb7,.b7 { background-color: #$P7; }
|
||||
.ef8, .f0 > .bold,.bold > .f0 { color: #$P8; font-weight: normal; }
|
||||
.ef9, .f1 > .bold,.bold > .f1 { color: #$P9; font-weight: normal; }
|
||||
.ef10,.f2 > .bold,.bold > .f2 { color: #$P10; font-weight: normal; }
|
||||
.ef11,.f3 > .bold,.bold > .f3 { color: #$P11; font-weight: normal; }
|
||||
.ef12,.f4 > .bold,.bold > .f4 { color: #$P12; font-weight: normal; }
|
||||
.ef13,.f5 > .bold,.bold > .f5 { color: #$P13; font-weight: normal; }
|
||||
.ef14,.f6 > .bold,.bold > .f6 { color: #$P14; font-weight: normal; }
|
||||
.ef15,.f7 > .bold,.bold > .f7 { color: #$P15; font-weight: normal; }
|
||||
.eb8 { background-color: #$P8; }
|
||||
.eb9 { background-color: #$P9; }
|
||||
.eb10 { background-color: #$P10; }
|
||||
.eb11 { background-color: #$P11; }
|
||||
.eb12 { background-color: #$P12; }
|
||||
.eb13 { background-color: #$P13; }
|
||||
.eb14 { background-color: #$P14; }
|
||||
.eb15 { background-color: #$P15; }
|
||||
"
|
||||
# The default xterm 256 colour palette
|
||||
for red in 0 1 2 3 4 5 ; do
|
||||
for green in 0 1 2 3 4 5 ; do
|
||||
for blue in 0 1 2 3 4 5 ; do
|
||||
c=$((16 + ($red * 36) + ($green * 6) + $blue))
|
||||
r=$((($red * 40 + 55) * ($red > 0)))
|
||||
g=$((($green * 40 + 55) * ($green > 0)))
|
||||
b=$((($blue * 40 + 55) * ($blue > 0)))
|
||||
[ "$body_only" ] || printf ".ef%d { color: #%2.2x%2.2x%2.2x; } " $c $r $g $b
|
||||
[ "$body_only" ] || printf ".eb%d { background-color: #%2.2x%2.2x%2.2x; }\n" $c $r $g $b
|
||||
done
|
||||
done
|
||||
done
|
||||
for gray in $(seq 0 23); do
|
||||
c=$(($gray+232))
|
||||
l=$(($gray*10 + 8))
|
||||
[ "$body_only" ] || printf ".ef%d { color: #%2.2x%2.2x%2.2x; } " $c $l $l $l
|
||||
[ "$body_only" ] || printf ".eb%d { background-color: #%2.2x%2.2x%2.2x; }\n" $c $l $l $l
|
||||
done
|
||||
|
||||
[ "$body_only" ] || printf '%s' '
|
||||
.f9 { color: '`[ "$dark_bg" ] && printf "#$P7;" || printf "#$P0;"`' }
|
||||
.b9 { background-color: #'`[ "$dark_bg" ] && printf $P0 || printf $P15`'; }
|
||||
.f9 > .bold,.bold > .f9, body.f9 > pre > .bold {
|
||||
/* Bold is heavy black on white, or bright white
|
||||
depending on the default background */
|
||||
color: '`[ "$dark_bg" ] && printf "#$P15;" || printf "#$P0;"`'
|
||||
font-weight: '`[ "$dark_bg" ] && printf 'normal;' || printf 'bold;'`'
|
||||
}
|
||||
.reverse {
|
||||
/* CSS does not support swapping fg and bg colours unfortunately,
|
||||
so just hardcode something that will look OK on all backgrounds. */
|
||||
'"color: #$P0; background-color: #$P7;"'
|
||||
}
|
||||
.underline { text-decoration: underline; }
|
||||
.line-through { text-decoration: line-through; }
|
||||
.blink { text-decoration: blink; }
|
||||
|
||||
/* Avoid pixels between adjacent span elements.
|
||||
Note this only works for lines less than 80 chars
|
||||
where we close span elements on the same line.
|
||||
span { display: inline-block; }
|
||||
*/
|
||||
'
|
||||
[ "$body_only" ] || [ "$css_only" ] && printf '%s\n' \
|
||||
'To use the css generated from --css-only, do: '\
|
||||
'<head><link rel="stylesheet" type="text/css" href="style.css"></head>' >&2
|
||||
'<head><link rel="stylesheet" type="text/css" href="style.css"/></head>' >&2
|
||||
[ "$css_only" ] && exit
|
||||
[ "$body_only" ] || printf '%s' '</style>
|
||||
[ "$body_only" ] || printf '%s' '
|
||||
</head>
|
||||
|
||||
<body class="f9 b9">
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
#encoding:UTF-8
|
||||
import sys,os,traceback
|
||||
import re,argparse,configparser
|
||||
from os import listdir
|
||||
from os.path import isfile, join
|
||||
|
||||
import subprocess
|
||||
import blessings
|
||||
term=blessings.Terminal()
|
||||
|
||||
|
|
@ -11,7 +12,7 @@ parser.add_argument('command',choices=["macro","varnames","diff",'show'],help="T
|
|||
parser.add_argument('characters',default=["all"],help="Name of the characters to list, all by default",nargs="*")
|
||||
parser.add_argument("-o",metavar="output",default="tty",help="File for the output command, tty by default",nargs="?")
|
||||
parser.add_argument("-v",default=False,action='store_true',help="Default")
|
||||
parser.add_argument("--version",default="last",help="The version to pick from or from wich to make the diff from",nargs="?")
|
||||
parser.add_argument("--version",default="HEAD",help="The version to pick from or from wich to make the diff from",nargs="?")
|
||||
verbose=False
|
||||
def dprint(text):
|
||||
if verbose:
|
||||
|
|
@ -20,8 +21,11 @@ def dprint(text):
|
|||
reserved_chars=["exemple.ini","God.ini"]
|
||||
errors={
|
||||
"notfound":term.red("Couldn't find {char} in the Character directory"),
|
||||
"sectionnotfound":term.red("Coulnd't find section {section} in {where}")
|
||||
"sectionnotfound":term.red("Coulnd't find section {section} in {where}"),
|
||||
"noreplacement":term.red("Couldn't find replacement for {var} in {where}")
|
||||
}
|
||||
god=configparser.ConfigParser()
|
||||
god.read("Characters/God.ini")
|
||||
|
||||
|
||||
def macro(e):
|
||||
|
|
@ -37,8 +41,17 @@ def show(characters,output,version):
|
|||
if output=="tty":
|
||||
print(ret)
|
||||
else:
|
||||
with open(output,"r") as f:
|
||||
f.write(ret)
|
||||
pi=subprocess.Popen(("./ansi2html.sh","--palette=xterm"),stdin=subprocess.PIPE,stdout=subprocess.PIPE)
|
||||
e=str.encode(ret,"utf8")
|
||||
pi.stdin.write(e)
|
||||
pi.stdin.close()
|
||||
with open(output,"wb") as f:
|
||||
while True:
|
||||
line=pi.stdout.readline()
|
||||
if not line:
|
||||
break
|
||||
f.write(line)
|
||||
|
||||
|
||||
def show_one(character,output,version):
|
||||
config=configparser.ConfigParser()
|
||||
|
|
@ -46,26 +59,44 @@ def show_one(character,output,version):
|
|||
ret=""
|
||||
for sect in config.sections():
|
||||
text=""
|
||||
text+=term.bold_green("[{level}] {title}\n").format(title=config[sect]["display_name"],level=config[sect]["level"])
|
||||
text+=term.bold_blue("[{level}] {title}\n").format(title=config[sect]["display_name"],level=config[sect]["level"])
|
||||
for dname,sname in (('Description',"description"),("Description personelle",'self'),("Description publique","others"),("Spécial","special")):
|
||||
try:
|
||||
adden=" {t}\n {c}\n".format(t=term.green_underline(dname),c=config[sect][sname].replace("\n","\n "))
|
||||
content=replace_vars(config[sect][sname],config,god,sname,sect)
|
||||
adden=" {t}\n {c}\n".format(t=term.blue_underline(dname),c=content.replace("\n","\n "))
|
||||
text+=adden
|
||||
except:
|
||||
except KeyError:
|
||||
dprint(errors["sectionnotfound"].format(section=sname,where=sect))
|
||||
ret+=text
|
||||
ret+=text+'\n'
|
||||
return ret
|
||||
|
||||
toreplace=re.compile("(?:[^@]|$)\{([\w_-]*)\}")
|
||||
def replace_vars(text,char,god,section,name):
|
||||
vars=toreplace.findall(text)
|
||||
if vars:
|
||||
for group in vars:
|
||||
try:
|
||||
text=text.replace("{"+group+"}",char[name][group])
|
||||
except:
|
||||
try:
|
||||
if name not in god:
|
||||
w="DEFAULT"
|
||||
else:
|
||||
w=name
|
||||
text=text.replace("{"+group+"}",god[w][group])
|
||||
except:
|
||||
dprint(errors["noreplacement"].format(var=group,where=name))
|
||||
return text
|
||||
|
||||
def varnames(e):
|
||||
pass
|
||||
|
||||
def diff(characters,output,version):
|
||||
import subprocess
|
||||
chars=get_char(characters)
|
||||
if len(chars)==0:
|
||||
dprint(errors["notfound"].format(char="any character"))
|
||||
return
|
||||
list=["git", "diff","HEAD","--word-diff=color","--function-context"]+chars
|
||||
list=["git", "diff",version,"--word-diff=color","--function-context"]+chars
|
||||
if output=="tty":
|
||||
dprint("Printing diff")
|
||||
pi=subprocess.check_output(list).decode("utf-8")
|
||||
|
|
|
|||
|
|
@ -1,197 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<script type="text/javascript">
|
||||
var raw_msg = "4 P 2 I 4 2 E 4 1 T 1 4 + 11 - 22";
|
||||
/*var nb_dices=0;
|
||||
var perfection=0; //P
|
||||
var defense_i_0=0; // I_1
|
||||
var defense_i_1=0; // I_2
|
||||
var defense_i_2=0; // I_4
|
||||
|
||||
var rempart_p=0; //R
|
||||
|
||||
var technique_m_0=0; //M_1
|
||||
var technique_m_1=0; //M_2
|
||||
var coup_d=0; //D
|
||||
|
||||
var fauchage=0; //F
|
||||
|
||||
var exploiter_p_0=0; //E_1
|
||||
var exploiter_p_1=0; //E_2
|
||||
var exploiter_p_2=0; //E_4
|
||||
|
||||
var tir_p_0=0; //T_1
|
||||
var tir_p_1=0; //T_2
|
||||
var tir_i=0; // O
|
||||
var charge=0; //C
|
||||
var charge_i=0; //N
|
||||
var nb_2add=0; //+
|
||||
var nb_2sub=0; //-
|
||||
var replace=-1; //P
|
||||
var add_to_all=0; //A
|
||||
*/
|
||||
// Internal Variables
|
||||
|
||||
logit("Parsing : "+raw_msg);
|
||||
|
||||
d_vars=parse_command(raw_msg);
|
||||
/*
|
||||
logit("nb_dices : " + d_vars.nb_dices);
|
||||
logit("perfection : " + d_vars.perfection); //P
|
||||
logit("defense_i_0 : " + d_vars.defense_i_0); // I_1
|
||||
logit("defense_i_1 : " + d_vars.defense_i_1); // I_2
|
||||
logit("defense_i_2 : " + d_vars.defense_i_2); // I_4
|
||||
|
||||
logit("rempart_p : " + d_vars.rempart_p); //R
|
||||
|
||||
logit("technique_m_0 : " + d_vars.technique_m_0); //M_1
|
||||
logit("technique_m_1 : " + d_vars.technique_m_1); //M_2
|
||||
logit("coup_d : " + d_vars.coup_d); //D
|
||||
|
||||
logit("fauchage : " + d_vars.fauchage); //F
|
||||
|
||||
logit("exploiter_p_0 : " + d_vars.exploiter_p_0); //E_1
|
||||
logit("exploiter_p_1 : " + d_vars.exploiter_p_1); //E_2
|
||||
logit("exploiter_p_2 : " + d_vars.exploiter_p_2); //E_4
|
||||
|
||||
logit("tir_p_0 : " + d_vars.tir_p_0); //T_1
|
||||
logit("tir_p_1 : " + d_vars.tir_p_1); //T_2
|
||||
logit("tir_i : " + d_vars.tir_i); // O
|
||||
logit("charge : " + d_vars.charge); //C
|
||||
logit("charge_i : " + d_vars.charge_i); //N
|
||||
logit("+ " + d_vars.nb_2add);
|
||||
logit("- " + d_vars.nb_2sub);
|
||||
logit("+ " + d_vars.replace); //P
|
||||
logit("+ " + d_vars.var add_to_all); //A*/
|
||||
function to_number(nb){
|
||||
var tmp=Number(nb);
|
||||
if (isNaN(tmp)) return 0;
|
||||
return tmp;
|
||||
}
|
||||
|
||||
function parse_command(message){
|
||||
var d_vars={"nb_dices":0,"perfection":0,"defense_i_0":0,"defense_i_1":0,"defense_i_2":0,"rempart_p":0,
|
||||
"technique_m_0":0,"technique_m_1":0,"coup_d":0,"fauchage":0,"exploiter_p_0":0,"exploiter_p_1":0,
|
||||
"exploiter_p_2":0,"tir_p_0":0,"tir_p_1":0,"tir_i":0,"charge":0,"charge_i":0,"nb_2add":0,"nb_2sub":0};
|
||||
var tab=message.split(" ");
|
||||
var len_args=tab.length;
|
||||
var i;
|
||||
//logit(tab);
|
||||
//logit(tab.length);
|
||||
|
||||
if (len_args>0){
|
||||
d_vars.nb_dices=tab[0];
|
||||
}
|
||||
for (i = 1; i < tab.length;) {
|
||||
switch(tab[i]) {
|
||||
case "+":
|
||||
d_vars.nb_2add=to_number(tab[i+1]);
|
||||
i+=2;
|
||||
break;
|
||||
case "-":
|
||||
d_vars.nb_2sub=to_number(tab[i+1]);
|
||||
i+=2;
|
||||
break;
|
||||
case "P":
|
||||
d_vars.perfection=to_number(tab[i+1]);
|
||||
i+=2;
|
||||
break;
|
||||
case "I":
|
||||
switch (tab[i+1]) {
|
||||
case "1":
|
||||
d_vars.defense_i_0=to_number(tab[i+2]);
|
||||
break;
|
||||
case "2":
|
||||
d_vars.defense_i_1=to_number(tab[i+2]);
|
||||
break;
|
||||
case "4":
|
||||
d_vars.defense_i_2=to_number(tab[i+2]);
|
||||
break;
|
||||
}
|
||||
i+=3;
|
||||
break;
|
||||
case "E":
|
||||
switch (tab[i+1]) {
|
||||
case "1":
|
||||
d_vars.exploiter_p_0=to_number(tab[i+2]);
|
||||
break;
|
||||
case "2":
|
||||
d_vars.exploiter_p_1=to_number(tab[i+2]);
|
||||
break;
|
||||
case "4":
|
||||
d_vars.exploiter_p_2=to_number(tab[i+2]);
|
||||
break;
|
||||
}
|
||||
i+=3;
|
||||
break;
|
||||
case "T":
|
||||
switch (tab[i+1]) {
|
||||
case "1":
|
||||
d_vars.tir_p_0=to_number(tab[i+2]);
|
||||
break;
|
||||
case "2":
|
||||
d_vars.tir_p_1=to_number(tab[i+2]);
|
||||
break;
|
||||
}
|
||||
i+=3;
|
||||
break;
|
||||
case "R":
|
||||
d_vars.rempart_p=to_number(tab[i+1]);
|
||||
i+=2;
|
||||
break;
|
||||
case "C":
|
||||
d_vars.charge=to_number(tab[i+1]);
|
||||
i+=2;
|
||||
break;
|
||||
case "M":
|
||||
switch (tab[i+1]) {
|
||||
case "1":
|
||||
d_vars.technique_m_0=to_number(tab[i+2]);
|
||||
break;
|
||||
|
||||
case "2":
|
||||
d_vars.technique_m_1=to_number(tab[i+2]);
|
||||
break;
|
||||
}
|
||||
i+=3;
|
||||
break;
|
||||
case "D":
|
||||
d_vars.coup_d=to_number(tab[i+1]);
|
||||
i+=2;
|
||||
break;
|
||||
case "F":
|
||||
d_vars.fauchage=to_number(tab[i+1]);
|
||||
i+=2;
|
||||
break;
|
||||
case "N":
|
||||
d_vars.charge_i=to_number(tab[i+1]);
|
||||
i+=2;
|
||||
break;
|
||||
case "O":
|
||||
d_vars.tir_i=to_number(tab[i+1]);
|
||||
i+=2;
|
||||
break;
|
||||
case "r":
|
||||
d_vars.relance=to_number(tab[i+1]);
|
||||
i+=2;
|
||||
break;
|
||||
default:
|
||||
logit("Argument "+tab[i]+" unknown.");
|
||||
i++;
|
||||
}
|
||||
}
|
||||
return d_vars;
|
||||
}
|
||||
function logit(txt){
|
||||
//Due to the incomprehensible restriction of console. in roll20
|
||||
console.log(txt);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue