Formatting #2 (#59)

This commit is contained in:
Kamron Batman 2019-10-05 00:37:03 -07:00 committed by GitHub
parent 096d39609e
commit 8e9221bb5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
400 changed files with 3688 additions and 5969 deletions

View file

@ -54,7 +54,7 @@ namespace Server.Items
{
BaseHouse house = BaseHouse.FindHouseAt(from);
if (house == null || !house.IsOwner(from))
if (house?.IsOwner(from) != true)
{
from.LocalOverheadMessage(MessageType.Regular, 0x3B2, false,
"You are not the full owner of this house.");
@ -90,4 +90,4 @@ namespace Server.Items
}
}
}
}
}

View file

@ -63,7 +63,7 @@ namespace Server.Items
BaseHouse house = BaseHouse.FindHouseAt(loc, map, 20);
if (house == null || !house.IsFriend(from))
if (house?.IsFriend(from) != true)
{
from.SendLocalizedMessage(1005701); // The holiday tree can only be placed in your house.
return false;

View file

@ -149,7 +149,7 @@ namespace Server.Items
BaseHouse house = BaseHouse.FindHouseAt(from);
if (house == null || !house.IsOwner(from))
if (house?.IsOwner(from) != true)
{
from.SendLocalizedMessage(
1062333); // You must be standing inside of a house that you own to make use of this contract.
@ -258,7 +258,7 @@ namespace Server.Items
BaseHouse house = BaseHouse.FindHouseAt(pLocation, map, 0);
if (house == null || !house.IsOwner(from))
if (house?.IsOwner(from) != true)
{
from.SendLocalizedMessage(1062338); // The location being rented out must be inside of your house.
}
@ -340,4 +340,4 @@ namespace Server.Items
}
}
}
}
}