From 892863db05d2822f4fa9cc13cc0e6cfb85fbc59f Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Sun, 11 Sep 2022 21:52:53 -0400 Subject: [PATCH] Add bot support to new Shrink They move towards lasers that belong to them, and steer away from ones that don't. --- src/k_botsearch.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/k_botsearch.c b/src/k_botsearch.c index af7464c30..74a458bce 100644 --- a/src/k_botsearch.c +++ b/src/k_botsearch.c @@ -425,6 +425,16 @@ static BlockItReturn_t K_FindObjectsForNudging(mobj_t *thing) case MT_BUBBLESHIELDTRAP: K_AddDodgeObject(thing, side, 20); break; + case MT_SHRINK_GUN: + if (thing->target == globalsmuggle.botmo) + { + K_AddAttackObject(thing, side, 20); + } + else + { + K_AddDodgeObject(thing, side, 20); + } + break; case MT_RANDOMITEM: if (anglediff >= 45) {