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 881e07d76f66d7657f6b51bc797242ddb08829eb
parent 11bb3c2b38ef2ccecc902166d1e84ee7d8c2b7be
Auterice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Wed, 19 Jun 2024 22:52:51 +0200

Retrait showstats, servait à rien ici

Diffstat:
Mutils | 17+++--------------
1 file changed, 3 insertions(+), 14 deletions(-)

diff --git a/utils b/utils @@ -1,12 +1,5 @@ #! /bin/sh -_showstat() { - target="$1" - stat="$2" - [ "$stat" = "name" ] && { basename $target; return; } - grep "$stat" "$target" | sed 's/\t/ : /' -} - grayed="\x1b[90m" norm="\x1b[0m" @@ -37,17 +30,13 @@ _makeui() { <<-. cat > $tmpdir/player Player - $(_showstat player gold) - $(_showstat player health) - $(_showstat player block) - $(_showstat player energy) + $(cat player | sed 's/ / : /') . <<-. cat > $tmpdir/en Ennemies - $(_showstat fight/ennemies/* name) - $(_showstat fight/ennemies/* health) - $(_showstat fight/ennemies/* block) + $(basename fight/ennemies/*) + $(cat fight/ennemies/* | grep -v moves | sed 's/ / : /') $(echo "\nNext move :\n") $(cat $tmpdir/nextmove | tr -d '_') .