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 c2db31266ffd55d8b2352a8f05b758649c8a3e14
parent 1866e55eb28582110b858fcd10cd2e21d8164daa
Auterice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Fri, 21 Jun 2024 20:30:36 +0200

Ajout berkserk

Diffstat:
Abdd/cards/berserk | 3+++
Mutils | 4+++-
2 files changed, 6 insertions(+), 1 deletion(-)

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