mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-23 06:46:00 +00:00
Lots of rubocop
This commit is contained in:
@@ -77,11 +77,11 @@ def pbMapTree
|
||||
maplevels.push([i, level, info.parent_id, info.order])
|
||||
end
|
||||
end
|
||||
maplevels.sort! { |a, b|
|
||||
maplevels.sort! do |a, b|
|
||||
next a[1] <=> b[1] if a[1] != b[1] # level
|
||||
next a[2] <=> b[2] if a[2] != b[2] # parent ID
|
||||
next a[3] <=> b[3] # order
|
||||
}
|
||||
end
|
||||
stack = []
|
||||
stack.push(0, 0)
|
||||
while stack.length > 0
|
||||
@@ -133,15 +133,15 @@ end
|
||||
# the ID of the species to initially select. Pressing Input::ACTION will toggle
|
||||
# the list sorting between numerical and alphabetical.
|
||||
def pbChooseSpeciesList(default = nil)
|
||||
return pbChooseFromGameDataList(:Species, default) { |data|
|
||||
return pbChooseFromGameDataList(:Species, default) do |data|
|
||||
next (data.form > 0) ? nil : data.real_name
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
def pbChooseSpeciesFormList(default = nil)
|
||||
return pbChooseFromGameDataList(:Species, default) { |data|
|
||||
return pbChooseFromGameDataList(:Species, default) do |data|
|
||||
next (data.form > 0) ? sprintf("%s_%d", data.real_name, data.form) : data.real_name
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
# Displays a list of all types, and returns the ID of the type selected (or nil
|
||||
@@ -149,9 +149,9 @@ end
|
||||
# to initially select. Pressing Input::ACTION will toggle the list sorting
|
||||
# between numerical and alphabetical.
|
||||
def pbChooseTypeList(default = nil)
|
||||
return pbChooseFromGameDataList(:Type, default) { |data|
|
||||
return pbChooseFromGameDataList(:Type, default) do |data|
|
||||
next (data.pseudo_type) ? nil : data.real_name
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
# Displays a list of all items, and returns the ID of the item selected (or nil
|
||||
|
||||
Reference in New Issue
Block a user