fix: Adds body parts to headless one loot (#2225)
This commit is contained in:
parent
4209f7ea16
commit
c2c486c06e
1 changed files with 13 additions and 0 deletions
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue