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 e47cad6117c241b6488f532d61baf70907086889 parent 98674b6df7ddd68fa582502974098da136af1318 Auterice: Arthur Pons <arthur.pons@unistra.fr> Date: Sat, 22 Jun 2024 20:22:59 +0200 Catégorisation des cartes Pour le moment on fait rien avec Diffstat:
69 files changed, 74 insertions(+), 0 deletions(-)
diff --git a/bdd/cards/red/anger b/bdd/cards/red/anger @@ -1,3 +1,4 @@ +attack _cost 0 _attack 6 1 _addcard 1 anger fight/discard diff --git a/bdd/cards/red/barricade b/bdd/cards/red/barricade @@ -1,2 +1,3 @@ +power _cost 3 _status barricade 1 player diff --git a/bdd/cards/red/bash b/bdd/cards/red/bash @@ -1,3 +1,4 @@ +attack _cost 2 _attack 8 1 _status vulnerable 2 diff --git a/bdd/cards/red/battle-trance b/bdd/cards/red/battle-trance @@ -1,3 +1,4 @@ +skill _cost 0 _draw 3 _status no-draw 1 player diff --git a/bdd/cards/red/berserk b/bdd/cards/red/berserk @@ -1,3 +1,4 @@ +power _cost 0 _status vulnerable 2 player _status berserk 1 player diff --git a/bdd/cards/red/blood-for-blood b/bdd/cards/red/blood-for-blood @@ -1,2 +1,3 @@ +attack _cost 4 _attack 18 1 diff --git a/bdd/cards/red/bloodletting b/bdd/cards/red/bloodletting @@ -1,3 +1,4 @@ +skill _cost 0 _heal -3 _changestat player energy +2 diff --git a/bdd/cards/red/bludgeon b/bdd/cards/red/bludgeon @@ -1,2 +1,3 @@ +attack _cost 3 _attack 32 1 diff --git a/bdd/cards/red/body-slam b/bdd/cards/red/body-slam @@ -1,3 +1,4 @@ +attack _cost 1 curblock=$(_getstat player block) _attack $curblock 1 diff --git a/bdd/cards/red/brutality b/bdd/cards/red/brutality @@ -1,2 +1,3 @@ +power _cost 0 _status brutality 1 player diff --git a/bdd/cards/red/burning-pact b/bdd/cards/red/burning-pact @@ -1,3 +1,4 @@ +skill _cost 1 find fight/hand -type f | grep -v "$0" | diff --git a/bdd/cards/red/carnage b/bdd/cards/red/carnage @@ -1,3 +1,4 @@ +attack _cost 2 _attack 20 1 ethereal diff --git a/bdd/cards/red/cleave b/bdd/cards/red/cleave @@ -1,2 +1,3 @@ +attack _cost 1 _attack 8 1 all diff --git a/bdd/cards/red/clothesline b/bdd/cards/red/clothesline @@ -1,3 +1,4 @@ +attack _cost 2 _attack 12 1 _status weak 2 diff --git a/bdd/cards/red/combust b/bdd/cards/red/combust @@ -1,2 +1,3 @@ +power _cost 1 _status combust 1 player diff --git a/bdd/cards/red/dark-embrace b/bdd/cards/red/dark-embrace @@ -1,2 +1,3 @@ +power _cost 2 _status dark-embrace 1 player diff --git a/bdd/cards/red/defend b/bdd/cards/red/defend @@ -1,2 +1,3 @@ +skill _cost 1 _defend 5 diff --git a/bdd/cards/red/demon-form b/bdd/cards/red/demon-form @@ -1,2 +1,3 @@ +power _cost 3 _status demon-form 2 player diff --git a/bdd/cards/red/disarm b/bdd/cards/red/disarm @@ -1,3 +1,4 @@ +skill _cost 1 _strength -2 ${1:-need target} _exhaust diff --git a/bdd/cards/red/double-tap b/bdd/cards/red/double-tap @@ -1,2 +1,3 @@ +skill _cost 1 _status double-tap 1 player diff --git a/bdd/cards/red/dropkick b/bdd/cards/red/dropkick @@ -1,3 +1,4 @@ +attack _cost 1 _attack 5 1 _hasstatus "$1" vulnerable && { _changestat player energy +1 ; _draw 1; } diff --git a/bdd/cards/red/entrench b/bdd/cards/red/entrench @@ -1,2 +1,3 @@ +skill _cost 2 _changestat player block *2 diff --git a/bdd/cards/red/exhume b/bdd/cards/red/exhume @@ -1,3 +1,4 @@ +skill _cost 1 find fight/exhaust -type f | fzy | diff --git a/bdd/cards/red/feed b/bdd/cards/red/feed @@ -1,3 +1,4 @@ +attack _cost 1 _attack 10 1 _exhaust diff --git a/bdd/cards/red/feel-no-pain b/bdd/cards/red/feel-no-pain @@ -1,2 +1,3 @@ +power _cost 1 _status feel-no-pain 3 player diff --git a/bdd/cards/red/fiend-fire b/bdd/cards/red/fiend-fire @@ -1,3 +1,4 @@ +attack _cost 2 cards=$(find fight/hand -type f | grep -v "$0") nbcards=$(echo "$cards" | wc -l) diff --git a/bdd/cards/red/flame-barrier b/bdd/cards/red/flame-barrier @@ -1,3 +1,4 @@ +skill _cost 2 _defend 12 _status flame-barrier 4 player diff --git a/bdd/cards/red/flex b/bdd/cards/red/flex @@ -1,3 +1,4 @@ +skill _cost 0 _strength 2 player _status strength-down 2 player diff --git a/bdd/cards/red/ghostly-armor b/bdd/cards/red/ghostly-armor @@ -1,3 +1,4 @@ +skill _cost 1 _defend 10 ethereal diff --git a/bdd/cards/red/havoc b/bdd/cards/red/havoc @@ -1,3 +1,4 @@ +skill _cost 1 if [ ! $(find fight/stack -type f | wc -l) = "0" ];then find fight/stack -type f | shuf | head -n1 | diff --git a/bdd/cards/red/headbutt b/bdd/cards/red/headbutt @@ -1,3 +1,4 @@ +attack _cost 1 _attack 9 1 find fight/discard -type f | diff --git a/bdd/cards/red/heavy-blade b/bdd/cards/red/heavy-blade @@ -1,2 +1,3 @@ +attack _cost 2 _attack 14 1 diff --git a/bdd/cards/red/homokinesis b/bdd/cards/red/homokinesis @@ -1,3 +1,4 @@ +attack _cost 1 _heal -2 _attack 15 1 diff --git a/bdd/cards/red/immolate b/bdd/cards/red/immolate @@ -1,3 +1,4 @@ _cost 2 +attack _attack 21 1 all _addcard 1 burn fight/discard diff --git a/bdd/cards/red/impervious b/bdd/cards/red/impervious @@ -1,3 +1,4 @@ +skill _cost 2 _defend 30 _exhaust diff --git a/bdd/cards/red/infernal-blade b/bdd/cards/red/infernal-blade @@ -1,3 +1,4 @@ +skill _cost 1 find bdd/cards/red -type f | shuf | head -n1 | while read card;do diff --git a/bdd/cards/red/inflame b/bdd/cards/red/inflame @@ -1,2 +1,3 @@ +power _cost 1 _strength 2 player diff --git a/bdd/cards/red/intimidate b/bdd/cards/red/intimidate @@ -1,3 +1,4 @@ +skill _cost 0 _status weak 1 all _exhaust diff --git a/bdd/cards/red/iron-wave b/bdd/cards/red/iron-wave @@ -1,3 +1,4 @@ +attack _cost 1 _attack 5 1 _defend 5 diff --git a/bdd/cards/red/juggernaut b/bdd/cards/red/juggernaut @@ -1,2 +1,3 @@ +power _cost 2 _status juggernaut 5 player diff --git a/bdd/cards/red/limit-break b/bdd/cards/red/limit-break @@ -1,3 +1,4 @@ +skill _cost 1 cs=$(_getremainingstatusturns player strength) _strength $cs player diff --git a/bdd/cards/red/metallicize b/bdd/cards/red/metallicize @@ -1,2 +1,3 @@ +power _cost 1 _status metallicize 3 player diff --git a/bdd/cards/red/offering b/bdd/cards/red/offering @@ -1,3 +1,4 @@ +skill _cost 0 _heal -6 _changestat player energy +2 diff --git a/bdd/cards/red/perfected-strike b/bdd/cards/red/perfected-strike @@ -1,2 +1,3 @@ +attack _cost 2 _attack $(( 6 + 2*$(find deck -name '*strike*' -and -not -name '*.swp*' | wc -l) )) 1 diff --git a/bdd/cards/red/pommel-strike b/bdd/cards/red/pommel-strike @@ -1,3 +1,4 @@ +attack _cost 1 _attack 9 1 _draw 1 diff --git a/bdd/cards/red/power-through b/bdd/cards/red/power-through @@ -1,3 +1,4 @@ +skill _cost 1 _defend 15 _addcard 2 wounds fight/hand diff --git a/bdd/cards/red/pummel b/bdd/cards/red/pummel @@ -1,3 +1,4 @@ +attack _cost 1 _attack 2 4 _exhaust diff --git a/bdd/cards/red/rage b/bdd/cards/red/rage @@ -1,2 +1,3 @@ +skill _cost 0 _status rage 3 player diff --git a/bdd/cards/red/rampage b/bdd/cards/red/rampage @@ -1,3 +1,4 @@ +attack _cost 1 _attack 8 1 curatt=$(grep -E "^_attack" "$0" | cut -d' ' -f2) diff --git a/bdd/cards/red/reaper b/bdd/cards/red/reaper @@ -1,3 +1,4 @@ +attack _cost 2 _attack 4 1 all _exhaust diff --git a/bdd/cards/red/reckless-charge b/bdd/cards/red/reckless-charge @@ -1,3 +1,4 @@ +attack _cost 0 _attack 7 1 _addcard 1 dazed fight/stack diff --git a/bdd/cards/red/rupture b/bdd/cards/red/rupture @@ -1,2 +1,3 @@ +power _cost 1 _status rupture 1 player diff --git a/bdd/cards/red/seeing-red b/bdd/cards/red/seeing-red @@ -1,3 +1,4 @@ +skill _cost 1 _changestat player energy +2 _exhaust diff --git a/bdd/cards/red/sentinel b/bdd/cards/red/sentinel @@ -1,2 +1,3 @@ +skill _cost 1 _defend 5 diff --git a/bdd/cards/red/shockwave b/bdd/cards/red/shockwave @@ -1,3 +1,4 @@ +skill _cost 2 _status weak 3 all _status vulnerable 3 all diff --git a/bdd/cards/red/shrug-it-off b/bdd/cards/red/shrug-it-off @@ -1,3 +1,4 @@ +skill _cost 1 _defend 8 _draw 1 diff --git a/bdd/cards/red/spot-weakness b/bdd/cards/red/spot-weakness @@ -1,3 +1,4 @@ +skill _cost 1 grep -q "attack" $tmpdir/nextmove && _strength 3 player diff --git a/bdd/cards/red/strike b/bdd/cards/red/strike @@ -1,2 +1,3 @@ +attack _cost 1 _attack 6 1 diff --git a/bdd/cards/red/sword-boomerang b/bdd/cards/red/sword-boomerang @@ -1,3 +1,4 @@ +attack _cost 1 t=$(find fight/ennemies -type l | shuf | head -n1) _attack 3 1 $t player $0 diff --git a/bdd/cards/red/thunderclap b/bdd/cards/red/thunderclap @@ -1,3 +1,4 @@ +attack _cost 1 _attack 4 1 all _status vulnerable 1 all diff --git a/bdd/cards/red/true-grit b/bdd/cards/red/true-grit @@ -1,3 +1,4 @@ +skill _cost 1 _defend 7 find fight/hand -type f | diff --git a/bdd/cards/red/twin-strike b/bdd/cards/red/twin-strike @@ -1,2 +1,3 @@ +attack _cost 1 _attack 5 2 diff --git a/bdd/cards/red/uppercut b/bdd/cards/red/uppercut @@ -1,3 +1,4 @@ +attack _cost 2 _attack 13 1 _status vulnerable 1 diff --git a/bdd/cards/red/warcry b/bdd/cards/red/warcry @@ -1,3 +1,4 @@ +skill _cost 0 _draw 1 _refreshUI diff --git a/bdd/cards/red/whirlwind b/bdd/cards/red/whirlwind @@ -1,3 +1,4 @@ +attack nrj=$(_getstat player energy) _cost $nrj _attack 5 $nrj all diff --git a/bdd/cards/statuses/burn b/bdd/cards/statuses/burn @@ -1 +1,2 @@ +status _dodamage 2 player burn "$0" diff --git a/bdd/cards/statuses/dazed b/bdd/cards/statuses/dazed @@ -1 +1,2 @@ +status ethereal diff --git a/bdd/cards/statuses/wounds b/bdd/cards/statuses/wounds @@ -0,0 +1 @@ +status diff --git a/utils b/utils @@ -2,6 +2,12 @@ grayed="\x1b[90m" norm="\x1b[0m" + +alias attack=":" +alias skill=":" +alias power=":" +alias status=":" +alias curse=":" alias ethereal=":" _getstat() {