chore: Fixes variable types for possible performance issues (#2172)
This commit is contained in:
parent
6d43f2549c
commit
da517f56c4
82 changed files with 332 additions and 343 deletions
|
|
@ -912,7 +912,7 @@ public partial class Corpse : Container, ICarvable
|
|||
var obj = qs.FindObjective<GetDaemonBoneObjective>();
|
||||
if (obj?.CorpseWithBone == this && (!obj.Completed || UzeraanTurmoilQuest.HasLostDaemonBone(player)))
|
||||
{
|
||||
Item bone = new QuestDaemonBone();
|
||||
var bone = new QuestDaemonBone();
|
||||
|
||||
if (player.PlaceInBackpack(bone))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -22,9 +22,11 @@ public partial class ContractOfEmployment : Item
|
|||
{
|
||||
from.SendLocalizedMessage(503248); // Your godly powers allow you to place this vendor whereever you wish.
|
||||
|
||||
Mobile v = new PlayerVendor(from, BaseHouse.FindHouseAt(from));
|
||||
var v = new PlayerVendor(from, BaseHouse.FindHouseAt(from))
|
||||
{
|
||||
Direction = from.Direction & Direction.Mask
|
||||
};
|
||||
|
||||
v.Direction = from.Direction & Direction.Mask;
|
||||
v.MoveToWorld(from.Location, from.Map);
|
||||
|
||||
v.SayTo(from, 503246); // Ah! it feels good to be working again.
|
||||
|
|
@ -69,9 +71,11 @@ public partial class ContractOfEmployment : Item
|
|||
}
|
||||
else
|
||||
{
|
||||
Mobile v = new PlayerVendor(from, house);
|
||||
var v = new PlayerVendor(from, house)
|
||||
{
|
||||
Direction = from.Direction & Direction.Mask
|
||||
};
|
||||
|
||||
v.Direction = from.Direction & Direction.Mask;
|
||||
v.MoveToWorld(from.Location, from.Map);
|
||||
|
||||
v.SayTo(from, 503246); // Ah! it feels good to be working again.
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ public partial class PublicMoongate : Item
|
|||
|
||||
foreach (var entry in list.Entries)
|
||||
{
|
||||
Item item = new PublicMoongate();
|
||||
var item = new PublicMoongate();
|
||||
|
||||
item.MoveToWorld(entry.Location, list.Map);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue