Name | Type | Description |
---|---|---|
json |
Object | optional Json object describing the armor |
Properties:
Name | Type | Description |
---|---|---|
hasEffect |
boolean | Indicate if the armor has an effect |
name |
string | The name of the armor |
idType |
number | The kind of armor (ID) |
Extends
Methods
-
read (json) overrides
-
Read the JSON associated to the armor
Name Type Description json
Object Json object describing the armor -
getType ()SystemWeaponArmorKind
-
Get the armor type
Returns:
Type Description SystemWeaponArmorKind -
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