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 e1001d5d8926b475a297b6c49898f5e9a9164c0b parent e7b3eefdae68070375168f59c00f2b0d595b2fbb Auterice: Arthur Pons <arthur.pons@unistra.fr> Date: Fri, 21 Jun 2024 19:34:32 +0200 Ajout metallicize Sans douleur Diffstat:
A | bdd/cards/metallicize | | | 2 | ++ |
M | utils | | | 11 | ++++++----- |
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/bdd/cards/metallicize b/bdd/cards/metallicize @@ -0,0 +1,2 @@ +_cost 1 +_status metallicize 3 player diff --git a/utils b/utils @@ -278,13 +278,14 @@ _exetherealcard() { endturn() { _exetherealcard _setstat fight/ennemies/* block 0 + _hasstatus player metallicize && + _defend $(_getremainingstatusturns player metallicize) player _execnextmove _setstat fight/player block 0 _setstat fight/player energy 3 - if (_hasstatus player strength-down);then - _status strength "-$(_getremainingstatusturns player strength-down)" player - _removestatus player strength-down - fi + _hasstatus player strength-down && { + _status strength "-$(_getremainingstatusturns player strength-down)" player; + _removestatus player strength-down; } _decreasestatuses _removestatus player flame-barrier _nextmove @@ -362,7 +363,7 @@ _getstatuses() { grep -E '^(de)?bufs ' "$target" | cut -f2- | tr ' ' '\n' | - grep -Ev '(strength|dark-embrace|feel-no-pain)' | + grep -Ev '(strength|dark-embrace|feel-no-pain|metallicize)' | cut -d',' -f1 }