Class: SystemCharacteristic

SystemCharacteristic

A characteristic of a common skill item

new SystemCharacteristic (json)

Name Type Description
json Object optional Json object describing the characteristic
Properties:
Name Type Description
kind CharacteristicKind The characterisitic kind
isIncreaseDecrease boolean Indicate if increase / decrease exists
increaseDecreaseKind IncreaseDecreaseKind The increase / decrease kind
statisticValueID SystemValue The statistic value ID
elementResID SystemValue The element res ID value
statusResID SystemValue The status res ID value
currencyGainID SystemValue The currency gain ID value
skillCostID SystemValue The skill cost ID value
isAllSkillCost boolean Indicate if all skill cost exists
variableID SystemValue The variable ID value
operation boolean Indicate operation exists
value SystemValue The value
unit boolean Indicate if unit exists
script SystemValue The script value
isAllowEquip boolean Indicate if allow equip exists
isAllowEquipWeapon boolean Indicate if allow equip weapon exists
equipWeaponTypeID SystemValue The equip weapon type ID value
equipArmorTypeID SystemValue The equip armor type ID value
isAllowChangeEquipment boolean Indicate if allow change equipment exists
changeEquipmentID SystemValue The change equipment ID value
beginEquipmentID SystemValue The begin equipment ID value
isBeginWeapon boolean Indicate if begin weapon exists
beginWeaponArmorID SystemValue The begin weapon armor ID value

Methods

read (json)

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

getNewStatValue (gamePlayer)Array.<number>

Get the new stat value of a player with this characteristic bonus
Name Type Description
gamePlayer GamePlayer the player
Returns:
Type Description
Array.<number>

toString ()string

Get the string representation of the characteristic
Returns:
Type Description
string