Class: SystemMonster

SystemMonster

A monster of the game

new SystemMonster (json)

Name Type Description
json Object optional Json object describing the monster
Properties:
Name Type Description
rewards Object An object containing experience, currencies, and loots
actions Array.<SystemMonsterAction> The monster actions list

Extends

Methods

read (json) overrides

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

getRewardExperience (level)number

Get the experience reward
Name Type Description
level number The monster level
Returns:
Type Description
number

getRewardCurrencies (level)Object

Get the currencies reward
Name Type Description
level number The monster level
Returns:
Type Description
Object

getRewardLoots (level)Array.<Object>

Get the loots reward
Name Type Description
level number The monster level
Returns:
Type Description
Array.<Object>

check () inherited overrides

Check if the class ID exists

getProperty (prop)number inherited overrides

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

getExperienceTable ()Object inherited overrides

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

getStatisticsProgression ()Array.<SystemProgression> inherited overrides

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

getSkills ()Array.<SystemClassSkill> inherited overrides

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

createExpList ()Array.<number> inherited overrides

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