mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-23 14:56:00 +00:00
Deleted rubyscreen.dll, eradicated semicolons from when... statements, compiling is now before setting up the system, appeased vocal dissenters
This commit is contained in:
@@ -117,9 +117,12 @@ def pbGetSpeciesData(species, form = 0, species_data_type = -1)
|
||||
end
|
||||
return species_data[s][species_data_type] if species_data[s] && species_data[s][species_data_type]
|
||||
case species_data_type
|
||||
when SpeciesData::TYPE2; return nil
|
||||
when SpeciesData::BASE_STATS; return [1, 1, 1, 1, 1, 1]
|
||||
when SpeciesData::EFFORT_POINTS; return [0, 0, 0, 0, 0, 0]
|
||||
when SpeciesData::TYPE2
|
||||
return nil
|
||||
when SpeciesData::BASE_STATS
|
||||
return [1, 1, 1, 1, 1, 1]
|
||||
when SpeciesData::EFFORT_POINTS
|
||||
return [0, 0, 0, 0, 0, 0]
|
||||
when SpeciesData::STEPS_TO_HATCH, SpeciesData::HEIGHT, SpeciesData::WEIGHT
|
||||
return 1
|
||||
end
|
||||
|
||||
@@ -104,7 +104,6 @@ module GameData
|
||||
# @return [Boolean] whether other represents the same thing as this thing
|
||||
def ==(other)
|
||||
return false if other.nil?
|
||||
validate other => [Symbol, self.class, String, Integer]
|
||||
if other.is_a?(Symbol)
|
||||
return @id == other
|
||||
elsif other.is_a?(self.class)
|
||||
|
||||
@@ -12,7 +12,6 @@ module GameData
|
||||
include InstanceMethods
|
||||
|
||||
def initialize(hash)
|
||||
validate hash => Hash, hash[:id] => Symbol
|
||||
@id = hash[:id]
|
||||
@id_number = hash[:id_number] || -1
|
||||
@real_name = hash[:name] || "Unnamed"
|
||||
|
||||
@@ -19,7 +19,6 @@ module GameData
|
||||
include InstanceMethods
|
||||
|
||||
def initialize(hash)
|
||||
validate hash => Hash, hash[:id] => Symbol
|
||||
@id = hash[:id]
|
||||
@id_number = hash[:id_number] || -1
|
||||
@real_name = hash[:name] || "Unnamed"
|
||||
|
||||
@@ -16,7 +16,6 @@ module GameData
|
||||
include InstanceMethods
|
||||
|
||||
def initialize(hash)
|
||||
validate hash => Hash, hash[:id] => Symbol
|
||||
@id = hash[:id]
|
||||
@id_number = hash[:id_number] || -1
|
||||
@hours_per_stage = hash[:hours_per_stage] || 3
|
||||
|
||||
@@ -83,7 +83,6 @@ module GameData
|
||||
end
|
||||
|
||||
def initialize(hash)
|
||||
validate hash => Hash, hash[:id] => Integer
|
||||
@id = hash[:id]
|
||||
@home = hash[:home]
|
||||
@wild_battle_BGM = hash[:wild_battle_BGM]
|
||||
|
||||
@@ -77,7 +77,6 @@ module GameData
|
||||
end
|
||||
|
||||
def initialize(hash)
|
||||
validate hash => Hash, hash[:id] => Integer
|
||||
@id = hash[:id]
|
||||
@outdoor_map = hash[:outdoor_map]
|
||||
@announce_location = hash[:announce_location]
|
||||
|
||||
@@ -22,7 +22,6 @@ module GameData
|
||||
include InstanceMethods
|
||||
|
||||
def initialize(hash)
|
||||
validate hash => Hash, hash[:id] => Symbol
|
||||
@id = hash[:id]
|
||||
@id_number = hash[:id_number] || -1
|
||||
@real_name = hash[:name] || "Unnamed"
|
||||
|
||||
@@ -10,14 +10,14 @@ module PBGenderRates
|
||||
|
||||
def self.genderByte(gender)
|
||||
case gender
|
||||
when AlwaysMale; return 0
|
||||
when FemaleOneEighth; return 32
|
||||
when Female25Percent; return 64
|
||||
when Female50Percent; return 128
|
||||
when Female75Percent; return 192
|
||||
when FemaleSevenEighths; return 224
|
||||
when AlwaysFemale; return 254
|
||||
when Genderless; return 255
|
||||
when AlwaysMale then return 0
|
||||
when FemaleOneEighth then return 32
|
||||
when Female25Percent then return 64
|
||||
when Female50Percent then return 128
|
||||
when Female75Percent then return 192
|
||||
when FemaleSevenEighths then return 224
|
||||
when AlwaysFemale then return 254
|
||||
when Genderless then return 255
|
||||
end
|
||||
return 255 # Default value (genderless)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user