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 |

infernal-blade+ (460B)


      1 skill
      2 _cost 0
      3 find bdd/cards/red -type f | shuf | head -n1 |
      4 	while read card;do
      5 		n=$(basename "$card")
      6 		c=$(grep -E '^_cost' $card | cut -d ' ' -f2)
      7 		_addcard 1 $n fight/hand
      8 		v=$(find fight/hand -name "$n-*" | sort -r | head -n1)
      9 		sed -i -E '/^_cost/ s/[0-9]/0/' "$v"
     10 		sed -i -E "$ a\sed -i -E '/^_cost/ s/[0-9]/$c/' fight/discard/$(basename $v)" "$v"
     11 		sed -i -E "$ a\sed -i -E '/_refreshUI/ {n;N;d}' fight/discard/$(basename $v)" "$v"
     12 	done
     13 _exhaust