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 f1feb4c8d12002e82eac764259a565fad1332ebe parent ee99b355a737cfd3c46ed6bf049f099dbd77401f Auterice: Arthur Pons <arthur.pons@unistra.fr> Date: Fri, 21 Jun 2024 16:16:22 +0200 Implémentation cartes ethereal Via l'ajout de carnage Diffstat:
A | bdd/cards/carnage | | | 3 | +++ |
M | utils | | | 6 | ++++++ |
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/bdd/cards/carnage b/bdd/cards/carnage @@ -0,0 +1,3 @@ +_cost 2 +_attack 20 1 +ethereal diff --git a/utils b/utils @@ -260,8 +260,14 @@ _heal() { _setstat fight/player health $(( $newhealth > $maxhealth ? $maxhealth : $newhealth )) } +_exetherealcard() { + grep -HE '^ethereal' fight/hand/* | + cut -d: -f1 | + while read card;do _exhaust "$card"; done +} endturn() { + _exetherealcard _setstat fight/ennemies/* block 0 _execnextmove _setstat fight/player block 0