More move effects

This commit is contained in:
2025-03-02 14:03:51 +01:00
parent 9b0ac36597
commit c0bc905c46
40 changed files with 804 additions and 46 deletions

View File

@@ -108,6 +108,8 @@ public interface IItem : INamedValue
ISecondaryEffect? Effect { get; }
ISecondaryEffect? BattleEffect { get; }
byte FlingPower { get; }
/// <summary>
/// Checks whether the item has a specific flag.
@@ -122,7 +124,7 @@ public class ItemImpl : IItem
{
/// <inheritdoc cref="ItemImpl"/>
public ItemImpl(StringKey name, ItemCategory category, BattleItemCategory battleCategory, int price,
IEnumerable<StringKey> flags, ISecondaryEffect? effect, ISecondaryEffect? battleTriggerEffect)
IEnumerable<StringKey> flags, ISecondaryEffect? effect, ISecondaryEffect? battleTriggerEffect, byte flingPower)
{
Name = name;
Category = category;
@@ -130,6 +132,7 @@ public class ItemImpl : IItem
Price = price;
Effect = effect;
BattleEffect = battleTriggerEffect;
FlingPower = flingPower;
Flags = [..flags];
}
@@ -154,6 +157,10 @@ public class ItemImpl : IItem
/// <inheritdoc />
public ISecondaryEffect? BattleEffect { get; }
/// <inheritdoc />
public byte FlingPower { get; }
/// <inheritdoc />
public bool HasFlag(string key)
{