Rearranged some code relating to data and its caching

This commit is contained in:
Maruno17
2020-09-07 22:48:11 +01:00
parent 7221e88be4
commit e987c10472
13 changed files with 414 additions and 380 deletions

View File

@@ -0,0 +1,29 @@
#70925035
begin
module PBStatuses
NONE = 0
SLEEP = 1
POISON = 2
BURN = 3
PARALYSIS = 4
FROZEN = 5
def self.getName(id)
id = getID(PBStatuses,id)
names = [
_INTL("healthy"),
_INTL("asleep"),
_INTL("poisoned"),
_INTL("burned"),
_INTL("paralyzed"),
_INTL("frozen")
]
return names[id]
end
end
rescue Exception
if $!.is_a?(SystemExit) || "#{$!.class}"=="Reset"
raise $!
end
end