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