fix: Adds body parts to headless one loot (#2225)

This commit is contained in:
Bohica 2025-07-07 18:54:18 -07:00 committed by GitHub
parent 4209f7ea16
commit c2c486c06e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,5 @@
using ModernUO.Serialization; using ModernUO.Serialization;
using Server.Items;
namespace Server.Mobiles namespace Server.Mobiles
{ {
@ -32,6 +33,18 @@ namespace Server.Mobiles
Karma = -450; Karma = -450;
VirtualArmor = 18; VirtualArmor = 18;
Item bodyPart = Utility.Random(6) switch
{
0 => new Head(),
1 => new Torso(),
2 => new RightArm(),
3 => new LeftArm(),
4 => new RightLeg(),
_ => new LeftLeg()
};
AddItem(bodyPart);
} }
public override string CorpseName => "a headless corpse"; public override string CorpseName => "a headless corpse";