From: Lukas Krickl Date: Thu, 21 Aug 2025 18:27:24 +0000 (+0200) Subject: unit_cpu: Made the default AI follow the player a little bit less X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=c36f95a079d271e2ff392ec21cbf254c29b81b56;p=gbrg%2F.git unit_cpu: Made the default AI follow the player a little bit less --- diff --git a/src/unit_cpu.s b/src/unit_cpu.s index 961ecb0..2325cad 100644 --- a/src/unit_cpu.s +++ b/src/unit_cpu.s @@ -24,7 +24,7 @@ unit_handle_cpu_inputs: ; there's a change the ; unit will just move randomly anyway call rand - and a, 0x7F + and a, 0x2 cp a, 0 jp z, @random_move @@ -45,7 +45,7 @@ unit_handle_cpu_inputs: ; are we in scan range? cp a, UNIT_SCAN_RANGE_Y jr nc, @not_in_y_range REL - cp a, 1 + cp a, 0 jr z, @not_in_y_range REL ; which direction? @@ -74,7 +74,7 @@ unit_handle_cpu_inputs: ; are we in scan range? cp a, UNIT_SCAN_RANGE_X jr nc, @not_in_x_range REL - cp a, 1 + cp a, 0 jr z, @not_in_x_range REL ; which direction?