Class: SystemCost

SystemCost

A cost of a common skill item

new SystemCost (json)

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 (json)

Read the JSON associated to the cost
Name Type Description
json Object Json object describing the cost

use ()

Use the cost

isPossible ()boolean

Check if the cost is possible
Returns:
Type Description
boolean

toString ()string

Get the string representing the cost
Returns:
Type Description
string