Method ResetToDefaultFloatValue
ResetToDefaultFloatValue(GameItem, string)
Reset Stat to the correct default value.
Declaration
public static bool ResetToDefaultFloatValue(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. |
ResetToDefaultFloatValue(GameItem, int)
Reset Stat to the correct default value.
Declaration
public static bool ResetToDefaultFloatValue(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. |