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 57d808dd7e150de0c1217122b5b0268db859186e
parent 37df535e31727d945d5559a4469eba9c59f85807
Auterice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Sat, 22 Jun 2024 19:26:04 +0200

Ajout combust

Diffstat:
Abdd/cards/combust | 2++
Mutils | 6+++++-
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/bdd/cards/combust b/bdd/cards/combust @@ -0,0 +1,2 @@ +_cost 1 +_status combust 1 player diff --git a/utils b/utils @@ -381,6 +381,10 @@ endturn() { done _hasstatus player metallicize && _defend $(_getremainingstatusturns player metallicize) player + _hasstatus player combust && { + v="$(_getremainingstatusturns player combust)" + _heal "-$v" fight/hand + for i in $(find fight/ennemies -type l);do _dodamage $((5*$v)) $i player;done ;} _execnextmove _hasstatus player demon-form && _status strength $(_getremainingstatusturns player demon-form) player @@ -473,7 +477,7 @@ _getstatuses() { grep -E '^(de)?bufs ' "$target" | cut -f2- | tr ' ' '\n' | - grep -Ev '(strength|dark-embrace|feel-no-pain|metallicize|rupture|barricade|berserk|brutality|demon-form|juggernaut)' | + grep -Ev '(strength|dark-embrace|feel-no-pain|metallicize|rupture|barricade|berserk|brutality|demon-form|juggernaut|combust)' | cut -d',' -f1 }