AngeliA
Search Results for

    Show / Hide Table of Contents

    Class AntiBuffItem<B>

    A type of item that prevents a given type of buff from giving to the host

    Implements
    IMapItem
    Type Parameters
    Name Description
    B

    Type of the buff to prevent

    Constructors

    AntiBuffItem()

    Declaration
    public AntiBuffItem()

    Properties

    Duration

    How long does it work after been use in frame

    Declaration
    public abstract int Duration { get; }

    Mode

    How this item been trigger

    Declaration
    protected abstract AntiBuffItem<B>.TriggerMode Mode { get; }

    Methods

    BeforeItemUpdate_FromInventory(Character, int, int)

    This function is called every frame when this item is in an holder's inventory

    Declaration
    public override void BeforeItemUpdate_FromInventory(Character character, int inventoryID, int itemIndex)
    int inventoryID

    ID of the inventory

    Overrides
    Item.BeforeItemUpdate_FromInventory(Character, int, int)

    CanUse(Character)

    True if this item can be use at current frame

    Declaration
    public override bool CanUse(Character character)
    Overrides
    Item.CanUse(Character)

    OnAntiBuffTriggerd(Character)

    This function is called when the item is triggered

    Declaration
    public virtual void OnAntiBuffTriggerd(Character target)
    Parameters
    Type Name Description
    Character target

    Target character that will get the effect

    Use(Character, int, int, out bool)

    Perform the logic when the item get used

    Declaration
    public override bool Use(Character character, int inventoryID, int itemIndex, out bool consume)
    int inventoryID

    Inventory ID of this holder

    int itemIndex

    Index of this item inside the inventory

    bool consume

    True if the item should disappear after being used

    Returns
    Type Description
    bool

    True if the item is used

    Overrides
    Item.Use(Character, int, int, out bool)
    Back to top ๐Ÿ„๐Ÿฆโ€โฌ›๐Ÿงฆ๐Ÿˆ๐ŸŽƒ๐Ÿ’“๐ŸŒนโ˜•๐Ÿดโ€โ˜ ๏ธ๐Ÿค