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:
parent
244fc6a136
commit
bf20800382
33 changed files with 175 additions and 1477 deletions
|
|
@ -1051,6 +1051,11 @@ namespace Server
|
|||
}
|
||||
}
|
||||
|
||||
public void MoveToWorld(WorldLocation worldLocation)
|
||||
{
|
||||
MoveToWorld(worldLocation.Location, worldLocation.Map);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Moves the Item to a given <paramref name="location" /> and <paramref name="map" />.
|
||||
/// </summary>
|
||||
|
|
@ -2306,18 +2311,12 @@ namespace Server
|
|||
|
||||
doubled = false;
|
||||
|
||||
if (m_Amount <= 1)
|
||||
itemID = m_Amount switch
|
||||
{
|
||||
itemID = coinBase;
|
||||
}
|
||||
else if (m_Amount <= 5)
|
||||
{
|
||||
itemID = coinBase + 1;
|
||||
}
|
||||
else // m_Amount > 5
|
||||
{
|
||||
itemID = coinBase + 2;
|
||||
}
|
||||
<= 1 => coinBase,
|
||||
<= 5 => coinBase + 1,
|
||||
_ => coinBase + 2
|
||||
};
|
||||
}
|
||||
|
||||
var bounds = ItemBounds.Table[itemID & 0x3FFF];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue