diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-12-05 19:50:27 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-12-05 19:50:27 -0800 |
commit | 645ba66e2dabafd6edda743347ce420174ec4274 (patch) | |
tree | f1a1e542468ecac07a61f996bac8c94cff2a1271 /src/game.c | |
parent | 1d8f30eb26a13c5be62526e201948aaa16caf236 (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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, |