ActionAdventureKit 1.5.4
|
prefab item that can modify attributes and stats while it is equipped
whether it is equippable can be restricted with attribute and stat requirements
Public Member Functions | |
override bool | CanEquip (CharacterBase character) |
override void | OnEquip (CharacterBase character) |
override void | OnUnequip (CharacterBase character) |
int | Modify (AttributeStat stat, int value) |
applies the modification | |
Public Member Functions inherited from AdventureCore.ItemBase | |
virtual bool | CanAdd (InventoryBase inventory, int quantity=1) |
virtual bool | OnAdd (InventoryBase inventory, int quantity, out InventoryItem inventoryItem) |
virtual bool | CanUse (CharacterBase character, int quantity=1) |
virtual bool | OnUse (CharacterBase character, int quantity=1) |
void | Add (CharacterBase character) |
void | Remove (CharacterBase character) |
void | Add (CharacterActionBase action) |
void | Remove (CharacterActionBase action) |
override string | ToString () |
Public Attributes | |
AttributeValue[] | AttributeRequirements |
AttributeValue[] | StatRequirements |
AttributeValue[] | AttributeValues |
AttributeStatValue[] | StatValues |
EffectType[] | Effects |
Public Attributes inherited from AdventureCore.PrefabItem | |
Transform | Prefab |
Public Attributes inherited from AdventureCore.ItemBase | |
string | Key |
string | Name |
string | Description |
Sprite | Image |
GameObject | Visual |
ItemCategory | Category |
ItemSlotCategory | Slot |
Properties | |
override bool | IsEquippable [get] |
Properties inherited from AdventureCore.PrefabItem | |
override bool | IsEquippable [get] |
Properties inherited from AdventureCore.ItemBase | |
virtual bool | IsStackable [get] |
virtual bool | IsEquippable [get] |
virtual bool | IsUsable [get] |
Properties inherited from AdventureCore.IAttributeModifier | |
Properties inherited from AdventureCore.IStatModifier |
|
inlinevirtual |
Reimplemented from AdventureCore.ItemBase.
|
inline |
applies the modification
attribute | the stat that will be modified |
value | the value before modification |
Implements AdventureCore.IStatModifier.
|
inlinevirtual |
Reimplemented from AdventureCore.ItemBase.
|
inlinevirtual |
Reimplemented from AdventureCore.ItemBase.