fixes [decorate and adds timestamp to world save (#87)
This commit is contained in:
parent
d7f0227268
commit
717e192cf7
65 changed files with 261 additions and 118 deletions
|
|
@ -9,6 +9,7 @@ using Server.Gumps;
|
|||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
using Server.Network;
|
||||
using Server.Utilities;
|
||||
|
||||
namespace Server.Engines.MLQuests
|
||||
{
|
||||
|
|
@ -62,7 +63,7 @@ namespace Server.Engines.MLQuests
|
|||
|
||||
try
|
||||
{
|
||||
quest = Activator.CreateInstance(type) as MLQuest;
|
||||
quest = ActivatorUtil.CreateInstance(type) as MLQuest;
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Server.Gumps;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
using Server.Utilities;
|
||||
|
||||
namespace Server.Engines.MLQuests.Objectives
|
||||
{
|
||||
|
|
@ -45,7 +46,7 @@ namespace Server.Engines.MLQuests.Objectives
|
|||
|
||||
for (int i = 0; i < Amount; ++i)
|
||||
{
|
||||
if (!(Activator.CreateInstance(Delivery) is Item item))
|
||||
if (!(ActivatorUtil.CreateInstance(Delivery) is Item item))
|
||||
continue;
|
||||
|
||||
delivery.Add(item);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Server.Engines.MLQuests.Items;
|
||||
using Server.Mobiles;
|
||||
using Server.Utilities;
|
||||
|
||||
namespace Server.Engines.MLQuests.Rewards
|
||||
{
|
||||
|
|
@ -53,7 +54,7 @@ namespace Server.Engines.MLQuests.Rewards
|
|||
|
||||
try
|
||||
{
|
||||
spawnedItem = Activator.CreateInstance(m_Type) as Item;
|
||||
spawnedItem = ActivatorUtil.CreateInstance(m_Type) as Item;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue