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 f8e37ffb27a42f3f46b4e56aaba10b868ede6fb4
parent 5cdc59e1d8eb8e35a455dd0c7ea297d5c26654a3
Auterice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Fri, 21 Jun 2024 14:46:57 +0200

Ajout flex

Ajout status strength-down
Correction strenght -> strength
Correction bug discrimination bufs/debufs (le case était mal écrit)

Diffstat:
M.gitignore | 1+
Abdd/cards/flex | 3+++
Mbdd/cards/inflame | 2+-
Mutils | 8++++++--
4 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -4,3 +4,4 @@ map/ UI player fight/ +*.sw? diff --git a/bdd/cards/flex b/bdd/cards/flex @@ -0,0 +1,3 @@ +_cost 0 +_strength 2 player +_status strength-down 2 player diff --git a/bdd/cards/inflame b/bdd/cards/inflame @@ -1,2 +1,2 @@ _cost 1 -_strenght 2 player +_strength 2 player diff --git a/utils b/utils @@ -256,6 +256,10 @@ endturn() { _execnextmove _setstat fight/player block 0 _setstat fight/player energy 3 + if (_hasstatus player strength-down);then + _status strength "-$(_getremainingstatusturns player strength-down)" player + _removestatus player strength-down + fi _decreasestatuses _nextmove _newhand @@ -309,7 +313,7 @@ _status() { nbturns="$2" target="$3" case "$stat" in - ('vulnerable|weak') type="debufs";; + (vulnerable|weak|strength-down) type="debufs";; (*) type="bufs";; esac if $(_hasstatus "$target" "$stat");then @@ -398,7 +402,7 @@ _execnextmove() { #### # Les fonctions appelées pas les cartes -_strenght() { +_strength() { value="$1" target="$2" _status strength "$value" "$target"