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 a12775281ef61278f6523d7bc8c33fa042300e52 parent 0591669ee4ca8de4ad5cc8d8f47a4e418c60a08c Auterice: Arthur Pons <arthur.pons@unistra.fr> Date: Thu, 20 Jun 2024 16:13:40 +0200 Nouvelles cartes et écriture directe fn directes Au pire c'est pas grave On cachera les _ dans l'affichage quand le contenu des cartes sera affiché. Si c'est un souci on reviendra dessus. Diffstat:
M | bdd/cards/bash | | | 6 | +++--- |
A | bdd/cards/battle-trance | | | 2 | ++ |
M | bdd/cards/defend | | | 4 | ++-- |
A | bdd/cards/iron-wave | | | 2 | ++ |
A | bdd/cards/pommel-strike | | | 2 | ++ |
M | bdd/cards/shrug-it-off | | | 6 | +++--- |
M | bdd/cards/strike | | | 4 | ++-- |
M | utils | | | 3 | +-- |
8 files changed, 17 insertions(+), 12 deletions(-)
diff --git a/bdd/cards/bash b/bdd/cards/bash @@ -1,3 +1,3 @@ -cost 2 -attack 8 -status vulnerable 2 +_cost 2 +_attack 8 +_status vulnerable 2 diff --git a/bdd/cards/battle-trance b/bdd/cards/battle-trance @@ -0,0 +1,2 @@ +_draw 3 +_nodraw diff --git a/bdd/cards/defend b/bdd/cards/defend @@ -1,2 +1,2 @@ -cost 1 -defend 5 +_cost 1 +_defend 5 diff --git a/bdd/cards/iron-wave b/bdd/cards/iron-wave @@ -0,0 +1,2 @@ +_block 5 +_attack 5 diff --git a/bdd/cards/pommel-strike b/bdd/cards/pommel-strike @@ -0,0 +1,2 @@ +_attack 9 +_draw 1 diff --git a/bdd/cards/shrug-it-off b/bdd/cards/shrug-it-off @@ -1,3 +1,3 @@ -cost 1 -defend 8 -draw 1 +_cost 1 +_defend 8 +_draw 1 diff --git a/bdd/cards/strike b/bdd/cards/strike @@ -1,2 +1,2 @@ -cost 1 -attack 6 +_cost 1 +_attack 6 diff --git a/utils b/utils @@ -86,8 +86,7 @@ _addcard() { . ./utils $(cat bdd/cards/$2 | sed -E '/(cost|defend)/ s/$/ player/; - /^attack/ s/$/ "${1:?need a target}"/; - /^(attack|defend|cost|status|draw)/ s/^/_/' | sort) + /^attack/ s/$/ "${1:?need a target}"/' | sort) _discard "\$0" _refreshUI .