Added class GameData::GrowthRate

This commit is contained in:
Maruno17
2021-02-23 22:20:34 +00:00
parent f302d8346a
commit eda534f3be
24 changed files with 245 additions and 261 deletions

View File

@@ -869,7 +869,7 @@ module Compiler
probabilities = nil
current_type = -1
expected_lines = 0
max_level = PBExperience.maxLevel
max_level = GameData::GrowthRate.max_level
pbCompilerEachPreppedLine("PBS/encounters.txt") { |line, line_no|
next if line.length == 0
if expected_lines > 0 && line[/^\d+,/] && new_format # Species line
@@ -1102,7 +1102,7 @@ module Compiler
#=============================================================================
def compile_trainers
schema = GameData::Trainer::SCHEMA
max_level = PBExperience.maxLevel
max_level = GameData::GrowthRate.max_level
trainer_names = []
trainer_lose_texts = []
trainer_hash = nil

View File

@@ -274,7 +274,7 @@ module Compiler
f.write(sprintf("Type2 = %s\r\n", species.type2)) if species.type2 != species.type1
f.write(sprintf("BaseStats = %s\r\n", species.base_stats.join(",")))
f.write(sprintf("GenderRate = %s\r\n", species.gender_ratio))
f.write(sprintf("GrowthRate = %s\r\n", getConstantName(PBGrowthRates, species.growth_rate)))
f.write(sprintf("GrowthRate = %s\r\n", species.growth_rate))
f.write(sprintf("BaseEXP = %d\r\n", species.base_exp))
f.write(sprintf("EffortPoints = %s\r\n", species.evs.join(",")))
f.write(sprintf("Rareness = %d\r\n", species.catch_rate))