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 |

havoc (385B)


      1 skill
      2 _cost 1
      3 if [ ! $(find fight/stack -type f | wc -l) = "0" ];then
      4 	find fight/stack -type f | shuf | head -n1 |
      5 	while read card;do
      6 		n=$(basename "$card")
      7 		e=$(find fight/ennemies -type l | shuf | head -n1)
      8 		sed '/^_cost/ s/[0-9]/0/'
      9 		chmod +x "$card"
     10 		echo "playing $n on $e"
     11 		eval $card $e
     12 		_exhaust fight/discard/$n
     13 	done
     14 else
     15 	echo "no card in stack to play"
     16 	exit 0
     17 fi