Code Cleanup & Fixes Warnings (#74)
This commit is contained in:
parent
e11d1f3ad9
commit
57b14ad690
143 changed files with 2960 additions and 3427 deletions
|
|
@ -584,8 +584,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
if (House.IsOwner(Owner)) // Move to moving crate
|
||||
{
|
||||
if (House.MovingCrate == null)
|
||||
House.MovingCrate = new MovingCrate(House);
|
||||
House.MovingCrate ??= new MovingCrate(House);
|
||||
|
||||
if (HoldGold > 0)
|
||||
Banker.Deposit(House.MovingCrate, HoldGold);
|
||||
|
|
|
|||
|
|
@ -129,8 +129,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
if (RentalGold > 0 && House?.IsAosRules == true)
|
||||
{
|
||||
if (House.MovingCrate == null)
|
||||
House.MovingCrate = new MovingCrate(House);
|
||||
House.MovingCrate ??= new MovingCrate(House);
|
||||
|
||||
Banker.Deposit(House.MovingCrate, RentalGold);
|
||||
RentalGold = 0;
|
||||
|
|
|
|||
|
|
@ -116,8 +116,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
if (m_Inventory.Gold > 0)
|
||||
{
|
||||
if (house.MovingCrate == null)
|
||||
house.MovingCrate = new MovingCrate(house);
|
||||
house.MovingCrate ??= new MovingCrate(house);
|
||||
|
||||
Banker.Deposit(house.MovingCrate, m_Inventory.Gold);
|
||||
}
|
||||
|
|
@ -134,4 +133,4 @@ namespace Server.Mobiles
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue