mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Various map fixes
This commit is contained in:
@@ -20,7 +20,8 @@ HELD_ITEMS = [:AIRBALLOON, :BRIGHTPOWDER, :EVIOLITE, :FLOATSTONE, :DESTINYKNOT,
|
||||
:PETAYABERRY, :APICOTBERRY, :LANSATBERRY, :STARFBERRY, :ENIGMABERRY, :MICLEBERRY, :CUSTAPBERRY,
|
||||
:JABOCABERRY, :ROWAPBERRY, :FAIRYGEM]
|
||||
|
||||
INVALID_ITEMS = [:COVERFOSSIL, :PLUMEFOSSIL, :ACCURACYUP, :DAMAGEUP, :ANCIENTSTONE, :ODDKEYSTONE_FULL, :TM00,:DEVOLUTIONSPRAY]
|
||||
INVALID_ITEMS = [:COVERFOSSIL, :PLUMEFOSSIL, :ACCURACYUP, :DAMAGEUP, :ANCIENTSTONE, :ODDKEYSTONE_FULL,
|
||||
:TM00,:DEVOLUTIONSPRAY, :INVISIBALL]
|
||||
RANDOM_ITEM_EXCEPTIONS = [:DNASPLICERS, :DYNAMITE]
|
||||
|
||||
def getRandomGivenTM(item)
|
||||
|
||||
@@ -32,7 +32,7 @@ def download_sprite(base_path, head_id, body_id)
|
||||
end
|
||||
|
||||
def download_autogen_sprite(head_id, body_id)
|
||||
return nil if !$PokemonSystem.download_sprites
|
||||
return nil if $PokemonSystem.download_sprites != 0
|
||||
base_path = "https://raw.githubusercontent.com/Aegide/autogen-fusion-sprites/master/Battlers/{1}/{1}.{2}.png"
|
||||
sprite = download_sprite(_INTL(base_path,head_id,body_id),head_id,body_id)
|
||||
return sprite if sprite
|
||||
@@ -40,16 +40,20 @@ def download_autogen_sprite(head_id, body_id)
|
||||
end
|
||||
|
||||
def download_custom_sprite(head_id, body_id)
|
||||
return nil if !$PokemonSystem.download_sprites
|
||||
base_path = "https://raw.githubusercontent.com/Aegide/custom-fusion-sprites/main/CustomBattlers/{1}.{2}.png"
|
||||
return nil if $PokemonSystem.download_sprites != 0
|
||||
#base_path = "https://raw.githubusercontent.com/Aegide/custom-fusion-sprites/main/CustomBattlers/{1}.{2}.png"
|
||||
base_path = "https://raw.githubusercontent.com/infinitefusion/sprites/main/CustomBattlers/{1}.{2}.png"
|
||||
sprite = download_sprite(_INTL(base_path,head_id,body_id),head_id,body_id)
|
||||
return sprite if sprite
|
||||
return nil
|
||||
end
|
||||
|
||||
#format: [1.1.png, 1.2.png, etc.]
|
||||
# https://api.github.com/repos/infinitefusion/contents/sprites/CustomBattlers
|
||||
# repo = "Aegide/custom-fusion-sprites"
|
||||
# folder = "CustomBattlers"
|
||||
def list_online_custom_sprites
|
||||
repo = "Aegide/custom-fusion-sprites"
|
||||
repo = "infinitefusion/sprites"
|
||||
folder = "CustomBattlers"
|
||||
api_url = "https://api.github.com/repos/#{repo}/contents/#{folder}"
|
||||
response = HTTPLite.get(api_url)
|
||||
|
||||
Reference in New Issue
Block a user