Class: SystemCommonSkillItem

SystemCommonSkillItem

A common class for skills, items, weapons, armors

new SystemCommonSkillItem (json)

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

useCommand ()boolean

Use the command if possible
Returns:
Type Description
boolean

use ()boolean

Execute the effects and costs
Returns:
Type Description
boolean

cost ()

Use the costs

isPossible ()boolean

Check if the costs are possible
Returns:
Type Description
boolean

getTargetKindString ()string

Get the target kind string
Returns:
Type Description
string

name ()string inherited overrides

Get the name according to current lang
Returns:
Type Description
string

getCommand () inherited overrides

Update lang according to a command list and iterator