mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
30 lines
511 B
Ruby
30 lines
511 B
Ruby
#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
|