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
|
|
@ -71,11 +71,11 @@ namespace Server.Items
|
|||
if (IsWorking)
|
||||
return;
|
||||
|
||||
m_Timer = Timer.DelayCall(TimeSpan.FromSeconds(5.0), new TimerStateCallback(FinishWorking_Callback), from);
|
||||
m_Timer = Timer.DelayCall(TimeSpan.FromSeconds(5.0), FinishWorking_Callback, from);
|
||||
UpdateStage();
|
||||
}
|
||||
|
||||
private void FinishWorking_Callback(object state)
|
||||
private void FinishWorking_Callback(Mobile from)
|
||||
{
|
||||
if (m_Timer != null)
|
||||
{
|
||||
|
|
@ -83,11 +83,10 @@ namespace Server.Items
|
|||
m_Timer = null;
|
||||
}
|
||||
|
||||
if (state is Mobile from && !from.Deleted && !Deleted && IsFull)
|
||||
if (from?.Deleted == false && !Deleted && IsFull)
|
||||
{
|
||||
SackFlour flour = new SackFlour();
|
||||
SackFlour flour = new SackFlour { ItemID = Utility.RandomBool() ? 4153 : 4165 };
|
||||
|
||||
flour.ItemID = Utility.RandomBool() ? 4153 : 4165;
|
||||
|
||||
if (from.PlaceInBackpack(flour))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue