Name | Type | Description |
---|---|---|
json |
Object | optional Json object describing the cost |
Properties:
Name | Type | Description |
---|---|---|
kind |
DamagesKind | The kind of damage to apply cost |
statisticID |
number | The statistic ID to apply cost |
currencyID |
number | The currency ID to apply cost |
variableID |
number | The variable ID to apply cost |
valueFormula |
string | The formula to apply |
Methods
-
Read the JSON associated to the cost
Name Type Description json
Object Json object describing the cost -
Use the cost
-
Check if the cost is possible
Returns:
Type Description boolean -
Get the string representing the cost
Returns:
Type Description string