Class: SystemStatisticProgression

SystemStatisticProgression

A statistic progression of the game

new SystemStatisticProgression (json)

Name Type Description
json Object optional Json object describing the statistic progression
Properties:
Name Type Description
id number The id of the statistic
maxValue SystemValue The max value
isFix boolean Indicate if the statistic progression is fix
table SystemProgressionTable The system progression table
random SystemValue The random value
formula SystemValue The formula

Methods

read (json)

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

getValueAtLevel (level, user, maxLevel)

Get the value progresion at level
Name Type Description
level number The level
user GamePlayer The user
maxLevel number optional The max level