Made window bigger in map connections editor, fixed a couple of bugs, added Generation data to pokemon PBS files

This commit is contained in:
Maruno17
2021-02-27 16:33:32 +00:00
parent 8895d6b1a9
commit 1bf829c3f1
11 changed files with 2455 additions and 28 deletions

View File

@@ -112,7 +112,7 @@ end
def getConstantName(mod,value)
mod = Object.const_get(mod) if mod.is_a?(Symbol)
for c in mod.constants
return c if mod.const_get(c.to_sym)==value
return c.to_s if mod.const_get(c.to_sym)==value
end
raise _INTL("Value {1} not defined by a constant in {2}",value,mod.name)
end
@@ -120,7 +120,7 @@ end
def getConstantNameOrValue(mod,value)
mod = Object.const_get(mod) if mod.is_a?(Symbol)
for c in mod.constants
return c if mod.const_get(c.to_sym)==value
return c.to_s if mod.const_get(c.to_sym)==value
end
return value.inspect
end