Name | Type | Description |
---|---|---|
json |
Object | optional Json object describing the common |
Properties:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
hasType |
boolean |
<optional> |
true | Indicate if the common has a type |
hasTargetKind |
boolean |
<optional> |
true | Indicate if the common has a target kind |
type |
number | The type of common | ||
consumable |
boolean | Indicate if the common is consumable | ||
oneHand |
boolean | Indicate if the common is one hand | ||
description |
SystemLang | The description | ||
targetKind |
TargetKind | The target kind | ||
targetConditionFormula |
SystemValue | The target condition formula | ||
conditionFormula |
SystemValue | The condition formula | ||
availableKind |
AvailableKind | The kind of available | ||
sound |
SystemPlaySong | The sound menu | ||
animationUserID |
SystemValue | The animation user ID value | ||
animationTargetID |
SystemValue | The animation target ID value | ||
price |
SystemValue | The price value | ||
costs |
Array.<SystemCost> | The costs list | ||
effects |
Array.<SystemEffect> | The effects list | ||
characteristics |
Array.<SystemCharacteristic> | The characteristics list |
Extends
Methods
-
read (json) overrides
-
Read the JSON associated to the common
Name Type Description json
Object Json object describing the common -
Use the command if possible
Returns:
Type Description boolean -
Execute the effects and costs
Returns:
Type Description boolean -
Use the costs
-
Check if the costs are possible
Returns:
Type Description boolean -
Get the target kind string
Returns:
Type Description string -
Get the name according to current lang
Returns:
Type Description string -
Update lang according to a command list and iterator