summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-12-05 19:50:27 -0800
committerVito Caputo <vcaputo@pengaru.com>2022-12-05 19:50:27 -0800
commit645ba66e2dabafd6edda743347ce420174ec4274 (patch)
treef1a1e542468ecac07a61f996bac8c94cff2a1271 /src/game.c
parent1d8f30eb26a13c5be62526e201948aaa16caf236 (diff)
sars,game: add --cheat flag intended for dev/testing
currently this just overrides teepee quantities to always be 128 128 is used instead of 256 so you can still exercise the teepee boost _without_ winning event, and it doesn't take long to collect two teepee boosts so iteration still isn't bad.
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index 5dadc91..a507e49 100644
--- a/src/game.c
+++ b/src/game.c
@@ -735,6 +735,9 @@ static void update_entities(play_t *play, game_t *game)
game->teepee->quantity = quantities[i].qty;
}
+ if (game->sars->cheat)
+ game->teepee->quantity = 128;
+
bonus_node_new(&(stage_conf_t){.parent = game->game_node, .active = 1, .alpha = 1.f, .name = "teepee-bonus", .layer = 6},
game->teepee->quantity,
&game->sars->projection_x,
© All Rights Reserved