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 534f4b3f00a9c69ecaf5754f67d3a7f8fedd37f0
parent e9899e7408c3cf5d847a9223fef7bdbd97abda42
Auterice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Sat, 22 Jun 2024 22:05:42 +0200

Ajout evolve

Bug sur infernal-blade, pas executable ?
TODO

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

diff --git a/bdd/cards/red/evolve b/bdd/cards/red/evolve @@ -0,0 +1,3 @@ +power +_cost 1 +_status evolve 1 player diff --git a/utils b/utils @@ -429,6 +429,7 @@ endturn() { } _draw() { + local card _hasstatus player no-draw && return 0 nbtodraw="$1" for nb in $(seq "$nbtodraw");do @@ -436,7 +437,10 @@ _draw() { card=$(find fight/stack -type f | shuf | head -n 1) chmod +x "$card" echo mv "$card" fight/hand + isstatus=$(grep "^status" "$card") mv "$card" fight/hand + _hasstatus player evolve && [ ! -z "$isstatus" ] && + _draw 1 done } @@ -500,7 +504,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|combust|corruption)' | + grep -Ev '(strength|dark-embrace|feel-no-pain|metallicize|rupture|barricade|berserk|brutality|demon-form|juggernaut|combust|corruption|evolve)' | cut -d',' -f1 }