Modernization Fixes & Updates to Default Values (#3)

This commit is contained in:
Kamron Batman 2018-10-28 00:33:16 -07:00 • committed by GitHub
parent 445eddff68
commit dcf64091b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
768 changed files with 10507 additions and 14196 deletions

View file

@ -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));
}

View file

@ -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)