From 645ba66e2dabafd6edda743347ce420174ec4274 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Mon, 5 Dec 2022 19:50:27 -0800 Subject: 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. --- src/game.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game.c') 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, -- cgit v1.2.3