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 6ac3399ce211d2411a1aecd1dc0bb0577c8c7cbf parent abb294faeda9dc8cb46ea5934733e791ff856f69 Auterice: Arthur Pons <arthur.pons@unistra.fr> Date: Thu, 20 Jun 2024 16:53:18 +0200 On randomise les cartes proposées à la fin Diffstat:
M | utils | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/utils b/utils @@ -208,6 +208,7 @@ _shufflediscard() { _choosecard() { find bdd/cards -type f | grep -Ev '(strike|defend|bash)$' | + shuf | head -n3 | xargs -n1 basename | fzy | @@ -216,6 +217,10 @@ _choosecard() { done } +_nodraw () { + echo +} + _heal() { maxhealth=$(_getstat player maxhealth) newhealth=$(( $(_getstat player health | cut -f2) + $1 ))