diff --git a/Plague.g1a b/Plague.g1a index 88654ad..d5aba1d 100644 Binary files a/Plague.g1a and b/Plague.g1a differ diff --git a/src/core.c b/src/core.c index d0496e3..7338ccb 100644 --- a/src/core.c +++ b/src/core.c @@ -43,6 +43,13 @@ void next_frame(struct game *current_game) } } current_game->time += ENGINE_TICK; + if (current_game->time > 10000) + { + current_game->dna += 1; + current_game->time = 0; + + // Epidemic propagation simulation to add here + } } diff --git a/src/display_engine.c b/src/display_engine.c index 0e36e00..b36070b 100644 --- a/src/display_engine.c +++ b/src/display_engine.c @@ -39,9 +39,6 @@ void display_foreground(const int background, const struct game *current_game) break; case 3: - - dprint(1, 35, C_BLACK, "C:%d S:%d L:%d", current_game->contagion, current_game->severity, current_game->lethality); - dprint(102, 37, C_BLACK, "%d", current_game->dna); length = 67 * current_game->contagion / 26; diff --git a/src/main.c b/src/main.c index 2396119..6e4699b 100644 --- a/src/main.c +++ b/src/main.c @@ -44,7 +44,7 @@ int main(void) .severity = 0, .lethality = 0, - .dna = 100, + .dna = 0, .mutations_count = {0, 0, 0}, .mutations_selected = {0, 0, 0}, diff --git a/src/mutation_engine.c b/src/mutation_engine.c index c33297a..c534c93 100644 --- a/src/mutation_engine.c +++ b/src/mutation_engine.c @@ -145,13 +145,6 @@ void update_disease(struct game *current_game) struct mutation *ability = get_mutation_data(2, current_game->mutations_selected[1]); struct mutation *transmission = get_mutation_data(3, current_game->mutations_selected[2]); - dclear(C_WHITE); - dprint(0, 0, C_BLACK, "SY C:%d S:%d L:%d", symptom->contagion, symptom->severity, symptom->lethality); - dprint(0, 8, C_BLACK, "AB C:%d S:%d L:%d", ability->contagion, ability->severity, ability->lethality); - dprint(0, 16, C_BLACK, "TR C:%d S:%d L:%d", transmission->contagion, transmission->severity, transmission->lethality); - dupdate(); - getkey(); - current_game->contagion = symptom->contagion + ability->contagion + transmission->contagion; current_game->severity = symptom->severity + ability->severity + transmission->severity; current_game->lethality = symptom->lethality + ability->lethality + transmission->lethality;