Created
August 28, 2021 09:52
-
-
Save triacontane/62c0649c7673080522e2131b1c98d220 to your computer and use it in GitHub Desktop.
半歩移動プラグインでイベント起動可能チェック
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Game_Player.prototype.canStartEvent = function() { | |
this.checkEventTriggerHere([0]); | |
this.checkEventTriggerThere([0, 1, 2]); | |
let result = false; | |
$gameMap.events().forEach(event => { | |
if (event.isStarting()) { | |
event.clearStartingFlag(); | |
event.unlock(); | |
result = true; | |
} | |
}); | |
return result; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment