-
Notifications
You must be signed in to change notification settings - Fork 74
#175 count frames at SceneManager #182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Remove accessing to $gameSystem by Scene_Base.
js/rpg_objects/Game_System.js
Outdated
| Game_System.prototype.frameCount = function() { | ||
| return this._frameCount; | ||
| return SceneManager.frameCount(); | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this function may no longer be required, because it does not originally exist ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All right, I will remove this.
| Game_System.prototype.onAfterLoad = function() { | ||
| if (!this._frameCount) { | ||
| this._frameCount = this._framesOnSave; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, do not erase this for save data compatibility.
If this does not exist, SceneManager.setFrameCount(undefined) may occur. 😢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that to raise the complexity of scripts for save data compatibility is not good. Though I respect your policy.
|
Do not forget to reset |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_
krmbn0576
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for PR!
Would you reflect my reviews before merging?
On after load, if scene frame count is undefined, it is initialized by graphics frame count.
krmbn0576
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK! 🍣
Sigureya
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK!
OTUKARESAMA!
Remove accessing to $gameSystem by Scene_Base.