More or less standardised separator comments in the code

This commit is contained in:
Maruno17
2024-06-27 21:21:26 +01:00
parent 225549bfce
commit 509a414f37
198 changed files with 1907 additions and 1263 deletions

View File

@@ -1,3 +1,6 @@
#===============================================================================
#
#===============================================================================
class Game_Character
attr_reader :id
attr_reader :original_x
@@ -194,9 +197,10 @@ class Game_Character
@direction = @prelock_direction if !@direction_fix && @prelock_direction != 0
end
#=============================================================================
#-----------------------------------------------------------------------------
# Information from map data
#=============================================================================
#-----------------------------------------------------------------------------
def map
return (@map) ? @map : $game_map
end
@@ -242,9 +246,10 @@ class Game_Character
return 0
end
#=============================================================================
#-----------------------------------------------------------------------------
# Passability
#=============================================================================
#-----------------------------------------------------------------------------
def passable?(x, y, dir, strict = false)
new_x = x + (dir == 6 ? 1 : dir == 4 ? -1 : 0)
new_y = y + (dir == 2 ? 1 : dir == 8 ? -1 : 0)
@@ -313,9 +318,10 @@ class Game_Character
return can_move_from_coordinate?(@x, @y, dir, strict)
end
#=============================================================================
#-----------------------------------------------------------------------------
# Screen position of the character
#=============================================================================
#-----------------------------------------------------------------------------
def screen_x
ret = ((@real_x.to_f - self.map.display_x) / Game_Map::X_SUBPIXELS).round
ret += @width * Game_Map::TILE_WIDTH / 2
@@ -353,9 +359,10 @@ class Game_Character
return z + ((height > Game_Map::TILE_HEIGHT) ? Game_Map::TILE_HEIGHT - 1 : 0)
end
#=============================================================================
#-----------------------------------------------------------------------------
# Movement
#=============================================================================
#-----------------------------------------------------------------------------
def moving?
return !@move_timer.nil?
end
@@ -410,9 +417,10 @@ class Game_Character
triggerLeaveTile
end
#=============================================================================
#-----------------------------------------------------------------------------
# Movement commands
#=============================================================================
#-----------------------------------------------------------------------------
def move_type_random
case rand(6)
when 0..3 then move_random
@@ -906,9 +914,10 @@ class Game_Character
end
end
#=============================================================================
#-----------------------------------------------------------------------------
# Updating
#=============================================================================
#-----------------------------------------------------------------------------
def update
return if $game_temp.in_menu
time_now = System.uptime