fix: Cleanup IPoint3D calls (#704)

This commit is contained in:
Kamron Batman 2021-08-19 09:11:48 -07:00 • committed by GitHub
parent 788b04b958
commit 3293ffcf06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 158 additions and 264 deletions

View file

@ -39,7 +39,7 @@ namespace Server.Items
if (!e.Handled && from.InRange(this, 10) && e.Speech.ToLower() == Word)
{
var boat = BaseBoat.FindBoatAt(from, from.Map);
var boat = BaseBoat.FindBoatAt(from.Location, from.Map);
if (boat == null)
{

View file

@ -88,32 +88,15 @@ namespace Server.Items
private static void FinishLaunch(Point3D endLoc, Map map)
{
var hue = Utility.Random(40);
if (hue < 8)
var hue = Utility.Random(40) switch
{
hue = 0x66D;
}
else if (hue < 10)
{
hue = 0x482;
}
else if (hue < 12)
{
hue = 0x47E;
}
else if (hue < 16)
{
hue = 0x480;
}
else if (hue < 20)
{
hue = 0x47F;
}
else
{
hue = 0;
}
< 8 => 0x66D,
< 10 => 0x482,
< 12 => 0x47E,
< 16 => 0x480,
< 20 => 0x47F,
_ => 0
};
if (Utility.RandomBool())
{