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 3d172735f0169b68a981ab122797901d381b3a6d
parent f4c62fdd607e65d46824c26c23057dac38621b8d
Auterice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Sat, 22 Jun 2024 21:45:55 +0200

Ajout corruption

et déplacement clash

Diffstat:
Dbdd/cards/clash | 4----
Abdd/cards/red/clash | 3+++
Abdd/cards/red/corruption | 3+++
Mutils | 7++++++-
4 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/bdd/cards/clash b/bdd/cards/clash @@ -1,4 +0,0 @@ -attack -_cost 0 -_attack 14 1 - diff --git a/bdd/cards/red/clash b/bdd/cards/red/clash @@ -0,0 +1,3 @@ +attack +_cost 0 +_attack 14 1 diff --git a/bdd/cards/red/corruption b/bdd/cards/red/corruption @@ -0,0 +1,3 @@ +power +_cost 3 +_status corruption 1 player diff --git a/utils b/utils @@ -484,6 +484,11 @@ _status() { fi else echo sed --follow-symlinks -i -E "/^$type/ s/$/ $stat,$nbturns/" "$t" + [ "$stat" = "corruption" ] && { + grep -rH "^skill" fight | cut -d':' -f1 | + xargs -r sed -i -E '/^_cost/ s/[0-9]/0/; + /^_discard/ i\_exhaust "$0"'; + _updatecardexecutability;} sed --follow-symlinks -i -E "/^$type/ s/$/ $stat,$nbturns/" "$t" fi done @@ -495,7 +500,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)' | + grep -Ev '(strength|dark-embrace|feel-no-pain|metallicize|rupture|barricade|berserk|brutality|demon-form|juggernaut|combust|corruption)' | cut -d',' -f1 }