From 051f22ff93f0dfdd009aa4f3c6edb233e8b63d81 Mon Sep 17 00:00:00 2001 From: Bohica <53943479+Bohicatv@users.noreply.github.com> Date: Sun, 16 Nov 2025 10:12:12 -0800 Subject: [PATCH] fix: Fixes vendor look spam (#2269) --- Projects/UOContent/Mobiles/BaseCreature.cs | 28 ++-------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/Projects/UOContent/Mobiles/BaseCreature.cs b/Projects/UOContent/Mobiles/BaseCreature.cs index f9898d6cd..eb70e8454 100644 --- a/Projects/UOContent/Mobiles/BaseCreature.cs +++ b/Projects/UOContent/Mobiles/BaseCreature.cs @@ -2676,19 +2676,7 @@ namespace Server.Mobiles if (Body.IsHuman) { - switch (Utility.Random(2)) - { - case 0: - { - CheckedAnimate(5, 5, 1, true, true, 1); - break; - } - case 1: - { - CheckedAnimate(6, 5, 1, true, false, 1); - break; - } - } + CheckedAnimate(Utility.RandomBool() ? 5 : 6, 5, 1, true, false, 1); } else if (Body.IsAnimal) { @@ -2713,19 +2701,7 @@ namespace Server.Mobiles } else if (Body.IsMonster) { - switch (Utility.Random(2)) - { - case 0: - { - CheckedAnimate(17, 5, 1, true, false, 1); - break; - } - case 1: - { - CheckedAnimate(18, 5, 1, true, false, 1); - break; - } - } + CheckedAnimate(Utility.RandomBool() ? 17 : 18, 5, 1, true, false, 1); } PlaySound(GetIdleSound());