From 0a1c97a1cd577d6eb7cfdbcf59a9985fcc94fb7c Mon Sep 17 00:00:00 2001 From: citrons Date: Tue, 17 Oct 2023 18:48:27 -0500 Subject: deplete stamina when building in-air --- world.c | 1 + 1 file changed, 1 insertion(+) (limited to 'world.c') 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; } } } -- cgit v1.2.3