From cc4cf75742895f53f6cc4df53a922042d62b78ce Mon Sep 17 00:00:00 2001 From: Cameron Reikes Date: Tue, 25 Oct 2022 16:26:48 -0700 Subject: [PATCH] Replenesh spice on collection of gold --- gamestate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gamestate.c b/gamestate.c index f4a60b9..c483775 100644 --- a/gamestate.c +++ b/gamestate.c @@ -551,7 +551,8 @@ void process(struct GameState *gs, float dt) // update gold win condition if (V2length(V2sub(p->pos, gs->goldpos)) < GOLD_COLLECT_RADIUS) { - p->goldness += 0.2; + p->goldness += 0.1; + p->spice_taken_away = 0.0f; gs->goldpos = (V2){.x = hash11(gs->time) * 20.0f, .y = hash11(gs->time - 13.6f) * 20.0f}; }