update 6.7

This commit is contained in:
chardub
2025-09-28 15:53:01 -04:00
parent ef5e023ae0
commit 318ff90d8d
696 changed files with 111759 additions and 198230 deletions

View File

@@ -25,11 +25,6 @@ class Game_Temp
attr_accessor :fadestate # for sprite hashes
attr_accessor :background_bitmap
attr_accessor :mart_prices
attr_accessor :unimportedSprites
attr_accessor :nb_imported_sprites
attr_accessor :loading_screen
attr_accessor :custom_sprites_list
attr_accessor :base_sprites_list
#-----------------------------------------------------------------------------
# * Object Initialization
@@ -57,9 +52,6 @@ class Game_Temp
@message_window_showing = false
@transition_processing = false
@mart_prices = {}
@custom_sprites_list ={}
@base_sprites_list ={}
end
def clear_mart_prices

View File

@@ -12,8 +12,8 @@ class Game_Picture
attr_reader :number # picture number
attr_accessor :name # file name
attr_reader :origin # starting point
attr_reader :x # x-coordinate
attr_reader :y # y-coordinate
attr_accessor :x # x-coordinate
attr_accessor :y # y-coordinate
attr_accessor :zoom_x # x directional zoom rate
attr_accessor :zoom_y # y directional zoom rate
attr_accessor :opacity # opacity level

View File

@@ -25,7 +25,10 @@ class Game_Character
attr_reader :move_speed
attr_accessor :walk_anime
attr_writer :bob_height
attr_accessor :under_everything
attr_accessor :under_everything #under even grass
attr_accessor :under_player #always under the player, but over grass, etc.
attr_accessor :direction_fix
attr_accessor :always_on_top
def initialize(map = nil)
@map = map
@@ -77,6 +80,7 @@ class Game_Character
@locked = false
@prelock_direction = 0
@under_everything=false
@under_player = false
@forced_z=nil
end
@@ -339,6 +343,7 @@ class Game_Character
def screen_z(height = 0)
return -1 if @under_everything
return 0 if @under_player
return 999 if @always_on_top
return @forced_z if @forced_z
z = screen_y_ground
@@ -354,6 +359,17 @@ class Game_Character
return z + ((height > Game_Map::TILE_HEIGHT) ? Game_Map::TILE_HEIGHT - 1 : 0)
end
def opposite_direction
case @direction
when DIRECTION_LEFT; return DIRECTION_RIGHT
when DIRECTION_RIGHT; return DIRECTION_LEFT
when DIRECTION_UP; return DIRECTION_DOWN
when DIRECTION_DOWN; return DIRECTION_UP
else
return DIRECTION_ALL
end
end
#=============================================================================
# Movement
#=============================================================================
@@ -899,6 +915,27 @@ class Game_Character
@direction_fix = last_direction_fix
end
def jump_forward
case $game_player.direction
when DIRECTION_DOWN
x_direction = 0
y_direction = 1
when DIRECTION_UP
x_direction = 0
y_direction = -1
when DIRECTION_LEFT
x_direction = -1
y_direction = 0
when DIRECTION_RIGHT
x_direction = 1
y_direction = 0
else
x_direction = 0
y_direction = 0
end
jump(x_direction, y_direction)
end
def jump(x_plus, y_plus)
if x_plus != 0 || y_plus != 0
if x_plus.abs > y_plus.abs

View File

@@ -1,10 +1,13 @@
class Game_Event < Game_Character
attr_reader :map_id
attr_reader :trigger
attr_accessor :trigger
attr_reader :list
attr_reader :starting
attr_reader :tempSwitches # Temporary self-switches
attr_reader :character_name
attr_accessor :need_refresh
attr_accessor :opacity
attr_accessor :through
def initialize(map_id, event, map=nil)
super(map)

View File

@@ -33,40 +33,34 @@ class Game_Player < Game_Character
return moving? && !@move_route_forcing && pbCanRun?
end
#Override the player's graphics
# Path from Graphics/Characters/player/
def setPlayerGraphicsOverride(path)
@defaultCharacterName=path
end
def removeGraphicsOverride
@defaultCharacterName = ""
end
def hasGraphicsOverride?
return @defaultCharacterName!=""
end
def character_name
@defaultCharacterName = "" if !@defaultCharacterName
return @defaultCharacterName if @defaultCharacterName!=""
return @defaultCharacterName if hasGraphicsOverride?
if !@move_route_forcing && $Trainer.character_ID>=0
meta = GameData::Metadata.get_player($Trainer.character_ID)
if meta && !$PokemonGlobal.bicycle && !$PokemonGlobal.diving && !$PokemonGlobal.surfing
charset = 1 # Display normal character sprite
player_is_moving = moving?
if pbCanRun? && (player_is_moving || @wasmoving) && Input.dir4!=0 && meta[4] && meta[4]!=""
charset = 4 # Display running character sprite
end
newCharName = pbGetPlayerCharset(meta,charset)
if newCharName
# echoln caller
# echoln newCharName
# echoln "moving: " + moving?.to_s
# echoln "was moving: " + @wasmoving.to_s
#
# echoln "can run: " + pbCanRun?.to_s
# echoln "Input.dir4 " + Input.dir4.to_s
#
#
# echoln (moving? || @wasmoving)
# echoln charset
# echoln ""
end
@character_name = newCharName if newCharName
@wasmoving = player_is_moving
end