Class: SystemHero

SystemHero

An hero of the game

new SystemHero (json)

Name Type Description
json Object optional Json object describing the hero
Properties:
Name Type Description
name string The name of the hero
idClass number The class ID
idBattler number The battler ID
idFaceset number The faceset ID
classInherit SystemClass The inherit class

Methods

read (json)

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

check ()

Check if the class ID exists

getProperty (prop)number

Get the property according to class inherit and this hero
Name Type Description
prop string The property name
Returns:
Type Description
number

getExperienceTable ()Object

Get the experience table according to class inherit and this hero
Returns:
Type Description
Object

getStatisticsProgression ()Array.<SystemProgression>

Get the statistics progression according to class inherit and this hero
Returns:
Type Description
Array.<SystemProgression>

getSkills ()Array.<SystemClassSkill>

Get the skills according to class inherit and this hero
Returns:
Type Description
Array.<SystemClassSkill>

createExpList ()Array.<number>

Create the experience list according to base and inflation
Returns:
Type Description
Array.<number>