Method AdjustFloatValue
AdjustFloatValue(GameItem, string, float)
Adjusts specified Stat on specified gameItem by specified amount.
Declaration
public static float AdjustFloatValue(GameItem gameItem, string statDefinitionId, float change)
Parameters
| Type | Name | Description |
|---|---|---|
| GameItem | gameItem | GameItem upon which Stat is to be adjusted. |
| string | statDefinitionId | StatDefinition's Id to change. |
| float | change | Adjustment (positive or negative) to Stat. |
Returns
| Type | Description |
|---|---|
| float | The new value of Stat on GameItem. |
AdjustFloatValue(GameItem, int, float)
Adjusts specified Stat on specified gameItem by specified amount.
Declaration
public static float AdjustFloatValue(GameItem gameItem, int statDefinitionHash, float change)
Parameters
| Type | Name | Description |
|---|---|---|
| GameItem | gameItem | GameItem upon which Stat is to be adjusted. |
| int | statDefinitionHash | StatDefinition's Hash to change. |
| float | change | Adjustment (positive or negative) to Stat. |
Returns
| Type | Description |
|---|---|
| float | The new value of Stat on GameItem. |