This commit is contained in:
infinitefusion
2024-07-05 18:35:06 -04:00
62 changed files with 51 additions and 12 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -5,8 +5,8 @@
#==============================================================================# #==============================================================================#
module Settings module Settings
# The version of your game. It has to adhere to the MAJOR.MINOR.PATCH format. # The version of your game. It has to adhere to the MAJOR.MINOR.PATCH format.
GAME_VERSION = '6.2.2' GAME_VERSION = '6.2.3'
GAME_VERSION_NUMBER = "6.2.2" GAME_VERSION_NUMBER = "6.2.3"
POKERADAR_LIGHT_ANIMATION_RED_ID = 17 POKERADAR_LIGHT_ANIMATION_RED_ID = 17
POKERADAR_LIGHT_ANIMATION_GREEN_ID = 18 POKERADAR_LIGHT_ANIMATION_GREEN_ID = 18

View File

@@ -36,6 +36,7 @@ class Game_Map
attr_reader :display_x # display x-coordinate * 128 attr_reader :display_x # display x-coordinate * 128
attr_reader :display_y # display y-coordinate * 128 attr_reader :display_y # display y-coordinate * 128
attr_accessor :need_refresh # refresh request flag attr_accessor :need_refresh # refresh request flag
attr_accessor :scroll_direction
TILE_WIDTH = 32 TILE_WIDTH = 32
TILE_HEIGHT = 32 TILE_HEIGHT = 32

View File

@@ -178,6 +178,12 @@ class Game_Player < Game_Character
self.map.display_y = y * Game_Map::REAL_RES_Y - SCREEN_CENTER_Y self.map.display_y = y * Game_Map::REAL_RES_Y - SCREEN_CENTER_Y
end end
def isCentered()
x_centered = self.map.display_x == x * Game_Map::REAL_RES_X - SCREEN_CENTER_X
y_centered = self.map.display_y == y * Game_Map::REAL_RES_Y - SCREEN_CENTER_Y
return x_centered && y_centered
end
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# * Move to Designated Position # * Move to Designated Position
# x : x-coordinate # x : x-coordinate

View File

@@ -28,6 +28,31 @@ class Sprite_Wearable < RPG::Sprite
@sprite.y += offsets_array[current_frame][1] @sprite.y += offsets_array[current_frame][1]
end end
def adjustPositionForScreenScrolling
return if !$game_map.scrolling? && !@was_just_scrolling
if $game_map.scrolling?
@was_just_scrolling=true
else
@was_just_scrolling=false
end
offset_x = 0
offset_y = 0
case $game_map.scroll_direction
when DIRECTION_RIGHT
offset_x=-8
when DIRECTION_LEFT
offset_x=8
when DIRECTION_UP
offset_y=8
@sprite.z+=50 #weird layering glitch for some reason otherwise. It's reset to the correct value in the next animation frame
when DIRECTION_DOWN
offset_y=-8
end
@sprite.x+=offset_x
@sprite.y+=offset_y
end
def set_sprite_position(action, direction, current_frame) def set_sprite_position(action, direction, current_frame)
@sprite.x = @player_sprite.x - @player_sprite.ox @sprite.x = @player_sprite.x - @player_sprite.ox
@sprite.y = @player_sprite.y - @player_sprite.oy @sprite.y = @player_sprite.y - @player_sprite.oy
@@ -86,6 +111,8 @@ class Sprite_Wearable < RPG::Sprite
@sprite.x = @player_sprite.x - @player_sprite.ox @sprite.x = @player_sprite.x - @player_sprite.ox
@sprite.y = @player_sprite.y - @player_sprite.oy @sprite.y = @player_sprite.y - @player_sprite.oy
end end
adjustPositionForScreenScrolling()
@sprite.y -= 2 if current_frame % 2 == 1 @sprite.y -= 2 if current_frame % 2 == 1
end end
@@ -95,8 +122,8 @@ class Sprite_Wearable < RPG::Sprite
current_frame = @player_sprite.character.pattern if !frame current_frame = @player_sprite.character.pattern if !frame
direction = @player_sprite.character.direction direction = @player_sprite.character.direction
crop_spritesheet(direction) crop_spritesheet(direction)
set_sprite_position(@action, direction, current_frame)
adjust_layer() adjust_layer()
set_sprite_position(@action, direction, current_frame)
end end
def update(action, filename,color) def update(action, filename,color)

View File

@@ -17,6 +17,7 @@ class Sprite_Player < Sprite_Character
getClothedPlayerSprite(true) getClothedPlayerSprite(true)
end end
def updateCharacterBitmap def updateCharacterBitmap
skinTone = $Trainer.skin_tone ? $Trainer.skin_tone : 0 skinTone = $Trainer.skin_tone ? $Trainer.skin_tone : 0
baseBitmapFilename = getBaseOverworldSpriteFilename(@character_name, skinTone) baseBitmapFilename = getBaseOverworldSpriteFilename(@character_name, skinTone)
@@ -78,9 +79,7 @@ class Sprite_Player < Sprite_Character
return baseBitmap return baseBitmap
end end
def positionHair(baseBitmap, hairBirmap, offset)
baseBitmap.blt(offset[0], offset[1], hairBirmap, hairBirmap.rect)
end
def update def update

View File

@@ -18,6 +18,9 @@ def pbLoadTrainer(tr_type, tr_name, tr_version = 0)
raise _INTL("Trainer type {1} does not exist.", tr_type) if !tr_type_data raise _INTL("Trainer type {1} does not exist.", tr_type) if !tr_type_data
tr_type = tr_type_data.id tr_type = tr_type_data.id
trainer_data = getTrainersDataMode.try_get(tr_type, tr_name, tr_version) trainer_data = getTrainersDataMode.try_get(tr_type, tr_name, tr_version)
if !trainer_data
trainer_data = GameData::Trainer.try_get(tr_type, tr_name, tr_version)
end
return (trainer_data) ? trainer_data.to_trainer : nil return (trainer_data) ? trainer_data.to_trainer : nil
end end

View File

@@ -587,6 +587,7 @@ class PokemonMartScreen
@scene.pbStartBuyScene(@stock,@adapter) @scene.pbStartBuyScene(@stock,@adapter)
item=nil item=nil
loop do loop do
pbWait(4)
item=@scene.pbChooseBuyItem item=@scene.pbChooseBuyItem
break if !item break if !item
quantity=0 quantity=0

View File

@@ -176,11 +176,11 @@ end
def playPokeFluteAnimation def playPokeFluteAnimation
return if $Trainer.outfit != 0 # return if $Trainer.outfit != 0
$game_player.setDefaultCharName("players/pokeflute", 0, false) # $game_player.setDefaultCharName("players/pokeflute", 0, false)
Graphics.update # Graphics.update
Input.update # Input.update
pbUpdateSceneMap # pbUpdateSceneMap
end end
def restoreDefaultCharacterSprite(charset_number = 0) def restoreDefaultCharacterSprite(charset_number = 0)

View File

@@ -30,7 +30,9 @@ next catchRate
}) })
BallHandlers::OnCatch.add(:ABILITYBALL,proc{|ball,battle,pokemon| BallHandlers::OnCatch.add(:ABILITYBALL,proc{|ball,battle,pokemon|
species = getSpecies(dexNum(pokemon)) species = getSpecies(dexNum(pokemon))
pokemon.ability_index= getAbilityIndexFromID(species.hidden_abilities[-1],pokemon) ability = species.hidden_abilities[-1]
pokemon.ability = ability
pokemon.ability_index= getAbilityIndexFromID(ability,pokemon)
}) })
#VIRUS BALL 27 - give pokerus #VIRUS BALL 27 - give pokerus

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 936 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 777 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 767 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 874 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 878 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 855 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 966 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 672 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 886 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 906 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 872 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 855 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 916 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 951 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 834 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 913 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 799 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 941 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 761 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB