From 8100c45446ba12c056ff8a2b4e56783931abc960 Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 15 Apr 2018 09:25:53 +0100 Subject: [PATCH] Make heart and cell appear a little more often when game is complete. --- src/entities/items/cell.c | 2 +- src/entities/items/heart.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entities/items/cell.c b/src/entities/items/cell.c index 5162ed8..f844040 100644 --- a/src/entities/items/cell.c +++ b/src/entities/items/cell.c @@ -48,7 +48,7 @@ Entity *initCell(void) static void init(void) { - if (game.isComplete && rand() % 5 > 0) + if (game.isComplete && rand() % 3 > 0) { self->alive = ALIVE_DEAD; } diff --git a/src/entities/items/heart.c b/src/entities/items/heart.c index cd926e9..93d7032 100644 --- a/src/entities/items/heart.c +++ b/src/entities/items/heart.c @@ -50,7 +50,7 @@ Entity *initHeart(Entity *e) static void init(void) { - if (game.isComplete && rand() % 5 > 0) + if (game.isComplete && rand() % 3 > 0) { self->alive = ALIVE_DEAD; }