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 b31aeae78d82b89be64c11d9247bed2a2c8becfc parent e3ccee7708945a02f78c71a25f096121b5582867 Auterice: Arthur Pons <arthur.pons@unistra.fr> Date: Fri, 21 Jun 2024 20:40:58 +0200 Ajout demon-form Diffstat:
A | bdd/cards/demon-form | | | 2 | ++ |
M | utils | | | 4 | +++- |
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/bdd/cards/demon-form b/bdd/cards/demon-form @@ -0,0 +1,2 @@ +_cost 3 +_status demon-form 2 player diff --git a/utils b/utils @@ -287,6 +287,8 @@ endturn() { _hasstatus player metallicize && _defend $(_getremainingstatusturns player metallicize) player _execnextmove + _hasstatus player demon-form && + _status strength $(_getremainingstatusturns player demon-form) player _hasstatus player barricade || _setstat fight/player block 0 _setstat fight/player energy 3 @@ -376,7 +378,7 @@ _getstatuses() { grep -E '^(de)?bufs ' "$target" | cut -f2- | tr ' ' '\n' | - grep -Ev '(strength|dark-embrace|feel-no-pain|metallicize|rupture|barricade|berserk|brutality)' | + grep -Ev '(strength|dark-embrace|feel-no-pain|metallicize|rupture|barricade|berserk|brutality|demon-form)' | cut -d',' -f1 }