mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-22 23:06:18 +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)
|
# * 0 = Determines if all directions are impassable (for jumping)
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
def passable?(x, y, d)
|
def passable?(x, y, d)
|
||||||
if Settings[:debug] && Input.press?(Input::DEBUGACTION)
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
# Get new coordinates
|
# Get new coordinates
|
||||||
new_x = x + (d == 6 ? 1 : d == 4 ? -1 : 0)
|
new_x = x + (d == 6 ? 1 : d == 4 ? -1 : 0)
|
||||||
new_y = y + (d == 2 ? 1 : d == 8 ? -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)
|
# * 0 = Determines if all directions are impassable (for jumping)
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
def passable?(x, y, d)
|
def passable?(x, y, d)
|
||||||
|
if Settings[:debug] && Input.press?(Input::DEBUGACTION)
|
||||||
|
return true
|
||||||
|
end
|
||||||
# Get new coordinates
|
# Get new coordinates
|
||||||
new_x = x + (d == 6 ? 1 : d == 4 ? -1 : 0)
|
new_x = x + (d == 6 ? 1 : d == 4 ? -1 : 0)
|
||||||
new_y = y + (d == 2 ? 1 : d == 8 ? -1 : 0)
|
new_y = y + (d == 2 ? 1 : d == 8 ? -1 : 0)
|
||||||
|
|
@ -30,11 +33,6 @@ class Game_Player < Game_Character
|
||||||
# Impassable
|
# Impassable
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
# If debug mode is ON and ctrl key was pressed
|
|
||||||
#if Settings[:debug] and Input.press?(Input::LCTRL)
|
|
||||||
# Passable
|
|
||||||
# return true
|
|
||||||
#end
|
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue