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 16635532c891ac386ff1cff77027bd441e980718 parent 77d540f57ca5fd990e9d71be688a95725e86fe92 Auterice: Arthur Pons <arthur.pons@unistra.fr> Date: Thu, 20 Jun 2024 22:24:55 +0200 + burning-pact, plus de sort des actions cartes En fait l'ordre du script des cartes est important donc on garde Diffstat:
A | bdd/cards/burning-pact | | | 6 | ++++++ |
M | bdd/cards/iron-wave | | | 2 | +- |
M | utils | | | 3 | +-- |
3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/bdd/cards/burning-pact b/bdd/cards/burning-pact @@ -0,0 +1,6 @@ +_cost 1 +find fight/hand -type f | + grep -v "$0" | + fzy | + while read card;do _exhaust $card; done +_draw 2 diff --git a/bdd/cards/iron-wave b/bdd/cards/iron-wave @@ -1,3 +1,3 @@ _cost 1 -_defend 5 _attack 5 1 +_defend 5 diff --git a/utils b/utils @@ -102,8 +102,7 @@ _addcard() { $(cat bdd/cards/$name | sed -E '/^_(cost|defend) / s/$/ player/; /^_(attack|status) / s/$/ "${1:?need a target}" fight\/player/; - /^_exhaust$/ s/$/ "$0"/' | - sort) + /^_exhaust$/ s/$/ "$0"/') _discard "\$0" _refreshUI .