chore: Fixes variable types for possible performance issues (#2172)

This commit is contained in:
Kamron Batman 2025-05-01 21:54:41 -07:00 • committed by GitHub
parent 6d43f2549c
commit da517f56c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
82 changed files with 332 additions and 343 deletions

View file

@ -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))
{

View file

@ -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.

View file

@ -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);