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

@ -11,22 +11,12 @@ namespace Server.Mobiles
private int m_Price;
public GenericBuyInfo(Type type, int price, int amount, int itemID, int hue) : this(null, type, price, amount,
itemID, hue, null)
{
}
public GenericBuyInfo(string name, Type type, int price, int amount, int itemID, int hue) : this(name, type, price,
amount, itemID, hue, null)
{
}
public GenericBuyInfo(Type type, int price, int amount, int itemID, int hue, object[] args) : this(null, type, price,
public GenericBuyInfo(Type type, int price, int amount, int itemID, int hue, object[] args = null) : this(null, type, price,
amount, itemID, hue, args)
{
}
public GenericBuyInfo(string name, Type type, int price, int amount, int itemID, int hue, object[] args)
public GenericBuyInfo(string name, Type type, int price, int amount, int itemID, int hue, object[] args = null)
{
Type = type;
m_Price = price;
@ -35,14 +25,10 @@ namespace Server.Mobiles
Hue = hue;
Args = args;
if (name == null)
Name = itemID < 0x4000 ? (1020000 + itemID).ToString() : (1078872 + itemID).ToString();
else
Name = name;
Name = name ?? (itemID < 0x4000 ? (1020000 + itemID).ToString() : (1078872 + itemID).ToString());
}
public virtual bool CanCacheDisplay //return ( m_Args == null || m_Args.Length == 0 ); }
=> false;
public virtual bool CanCacheDisplay => false;
public Type Type{ get; set; }
@ -315,4 +301,4 @@ namespace Server.Mobiles
}
}
}
}
}