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,3 +1,4 @@
|
|||
using Server.Utilities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
|
@ -83,7 +84,7 @@ namespace Server.Spells
|
|||
|
||||
try
|
||||
{
|
||||
spm = Activator.CreateInstance(type) as SpecialMove;
|
||||
spm = ActivatorUtil.CreateInstance(type) as SpecialMove;
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
@ -123,7 +124,7 @@ namespace Server.Spells
|
|||
|
||||
try
|
||||
{
|
||||
return (Spell)Activator.CreateInstance(t, m_Params);
|
||||
return (Spell)ActivatorUtil.CreateInstance(t, m_Params);
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
@ -147,7 +148,7 @@ namespace Server.Spells
|
|||
|
||||
try
|
||||
{
|
||||
return (Spell)Activator.CreateInstance(t, m_Params);
|
||||
return (Spell)ActivatorUtil.CreateInstance(t, m_Params);
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using Server.Mobiles;
|
||||
using Server.Utilities;
|
||||
|
||||
namespace Server.Spells.Fifth
|
||||
{
|
||||
|
|
@ -63,7 +64,7 @@ namespace Server.Spells.Fifth
|
|||
if (CheckSequence())
|
||||
try
|
||||
{
|
||||
BaseCreature creature = (BaseCreature)Activator.CreateInstance(m_Types[Utility.Random(m_Types.Length)]);
|
||||
BaseCreature creature = (BaseCreature)ActivatorUtil.CreateInstance(m_Types[Utility.Random(m_Types.Length)]);
|
||||
|
||||
//creature.ControlSlots = 2;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using Server.Items;
|
||||
using Server.Utilities;
|
||||
|
||||
namespace Server.Spells.First
|
||||
{
|
||||
|
|
@ -75,7 +76,7 @@ namespace Server.Spells.First
|
|||
|
||||
try
|
||||
{
|
||||
item = (Item)Activator.CreateInstance(Type);
|
||||
item = (Item)ActivatorUtil.CreateInstance(Type);
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ using Server.Engines.Quests.Necro;
|
|||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
using Server.Targeting;
|
||||
using Server.Utilities;
|
||||
|
||||
namespace Server.Spells.Necromancy
|
||||
{
|
||||
|
|
@ -298,7 +299,7 @@ namespace Server.Spells.Necromancy
|
|||
|
||||
try
|
||||
{
|
||||
summoned = Activator.CreateInstance(toSummon) as Mobile;
|
||||
summoned = ActivatorUtil.CreateInstance(toSummon) as Mobile;
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||
using Server.Gumps;
|
||||
using Server.Mobiles;
|
||||
using Server.Network;
|
||||
using Server.Utilities;
|
||||
|
||||
namespace Server.Spells.Necromancy
|
||||
{
|
||||
|
|
@ -170,7 +171,7 @@ namespace Server.Spells.Necromancy
|
|||
{
|
||||
try
|
||||
{
|
||||
BaseCreature bc = (BaseCreature)Activator.CreateInstance(entry.Type);
|
||||
BaseCreature bc = (BaseCreature)ActivatorUtil.CreateInstance(entry.Type);
|
||||
|
||||
// TODO: Is this right?
|
||||
bc.Skills.MagicResist.Base = m_From.Skills.MagicResist.Base;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using Server.Mobiles;
|
||||
using Server.Utilities;
|
||||
|
||||
namespace Server.Spells.Spellweaving
|
||||
{
|
||||
|
|
@ -39,7 +40,7 @@ namespace Server.Spells.Spellweaving
|
|||
|
||||
try
|
||||
{
|
||||
bc = Activator.CreateInstance<T>();
|
||||
bc = ActivatorUtil.CreateInstance<T>();
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
@ -53,4 +54,4 @@ namespace Server.Spells.Spellweaving
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue