mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
bububebe
This commit is contained in:
parent
4cd7424680
commit
cd2aa2e446
2 changed files with 3 additions and 8 deletions
|
|
@ -125,9 +125,6 @@ class Game_Character
|
|||
# * 0 = Determines if all directions are impassable (for jumping)
|
||||
#--------------------------------------------------------------------------
|
||||
def passable?(x, y, d)
|
||||
if Settings[:debug] && Input.press?(Input::DEBUGACTION)
|
||||
return true
|
||||
end
|
||||
# Get new coordinates
|
||||
new_x = x + (d == 6 ? 1 : d == 4 ? -1 : 0)
|
||||
new_y = y + (d == 2 ? 1 : d == 8 ? -1 : 0)
|
||||
|
|
|
|||
|
|
@ -22,6 +22,9 @@ class Game_Player < Game_Character
|
|||
# * 0 = Determines if all directions are impassable (for jumping)
|
||||
#--------------------------------------------------------------------------
|
||||
def passable?(x, y, d)
|
||||
if Settings[:debug] && Input.press?(Input::DEBUGACTION)
|
||||
return true
|
||||
end
|
||||
# Get new coordinates
|
||||
new_x = x + (d == 6 ? 1 : d == 4 ? -1 : 0)
|
||||
new_y = y + (d == 2 ? 1 : d == 8 ? -1 : 0)
|
||||
|
|
@ -30,11 +33,6 @@ class Game_Player < Game_Character
|
|||
# Impassable
|
||||
return false
|
||||
end
|
||||
# If debug mode is ON and ctrl key was pressed
|
||||
#if Settings[:debug] and Input.press?(Input::LCTRL)
|
||||
# Passable
|
||||
# return true
|
||||
#end
|
||||
super
|
||||
end
|
||||
#--------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue