Modernization Fixes & Updates to Default Values (#3)
This commit is contained in:
parent
445eddff68
commit
dcf64091b1
768 changed files with 10507 additions and 14196 deletions
|
|
@ -66,8 +66,7 @@ namespace Server.Items
|
|||
}
|
||||
else
|
||||
{
|
||||
bool vendor, contract;
|
||||
BaseHouse.IsThereVendor(from.Location, from.Map, out vendor, out contract);
|
||||
BaseHouse.IsThereVendor(from.Location, from.Map, out bool vendor, out bool contract);
|
||||
|
||||
if (vendor)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ namespace Server.Items
|
|||
m_From = from;
|
||||
m_Deed = deed;
|
||||
|
||||
from.CloseGump(typeof(InternalGump));
|
||||
from.CloseGump<InternalGump>();
|
||||
|
||||
AddBackground(100, 10, 400, 385, 0xA28);
|
||||
|
||||
|
|
|
|||
|
|
@ -80,10 +80,10 @@ namespace Server.Items
|
|||
|
||||
public void BeginPlace(Mobile from, HolidayTreeType type)
|
||||
{
|
||||
from.BeginTarget(-1, true, TargetFlags.None, new TargetStateCallback(Placement_OnTarget), type);
|
||||
from.BeginTarget(-1, true, TargetFlags.None, Placement_OnTarget, type);
|
||||
}
|
||||
|
||||
public void Placement_OnTarget(Mobile from, object targeted, object state)
|
||||
public void Placement_OnTarget(Mobile from, object targeted, HolidayTreeType type)
|
||||
{
|
||||
if (!(targeted is IPoint3D p))
|
||||
return;
|
||||
|
|
@ -98,7 +98,7 @@ namespace Server.Items
|
|||
*/
|
||||
|
||||
if (ValidatePlacement(from, loc))
|
||||
EndPlace(from, (HolidayTreeType)state, loc);
|
||||
EndPlace(from, type, loc);
|
||||
}
|
||||
|
||||
public void EndPlace(Mobile from, HolidayTreeType type, Point3D loc)
|
||||
|
|
@ -110,7 +110,7 @@ namespace Server.Items
|
|||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
{
|
||||
from.CloseGump(typeof(HolidayTreeChoiceGump));
|
||||
from.CloseGump<HolidayTreeChoiceGump>();
|
||||
from.SendGump(new HolidayTreeChoiceGump(from, this));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ namespace Server.Items
|
|||
{
|
||||
if (RootParent == from)
|
||||
{
|
||||
from.CloseGump(typeof(NameChangeDeedGump));
|
||||
from.CloseGump<NameChangeDeedGump>();
|
||||
from.SendGump(new NameChangeDeedGump(this));
|
||||
}
|
||||
else
|
||||
|
|
@ -55,7 +55,7 @@ namespace Server.Items
|
|||
m_Sender = sender;
|
||||
|
||||
Closable = true;
|
||||
Dragable = true;
|
||||
Draggable = true;
|
||||
Resizable = false;
|
||||
|
||||
AddPage(0);
|
||||
|
|
|
|||
|
|
@ -176,7 +176,7 @@ namespace Server.Items
|
|||
{
|
||||
if (from.InRange(this, 5))
|
||||
{
|
||||
from.CloseGump(typeof(VendorRentalContractGump));
|
||||
from.CloseGump<VendorRentalContractGump>();
|
||||
from.SendGump(new VendorRentalContractGump(this, from));
|
||||
}
|
||||
else
|
||||
|
|
@ -236,7 +236,7 @@ namespace Server.Items
|
|||
|
||||
if (m_Contract.IsUsableBy(from, true, true, true, true))
|
||||
{
|
||||
from.CloseGump(typeof(VendorRentalContractGump));
|
||||
from.CloseGump<VendorRentalContractGump>();
|
||||
from.SendGump(new VendorRentalContractGump(m_Contract, from));
|
||||
}
|
||||
}
|
||||
|
|
@ -339,7 +339,7 @@ namespace Server.Items
|
|||
|
||||
if (offeree != null)
|
||||
{
|
||||
offeree.CloseGump(typeof(VendorRentalOfferGump));
|
||||
offeree.CloseGump<VendorRentalOfferGump>();
|
||||
|
||||
m_Contract.Offeree = null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue