game data

This commit is contained in:
infinitefusion
2021-07-28 20:20:50 -04:00
parent 980517c0a2
commit dc7df58c17
1932 changed files with 275538 additions and 3 deletions

View File

@@ -0,0 +1,28 @@
#méthodes utilitaires ajoutées qui étaient éparpillées partout
# on va essayer de les regrouper ici
def getBodyID(species)
return (species / NB_POKEMON).round
end
def getHeadID(species, bodyId)
return (species - (bodyId * NB_POKEMON)).round
end
#-------------------------------------------------------------------------------
# Misc scripting utilities
#-------------------------------------------------------------------------------
class Bitmap
attr_accessor :storedPath
end
def pbBitmap(name)
if !pbResolveBitmap(name).nil?
bmp = RPG::Cache.load_bitmap(name)
bmp.storedPath = name
else
p "Image located at '#{name}' was not found!" if $DEBUG
bmp = Bitmap.new(1, 1)
end
return bmp
end