mk.jpg (39.99 KB, 下载次数: 5)
class Interpreter Face_Event = [nil,[0,-1],[1,0],[-1,0],[0,1]] def aexy return false unless @event_id [2,4,6,8].any?{|i|$game_player.direction==i and [$game_player.x-$game_map.events[@event_id].x,$game_player.y-$game_map.events[@event_id].y] == Face_Event[i/2]} end end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |