Triggered by this comment but I didn't want to get into the discussion in that thread.
(function() { // ...)}();and I've written all of my plugins to follow the same format.I think what you're saying is you can't access the original, unmodified version. But if you have a number of plugins that all modify the same function, wouldn't you want the mods to stack? What situation would there be where you have two plugins that modify the same function, where you want one plugin to ignore the mods of the other?
I don't understand this. The kadokawa plugins all use this:one thing that bug me...
some plugins that wrap in anonymous function
(function() { // …})();it's okay... but the problem lies when they alias something but using private variable inside that anonymous function. this mean the old method cannot be accessed by other plugins.
we cannot access the estMyOldFunction thus the Game_Enemy.prototype.opponentUnits before modified is LOST...at least store the old function inside a module / container wrapper !!!Code:(function() { var estMyOldFunction = Game_Enemy.prototype.opponentUnits;})();
(function() { // ...)}();and I've written all of my plugins to follow the same format.I think what you're saying is you can't access the original, unmodified version. But if you have a number of plugins that all modify the same function, wouldn't you want the mods to stack? What situation would there be where you have two plugins that modify the same function, where you want one plugin to ignore the mods of the other?
Last edited by a moderator:
