mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Added class GameData::GrowthRate
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user