/* * -------------------------------------------------- * SRD_SummonCore_MNKR_PatchSkill.js * Ver.1.0.0 * Copyright (c) 2020 Munokura * This software is released under the MIT license. * http://opensource.org/licenses/mit-license.php * -------------------------------------------------- */ /* * 2020/05/12 1.0.0 公開 */ /*: @target MV @url https://raw.githubusercontent.com/munokura/MNKR-MV-plugins/master/SRD_SummonCore_MNKR_PatchSkill.js @plugindesc A patch plugin that changes the way actors summoned with SRD_SummonCore learn skills that match their level. @author munokura @license MIT @help This is a patch plugin for Summon Core Version 1.05. Requires Summon Core. http://sumrndm.site/summon-core/ Place this plugin below SRD_SummonCore in the Plugin Manager. Summon Core allows you to specify the level of the summoned actor, but if you set skills by level and the initial level is 1, the actor will be summoned with only the level 1 skills. This patch plugin solves this problem. The actor will be summoned with skills acquired according to the summoning level. Note In Summon Core Version 1.05, if the initial level of the actor summoned in the database is set to a high level, such as 99, and then summoned at a lower level, the actor will be summoned with all skills already acquired at the initial level. This patch plugin does not resolve this issue. Therefore, we recommend setting the initial level of the actor summoned in the database to 1. There are no plugin commands or settings. Terms of Use: MIT License. http://opensource.org/licenses/mit-license.php You may modify and redistribute this without permission from the author, and there are no restrictions on its use (commercial, R18, etc.). */ /*:ja @target MV @url https://raw.githubusercontent.com/munokura/MNKR-MV-plugins/master/SRD_SummonCore_MNKR_PatchSkill.js @plugindesc SRD_SummonCoreで召喚されたアクターがレベルに合わせたスキルを習得しないのを習得するように変更するパッチプラグイン @author Munokura @license MIT @help Summon Core Version 1.05 用のパッチプラグインです。 動作にはSummon Coreが必要です。 http://sumrndm.site/summon-core/ プラグイン管理で、このプラグインをSRD_SummonCoreの下側に配置してください。 Summon Core では召喚アクターのレベルを指定できますが、 レベル毎の習得スキルを設定していて、初期レベルが1の場合、 レベル1の習得スキルのみを習得した状態で召喚されます。 このパッチプラグインは、この問題を解決します。 召喚レベルに合わせてスキルを習得した状態で召喚されます。 注意点 Summon Core Version 1.05 では、 データベースで召喚されるアクターの初期レベルを99等の高レベルに設定していて、 低いレベルで召喚した場合、初期レベルで習得済みの全スキルを習得した状態で召喚されます。 この問題はこのパッチプラグインでも解消していません。 よって、データベースで召喚されるアクターの初期レベルは1にしておくことをお勧めします。 プラグインコマンドや設定はありません。 利用規約: MITライセンスです。 http://opensource.org/licenses/mit-license.php 作者に無断で改変、再配布が可能で、 利用形態(商用、18禁利用等)についても制限はありません。 */ var SRD = SRD || {}; SRD.SummonCoreMnkrPatchSkill = SRD.SummonCoreMnkrPatchSkill || {}; SRD.NotetagGetters = SRD.NotetagGetters || []; var Imported = Imported || {}; Imported["SRD SummonCore MNKR Patch Skill"] = "1.0.0"; (function (_, N) { "use strict"; _.meetsRequirements = Imported["SumRndmDde Summon Core"]; _.alertNeedSummonCore = function () { alert("The 'SRD_SummonCore' plugin is required for using the 'SRD_SummonBattlerImages' plugin."); if (confirm("Do you want to open the download page to 'SRD_SummonCore'?")) { window.open('http://sumrndm.site/summon-core/'); } }; if (!_.meetsRequirements) { _.alertNeedSummonCore(); } const _Game_Summon_initialize = Game_Summon.prototype.initialize; Game_Summon.prototype.initialize = function (actorId, level, turns, introAni, exitAni, masterId) { var ret = _Game_Summon_initialize.apply(this, arguments); this.currentClass().learnings.forEach(function (learning) { if (learning.level <= this._level) { this.learnSkill(learning.skillId); } }, this); return ret; }; })(SRD.SummonCoreMnkrPatchSkill, SRD.NotetagGetters);