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

@ -61,12 +61,7 @@ namespace Server.Misc
public virtual void DelayGiveGift(TimeSpan delay, Mobile mob)
{
Timer.DelayCall(delay, new TimerStateCallback(DelayGiveGift_Callback), mob);
}
protected virtual void DelayGiveGift_Callback(object state)
{
GiveGift((Mobile)state);
Timer.DelayCall(delay, GiveGift, mob);
}
public virtual GiftResult GiveGift(Mobile mob, Item item)

View file

@ -121,9 +121,7 @@ namespace Server.Misc
private static void ChangeSkill(Mobile from, string name, double value)
{
SkillName index;
if (!Enum.TryParse(name, true, out index) || !Core.SE && (int)index > 51 || !Core.AOS && (int)index > 48)
if (!Enum.TryParse(name, true, out SkillName index) || !Core.SE && (int)index > 51 || !Core.AOS && (int)index > 48)
{
from.SendLocalizedMessage(1005631); // You have specified an invalid skill to set.
return;

View file

@ -25,7 +25,7 @@ namespace Server.Items
m.PlaySound(0x214);
m.FixedEffect(0x376A, 10, 16);
m.CloseGump(typeof(ResurrectGump));
m.CloseGump<ResurrectGump>();
m.SendGump(new ResurrectGump(m));
}
else