// -----------------------------------------------------------------------
//
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
//
// -----------------------------------------------------------------------
namespace MUnique.OpenMU.GameLogic.PlayerActions.ItemConsumeActions;
using System.Runtime.InteropServices;
using MUnique.OpenMU.PlugIns;
///
/// Consume handler for the Jewel of Soul which increases the item level by one until the level of 9 with a chance of 50%.
///
[Guid("A76CDA49-1C56-401A-96D1-294D9A68A7B9")]
[PlugIn]
[Display(Name = nameof(PlugInResources.SoulJewelConsumeHandlerPlugIn_Name), Description = nameof(PlugInResources.SoulJewelConsumeHandlerPlugIn_Description), ResourceType = typeof(PlugInResources))]
public class SoulJewelConsumeHandlerPlugIn : UpgradeItemLevelJewelConsumeHandlerPlugIn
{
///
/// Initializes a new instance of the class.
///
public SoulJewelConsumeHandlerPlugIn()
{
}
///
/// Initializes a new instance of the class.
///
/// The randomizer.
internal SoulJewelConsumeHandlerPlugIn(IRandomizer randomizer)
: base(randomizer)
{
}
///
public override ItemIdentifier Key => ItemConstants.JewelOfSoul;
///
public override object CreateDefaultConfig() => new UpgradeItemLevelConfiguration
{
MaximumLevel = 8,
MinimumLevel = 0,
SuccessRatePercentage = 50,
SuccessRateBonusWithLuckPercentage = 25,
ResetToLevel0WhenFailMinLevel = 7,
};
}