mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* add CheckUniques to EmoteType.Give * add CheckUniques to vendor purchases * refactor vendor code, add support for PropertyInt.Unique on vendors * update VerifySellItems * use existing IsValidAmount
25 lines
652 B
C#
25 lines
652 B
C#
namespace ACE.Server.Entity
|
|
{
|
|
public class ItemProfile
|
|
{
|
|
// original data struct
|
|
public int Amount; // sent as int, not as uint -- needs to be verified > 0
|
|
public uint ObjectGuid;
|
|
|
|
// extended server data
|
|
public uint WeenieClassId;
|
|
public int? Palette;
|
|
public double? Shade;
|
|
|
|
/// <summary>
|
|
/// If false, should be rejected as early as possible
|
|
/// </summary>
|
|
public bool IsValidAmount => Amount > 0;
|
|
|
|
public ItemProfile(int amount, uint objectGuid)
|
|
{
|
|
Amount = amount;
|
|
ObjectGuid = objectGuid;
|
|
}
|
|
}
|
|
}
|