Skip to content

Commit

Permalink
1.0.1 2018/10/14 セーブ&ロードを挟むとお気に入り装備が復元されない問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
triacontane committed Oct 14, 2018
1 parent 5b8248d commit ef42c7b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions FavouriteEquips.js
@@ -1,11 +1,12 @@
//=============================================================================
// FavouriteEquips.js
// ----------------------------------------------------------------------------
// Copyright (c) 2015-2017 Triacontane
// (C) 2017 Triacontane
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
// ----------------------------------------------------------------------------
// Version
// 1.0.1 2018/10/14 セーブ&ロードを挟むとお気に入り装備が復元されない問題を修正
// 1.0.0 2017/10/01 初版
// ----------------------------------------------------------------------------
// [Blog] : https://triacontane.blogspot.jp/
Expand Down Expand Up @@ -96,7 +97,7 @@
var convertAllArguments = function(args) {
return args.map(function(arg) {
return convertEscapeCharacters(arg);
})
});
};

var setPluginCommand = function(commandName, methodName) {
Expand Down Expand Up @@ -170,6 +171,11 @@
if (!equipItem) {
return;
}
if (equipItem.wtypeId !== undefined) {
equipItem = $dataWeapons[equipItem.id];
} else {
equipItem = $dataArmors[equipItem.id];
}
this.changeEquip(slotId, equipItem);
}, this);
};
Expand Down

0 comments on commit ef42c7b

Please sign in to comment.