/*:ja * @target MV * @url https://raw.githubusercontent.com/munokura/HIME-MV-plugins-jp/master/HIME_BattleWeather.js * @title Battle Weather * @author Hime * @date Oct 26, 2015 * * @plugindesc v1.0 戦闘中に天候を表示できます * @help * 翻訳:ムノクラ * https://fungamemake.com/ * https://twitter.com/munokura/ * * 元プラグイン: * http://himeworks.com/2015/10/battle-weather/ * * == 説明 == * * マップで天候の変更があった場合、その効果は戦闘には反映されません。 * つまり、マップ上で大雪が降っていても、戦闘に入ると完全に晴れます。 * このプラグインを使用すると、天候の変更は戦闘に持ち越され、 * 戦闘中に天候の変更を開始/停止することもできます。 * * == 使用方法 == * * インストールするだけで動きます。 * * * == 利用規約 == * * - クレジットを表示する非営利プロジェクトでの使用は無料 * - 商用利用の場合、私に連絡してください */ /*: @title Battle Weather @author Hime @date Oct 26, 2015 @url http://himeworks.com/2015/10/battle-weather/ @plugindesc Allows you to display weather effects in battle @help == Description == When there are weather effects on the map, these effects do not carry over into battle. This means that even if it's snowing heavily on your map, once you enter the battle, it will be perfectly clean. With this plugin, weather effects will carry over into battle, and you can even start or stop weather effects during battle. == Terms of Use == - Free for use in non-commercial projects with credits - Contact me for commercial use == Usage == Plug and Play. */ var Imported = Imported || {}; var TH = TH || {}; Imported.BattleWeather = 1 TH.BattleWeather = TH.BattleWeather || {}; (function ($) { var TH_BattleWeather_SpritesetBattle_createLowerLayer = Spriteset_Battle.prototype.createLowerLayer; Spriteset_Battle.prototype.createLowerLayer = function () { TH_BattleWeather_SpritesetBattle_createLowerLayer.call(this); this.createWeather(); } var TH_BattleWeather_SpritesetBattle_update = Spriteset_Battle.prototype.update; Spriteset_Battle.prototype.update = function () { TH_BattleWeather_SpritesetBattle_update.call(this); this.updateWeather(); }; Spriteset_Battle.prototype.createWeather = function () { this._weather = new Weather(); this.addChild(this._weather); }; Spriteset_Battle.prototype.updateWeather = function () { this._weather.type = $gameScreen.weatherType(); this._weather.power = $gameScreen.weatherPower(); this._weather.origin.x = 0 this._weather.origin.y = 0 }; /* Overwrite */ Game_Interpreter.prototype.command236 = function () { $gameScreen.changeWeather(this._params[0], this._params[1], this._params[2]); if (this._params[3]) { this.wait(this._params[2]); } return true; }; })(TH.BattleWeather);