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 |

makeui (367B)


      1 #! /bin/sh
      2 
      3 [ ! -e "player" ] && { printf "player doesn't exist\n"; exit 1; }
      4 
      5 showstat() {
      6 	[ "$2" = "name" ] && { basename $1; return; }
      7 	grep "$2" "$1" | sed 's/\t/ : /'
      8 }
      9 echo "Player\n"
     10 showstat player gold
     11 showstat player health
     12 showstat player energy
     13 echo
     14 echo "Ennemies\n"
     15 showstat map/1/* name
     16 showstat map/1/* health
     17 echo
     18 tree --noreport stack hand discard