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 |

commit d52a4198efe6721f6554f051d882f5525f713ff2
parent dfc70f7fdfda16c5ae58f4bd093beb45d69f1c48
Auterice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Fri, 21 Jun 2024 18:43:57 +0200

Ajout homokinesis

Diffstat:
Abdd/cards/homokinesis | 3+++
Mutils | 1+
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/bdd/cards/homokinesis b/bdd/cards/homokinesis @@ -0,0 +1,3 @@ +_cost 1 +_heal -2 +_attack 15 1 diff --git a/utils b/utils @@ -265,6 +265,7 @@ _nodraw () { _heal() { maxhealth=$(_getstat player maxhealth) newhealth=$(( $(_getstat player health | cut -f2) + $1 )) + echo _setstat fight/player health $(( $newhealth > $maxhealth ? $maxhealth : $newhealth )) _setstat fight/player health $(( $newhealth > $maxhealth ? $maxhealth : $newhealth )) }