Skip to content

Commit

Permalink
fix: Update EvilMage.cs robe and sandals not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
bohica89 authored and kamronbatman committed May 4, 2024
1 parent 4ea1d79 commit df02369
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 9 deletions.
18 changes: 16 additions & 2 deletions Projects/UOContent/Mobiles/Monsters/Humanoid/Magic/EvilMage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ public EvilMage() : base(AIType.AI_Mage)
Name = NameList.RandomName("evil mage");
Title = "the evil mage";
Body = Core.UOR ? 124 : 0x190;

if (Core.UOR)
{
Hue = Race.Human.RandomSkinHue();
}

SetStr(81, 105);
SetDex(91, 115);
Expand Down Expand Up @@ -39,8 +44,17 @@ public EvilMage() : base(AIType.AI_Mage)

VirtualArmor = 16;
PackReg(6);
PackItem(new Robe(Utility.RandomNeutralHue()));
PackItem(new Sandals());

if (Core.UOR)
{
PackItem(new Robe(Utility.RandomNeutralHue()));
PackItem(new Sandals());
}
else
{
EquipItem(new Robe(Utility.RandomNeutralHue()));
EquipItem(new Sandals());
}
}

public override string CorpseName => "an evil mage corpse";
Expand Down
19 changes: 12 additions & 7 deletions Projects/UOContent/Mobiles/Monsters/Humanoid/Magic/EvilMageLord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ public EvilMageLord() : base(AIType.AI_Mage)
{
Name = NameList.RandomName("evil mage lord");
Body = Core.UOR ? Utility.Random(125, 2) : 0x190;
Hue = Core.UOR ? 0 : Race.Human.RandomSkinHue();

if (Core.UOR)
{
Hue = Race.Human.RandomSkinHue();
}

SetStr(81, 105);
SetDex(191, 215);
Expand Down Expand Up @@ -42,16 +46,17 @@ public EvilMageLord() : base(AIType.AI_Mage)
VirtualArmor = 16;
PackReg(23);

PackItem(new Robe(Utility.RandomMetalHue()));
PackItem(new WizardsHat(Utility.RandomMetalHue()));

if (Utility.RandomBool())
if (Core.UOR)
{
PackItem(new Shoes());
PackItem(new Robe(Utility.RandomNeutralHue()));
PackItem(new WizardsHat(Utility.RandomNeutralHue()));
PackItem(new Sandals());
}
else
{
PackItem(new Sandals());
EquipItem(new Robe(Utility.RandomNeutralHue()));
EquipItem(new WizardsHat(Utility.RandomNeutralHue()));
EquipItem(new Sandals());
}
}

Expand Down

0 comments on commit df02369

Please sign in to comment.