From e1bbe280453359d516479b6c275a2e75f1f41609 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Tue, 5 Aug 2025 21:54:04 +0200 Subject: [PATCH] mapgen: reduced amount of spawned actors --- src/defs.s | 4 ++-- src/mapgen.s | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/defs.s b/src/defs.s index 7d5fadd..ce128fd 100644 --- a/src/defs.s +++ b/src/defs.s @@ -21,8 +21,8 @@ #define NULL 0 #define UNITS_MAX 20 -#define UNITS_SPAWN_MIN 4 -#define UNITS_SPAWN_MASK 7 +#define UNITS_SPAWN_MIN 2 +#define UNITS_SPAWN_MASK 3 #define STACK_BEGIN 0xDFFF diff --git a/src/mapgen.s b/src/mapgen.s index 3ee5a31..127dc81 100644 --- a/src/mapgen.s +++ b/src/mapgen.s @@ -439,7 +439,7 @@ mapgen_place_actors: ld b, UNITS_MAX - 1 push hl call rand - and a, UNITS_SPAWN_MASK + and a, UNITS_SPAWN_MASK add a, UNITS_SPAWN_MIN ld b, a ; b = units to spawn, at least 4 but might be more -- 2.30.2