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