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
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using Server.Items;
|
||||
using Server.Utilities;
|
||||
|
||||
namespace Server
|
||||
{
|
||||
|
|
@ -689,7 +690,7 @@ namespace Server
|
|||
{
|
||||
try
|
||||
{
|
||||
return Activator.CreateInstance(type) as Item;
|
||||
return ActivatorUtil.CreateInstance(type) as Item;
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
@ -738,4 +739,4 @@ namespace Server
|
|||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
using Server.Utilities;
|
||||
|
||||
namespace Server
|
||||
{
|
||||
|
|
@ -886,7 +887,7 @@ namespace Server
|
|||
else if (Type == typeof(SummonAirElementalScroll)) // high scroll
|
||||
item = RandomScroll(2, 8, 8);
|
||||
else
|
||||
item = Activator.CreateInstance(Type) as Item;
|
||||
item = ActivatorUtil.CreateInstance(Type) as Item;
|
||||
|
||||
return item;
|
||||
}
|
||||
|
|
@ -959,4 +960,4 @@ namespace Server
|
|||
return v;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
using Server.Utilities;
|
||||
|
||||
namespace Server
|
||||
{
|
||||
|
|
@ -26,7 +27,7 @@ namespace Server
|
|||
|
||||
public static void GiveArtifactTo(Mobile m)
|
||||
{
|
||||
if (!(Activator.CreateInstance(Artifacts[Utility.Random(Artifacts.Length)]) is Item item))
|
||||
if (!(ActivatorUtil.CreateInstance(Artifacts[Utility.Random(Artifacts.Length)]) is Item item))
|
||||
return;
|
||||
|
||||
if (m.AddToBackpack(item))
|
||||
|
|
@ -73,4 +74,4 @@ namespace Server
|
|||
|| region.IsPartOf("The Palace of Paroxysmus")
|
||||
|| region.IsPartOf("Labyrinth");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue