Class AntiBuffItem<B>
A type of item that prevents a given type of buff from giving to the host
Implements
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)
ID of the inventory
Overrides
CanUse(Character)
True if this item can be use at current frame
Declaration
public override bool CanUse(Character character)
Overrides
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)
Inventory ID of this holder
Index of this item inside the inventory
True if the item should disappear after being used
Returns
Type | Description |
---|---|
bool | True if the item is used |