mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
Removed all uses of ID numbers for species, some other code changes for abolishing ID numbers
This commit is contained in:
@@ -112,9 +112,8 @@ module NicknameChecker
|
||||
name = name.upcase
|
||||
return true if name == getName(species)
|
||||
return false if @@names.values.include?(name)
|
||||
GameData::Species.each do |species_data|
|
||||
next if species_data.species == species || species_data.form != 0
|
||||
return false if getName(species_data.id) == name
|
||||
GameData::Species.each_species do |species_data|
|
||||
return false if species_data.species != species && getName(species_data.id) == name
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
@@ -42,7 +42,7 @@ def pbRandomMove
|
||||
loop do
|
||||
move_id = keys[rand(keys.length)]
|
||||
move = GameData::Move.get(move_id)
|
||||
next if move.id_number > 384 || move.id == :SKETCH || move.id == :STRUGGLE
|
||||
next if move.id == :SKETCH || move.id == :STRUGGLE
|
||||
return move.id
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user