summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2023-10-17 18:48:27 -0500
committercitrons <citrons@mondecitronne.com>2023-10-17 18:48:27 -0500
commit0a1c97a1cd577d6eb7cfdbcf59a9985fcc94fb7c (patch)
tree733b695208014bd5b1102adff71ac364d2c8e9dc
parent31530c9b9da7a579406633792507177c9435c5eb (diff)
deplete stamina when building in-airHEADmaster
-rw-r--r--world.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/world.c b/world.c
index 33ce1ab..635205e 100644
--- a/world.c
+++ b/world.c
@@ -185,6 +185,7 @@ void player_place(world *w, int x, int y) {
set_tile(w, w->player.pos, TILE_BLOCK_WHITE);
w->player.pos = push;
w->player.scores[TILE_LIGHT]--;
+ if (w->player.stamina > 0) w->player.stamina -= 2;
}
}
}