Method ResetToDefaultIntValue
ResetToDefaultIntValue(GameItem, string)
Reset Stat to the correct default value.
Declaration
public static bool ResetToDefaultIntValue(GameItem gameItem, string statDefinitionId)
Parameters
| Type | Name | Description |
|---|---|---|
| GameItem | gameItem | GameItem upon which Stat is to be reset. |
| string | statDefinitionId | StatDefinition's Id to search for. |
Returns
| Type | Description |
|---|---|
| bool | True if specified Stat was found and reset, else False. |
ResetToDefaultIntValue(GameItem, int)
Reset Stat to the correct default value.
Declaration
public static bool ResetToDefaultIntValue(GameItem gameItem, int statDefinitionHash)
Parameters
| Type | Name | Description |
|---|---|---|
| GameItem | gameItem | GameItem upon which Stat is to be reset. |
| int | statDefinitionHash | StatDefinition's Hash to search for. |
Returns
| Type | Description |
|---|---|
| bool | True if specified Stat was found and reset, else False. |