fix: Removes BodyValue and fixes modifying Body and BodyMod in props gump. (#743)

* Removes BodyValue
* Removes BodyPicker gump
* Fixes setting Body and BodyMod in props gump
* Props will now look for an `implicit cast` in order to find a way to allow you to modify values with the props gump.
* Fixed `[self set body 0x190` so it works too.
This commit is contained in:
Kamron Batman 2021-08-28 22:56:00 -07:00 • committed by GitHub
parent 244fc6a136
commit bf20800382
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 175 additions and 1477 deletions

View file

@ -56,19 +56,19 @@ namespace Server.Mobiles
{
case 0:
{
BodyValue = 116;
Body = 116;
ItemID = 16039;
break;
}
case 1:
{
BodyValue = 178;
Body = 178;
ItemID = 16041;
break;
}
case 2:
{
BodyValue = 179;
Body = 179;
ItemID = 16055;
break;
}

View file

@ -107,13 +107,13 @@ namespace Server.Mobiles
if (m_HasBarding)
{
Hue = CraftResources.GetHue(m_BardingResource);
BodyValue = 0x31F;
Body = 0x31F;
ItemID = 0x3EBE;
}
else
{
Hue = 0x851;
BodyValue = 0x31A;
Body = 0x31A;
ItemID = 0x3EBD;
}

View file

@ -49,7 +49,7 @@ namespace Server.Mobiles
public override string CorpseName => "a pestilent bandage corpse";
// Neither Stratics nor UOGuide have much description
// beyond being a "Grey Mummy". BodyValue, Sound and
// beyond being a "Grey Mummy". Body, Sound and
// Hue are all guessed until they can be verified.
// Loot and Fame/Karma are also guesses at this point.
//

View file

@ -51,7 +51,7 @@ namespace Server.Mobiles
public Harrower() : base(AIType.AI_Mage, FightMode.Closest, 18, 1, 0.2, 0.4)
{
Instances.Add(this);
BodyValue = 146;
Body = 146;
SetStr(900, 1000);
SetDex(125, 135);
@ -145,7 +145,7 @@ namespace Server.Mobiles
m_TrueForm = true;
Name = "the true harrower";
BodyValue = 780;
Body = 780;
Hue = 0x497;
Hits = HitsMax;

View file

@ -206,7 +206,7 @@ namespace Server.Mobiles
{
base.InitBody();
if (BodyValue == 0x340 || BodyValue == 0x402)
if (Body == 0x340 || Body == 0x402)
{
Hue = 0;
}
@ -1050,7 +1050,7 @@ namespace Server.Mobiles
AddButton(130, 120, 4005, 4007, GetButtonID(5, 0));
AddHtml(170, 120, 120, 20, "Title");
if (m_Barkeeper.BodyValue != 0x340 && m_Barkeeper.BodyValue != 0x402)
if (m_Barkeeper.Body != 0x340 && m_Barkeeper.Body != 0x402)
{
AddButton(130, 200, 4005, 4007, GetButtonID(5, 1));
AddHtml(170, 200, 120, 20, "Appearance");