sts-term

Une version rudimentaire de Slay The Spire dans le terminal - retour accueil

git clone git://bebou.netlib.re/sts-term
Log | Files | Refs | README |

commit 1866e55eb28582110b858fcd10cd2e21d8164daa
parent ea3785dca96ccc7095f0f34108ad37d6bd16e00e
Auterice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Fri, 21 Jun 2024 20:24:15 +0200

Ajout barricade

simple efficace
toujours ce truc nul de devoir lister les pouvoirs dans le grep, à
changer un jour (TODO)

Diffstat:
Abdd/cards/barricade | 2++
Mutils | 5+++--
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/bdd/cards/barricade b/bdd/cards/barricade @@ -0,0 +1,2 @@ +_cost 3 +_status barricade 1 player diff --git a/utils b/utils @@ -287,7 +287,8 @@ endturn() { _hasstatus player metallicize && _defend $(_getremainingstatusturns player metallicize) player _execnextmove - _setstat fight/player block 0 + _hasstatus player barricade || + _setstat fight/player block 0 _setstat fight/player energy 3 _hasstatus player strength-down && { _status strength "-$(_getremainingstatusturns player strength-down)" player; @@ -370,7 +371,7 @@ _getstatuses() { grep -E '^(de)?bufs ' "$target" | cut -f2- | tr ' ' '\n' | - grep -Ev '(strength|dark-embrace|feel-no-pain|metallicize|rupture)' | + grep -Ev '(strength|dark-embrace|feel-no-pain|metallicize|rupture|barricade)' | cut -d',' -f1 }