updates to version 6.1

This commit is contained in:
infinitefusion
2024-03-28 17:14:35 -04:00
parent e952a6f574
commit 1635409e6d
1151 changed files with 509422 additions and 5972 deletions

View File

@@ -25,6 +25,7 @@ class Game_Character
attr_reader :move_speed
attr_accessor :walk_anime
attr_writer :bob_height
attr_accessor :under_everything
def initialize(map = nil)
@map = map
@@ -75,6 +76,7 @@ class Game_Character
@moved_this_frame = false
@locked = false
@prelock_direction = 0
@under_everything=false
end
def at_coordinate?(check_x, check_y)
@@ -231,10 +233,11 @@ class Game_Character
def passable?(x, y, d, strict = false)
return false if self == $game_player && $game_switches[SWITCH_LOCK_PLAYER_MOVEMENT]
new_x = x + (d == 6 ? 1 : d == 4 ? -1 : 0)
new_y = y + (d == 2 ? 1 : d == 8 ? -1 : 0)
return false unless self.map.valid?(new_x, new_y)
if self.character_name == "SHARPEDO"
if self.character_name == "SHARPEDO" || self.character_name == "nightmare"
return false if pbFacingTerrainTag().id==:SharpedoObstacle
end
return true if @through
@@ -330,6 +333,7 @@ class Game_Character
end
def screen_z(height = 0)
return -1 if @under_everything
return 999 if @always_on_top
z = screen_y_ground
if @tile_id > 0
@@ -363,6 +367,7 @@ class Game_Character
end
def force_move_route(move_route)
echoln screen_z() if self == $game_player
if @original_move_route == nil
@original_move_route = @move_route
@original_move_route_index = @move_route_index