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 77d540f57ca5fd990e9d71be688a95725e86fe92
parent c9c5d3a4432c8ddac981156b0bef96f3b70dd33c
Auterice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Thu, 20 Jun 2024 22:17:35 +0200

Correction bug gestion force négative

Ne serait pas arrivé si on gérait les statuts comme d'autres stats ?
Ajout de disarm

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

diff --git a/bdd/cards/disarm b/bdd/cards/disarm @@ -0,0 +1,3 @@ +_cost 1 +_strenght -2 ${1:-need target} +_exhaust diff --git a/utils b/utils @@ -350,12 +350,12 @@ _decreasestatuses() { _hasstatus() { local target="${1:?need target}" stat="$2" - grep -Eq "^(de)?bufs.*$stat,[0-9]+" "$target" + grep -Eq "^(de)?bufs.*$stat,-?[0-9]+" "$target" } _getremainingstatusturns() { local target="$1";stat="$2" - grep -Eo " $stat,[0-9]+" "$target" | cut -d',' -f2 + grep -Eo " $stat,-?[0-9]+" "$target" | cut -d',' -f2 } _removestatus() {