Class ItemModificator
Stat modificator related to a GameItem. Holds a reference to the ScriptableShopItem of such item.
Inherited Members
Namespace: AutoBattleFramework.Stats
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public class ItemModificator : StatsModificator
Fields
scriptableShopItem
Item reference.
Declaration
public ScriptableShopItem scriptableShopItem
Field Value
Type | Description |
---|---|
ScriptableShopItem |
traits
List of Traits that will be applied to the character when the item is equipped.
Declaration
public List<Trait> traits
Field Value
Type | Description |
---|---|
List<Trait> |
Methods
AddItemModificator(GameCharacter)
Adds the item's modificator to the character's itemModificators. Adds the traits in traits to traits
Declaration
public void AddItemModificator(GameCharacter character)
Parameters
Type | Name | Description |
---|---|---|
GameCharacter | character | Character to be equipped with the item |
RemoveItemModificator(GameCharacter)
Removes the item's modificator from the character's itemModificators. Removes the traits in traits from traits
Declaration
public void RemoveItemModificator(GameCharacter character)
Parameters
Type | Name | Description |
---|---|---|
GameCharacter | character | Character to be equipped with the item |