Rename www to www.rus
This commit is contained in:
parent
8ea7a858d0
commit
7bf44fa645
1878 changed files with 395385 additions and 395385 deletions
46
www.rus/js/plugins/YED_SideviewBattler_MIRROR.js
Normal file
46
www.rus/js/plugins/YED_SideviewBattler_MIRROR.js
Normal file
|
@ -0,0 +1,46 @@
|
|||
/*:
|
||||
* Yami Engine Delta - Sideview Battler Enhancement Add-On
|
||||
*
|
||||
* @plugindesc v1.0.0 This plugin allows user to use any kind of sideview battler.
|
||||
* @author Yami Engine Delta [Dr.Yami]
|
||||
* @help
|
||||
* There is no Plugin Command for this plugin.
|
||||
*
|
||||
* ============================================================================
|
||||
* Actors & Enemies Notetags
|
||||
*
|
||||
* <sprite mirrored>
|
||||
* The sprite will be mirrored.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @namespace SideviewBattler
|
||||
* @memberof YED
|
||||
*/
|
||||
|
||||
(function() {
|
||||
var _processSVENotetags1 = DataManager.processSVENotetags1;
|
||||
DataManager.processSVENotetags1 = function(group) {
|
||||
_processSVENotetags1.call(this, group);
|
||||
|
||||
for (var n = 1; n < group.length; n++) {
|
||||
var obj = group[n];
|
||||
var notedata = obj.note.split(/[\r\n]+/);
|
||||
|
||||
obj.spriteMirrored = false;
|
||||
|
||||
for (var i = 0; i < notedata.length; i++) {
|
||||
var line = notedata[i];
|
||||
if (line.match(/<(?:SPRITE MIRRORED)>/i)) {
|
||||
obj.spriteMirrored = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Game_Enemy.prototype.spriteScaleX = function() {
|
||||
if (this.enemy().spriteMirrored) return this.enemy().spriteScaleX * -1;
|
||||
return this.enemy().spriteScaleX;
|
||||
};
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue