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
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Server.Network;
|
||||
using Server.Spells;
|
||||
using Server.Targeting;
|
||||
|
|
@ -95,18 +96,18 @@ namespace Server.Items
|
|||
|
||||
public virtual void ApplyDelayTo(Mobile from)
|
||||
{
|
||||
from.BeginAction(typeof(BaseWand));
|
||||
from.BeginAction<BaseWand>();
|
||||
Timer.DelayCall(GetUseDelay, ReleaseWandLock_Callback, from);
|
||||
}
|
||||
|
||||
public virtual void ReleaseWandLock_Callback(Mobile state)
|
||||
{
|
||||
state.EndAction(typeof(BaseWand));
|
||||
state.EndAction<BaseWand>();
|
||||
}
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
{
|
||||
if (!from.CanBeginAction(typeof(BaseWand)))
|
||||
if (!from.CanBeginAction<BaseWand>())
|
||||
{
|
||||
from.SendLocalizedMessage(1070860); // You must wait a moment for the wand to recharge.
|
||||
return;
|
||||
|
|
@ -197,7 +198,7 @@ namespace Server.Items
|
|||
|
||||
public override void OnSingleClick(Mobile from)
|
||||
{
|
||||
ArrayList attrs = new ArrayList();
|
||||
List<EquipInfoAttribute> attrs = new List<EquipInfoAttribute>();
|
||||
|
||||
if (DisplayLootType)
|
||||
{
|
||||
|
|
@ -272,7 +273,7 @@ namespace Server.Items
|
|||
return;
|
||||
|
||||
EquipmentInfo eqInfo = new EquipmentInfo(number, Crafter, false,
|
||||
(EquipInfoAttribute[])attrs.ToArray(typeof(EquipInfoAttribute)));
|
||||
attrs.ToArray());
|
||||
|
||||
from.Send(new DisplayEquipmentInfo(this, eqInfo));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ namespace Server.Targeting
|
|||
|
||||
private static int GetOffset(Mobile caster)
|
||||
{
|
||||
return 5 + (int)(caster.Skills[SkillName.Magery].Value * 0.02);
|
||||
return 5 + (int)(caster.Skills.Magery.Value * 0.02);
|
||||
}
|
||||
|
||||
protected override void OnTarget(Mobile from, object targeted)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue