// // Licensed under the MIT License. See LICENSE file in the project root for full license information. // namespace MUnique.OpenMU.GameLogic.PlugIns; using MUnique.OpenMU.DataModel.Configuration.Items; /// /// Constants for the Kalima map. /// public static class KalimaConstants { /// /// The symbol of kundun item group. /// internal const byte SymbolOfKundunGroup = 14; /// /// The symbol of kundun item number. /// internal const byte SymbolOfKundunNumber = 29; /// /// The lost map item group. /// internal const byte LostMapGroup = 14; /// /// The lost map item number. /// internal const byte LostMapNumber = 28; /// /// Determines whether the specified item is a lost map. /// /// The item. /// /// true if the specified item is a lost map; otherwise, false. /// public static bool IsLostMap(this Item item) { return item.Definition.IsLostMap(); } /// /// Determines whether the specified item is a lost map. /// /// The item definition. /// /// true if the specified item is a lost map; otherwise, false. /// public static bool IsLostMap(this ItemDefinition? itemDefinition) { return itemDefinition is { Group: LostMapGroup, Number: LostMapNumber }; } /// /// Determines whether the specified item is a symbol of kundun. /// /// The item. /// /// true if the specified item is a symbol of kundun; otherwise, false. /// public static bool IsSymbolOfKundun(this Item item) { return item.Definition is { Group: SymbolOfKundunGroup, Number: SymbolOfKundunNumber }; } }