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
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue