>>276
突っ込もうとした処理は間違ってない。突っ込んだクラスとメソッドがまずかっただけ。
盗む時、お互いのアイテムウィンドウが開いた後で盗む処理はUnitItemStealScreenクラスがやってる。
UnitItemStealScreen._isTradeDisabled()が盗めるかどうかのチェックをしているので、そこを修正すればいい。
(以下のメソッドをコピーしてプラグインに突っ込めば、装備品は盗めなくなるはず)
UnitItemStealScreen._isTradeDisabled= function() {
var item, unit;

if (this._isSrcScrollbarActive) {
item = this._itemListSrc.getCurrentItem();
unit = this._unitSrc;
}
else {
item = this._itemListDest.getCurrentItem();
unit = this._unitDest;
// 盗もうとしたアイテムが装備品の場合、盗めないのでtrueを返す
if (ItemControl.getEquippedWeapon(unit) == item) {
return true;
}
}
if (item === null) {
return false;
}
if (unit.getUnitType() === UnitType.PLAYER && item.isImportance()) {
// 自軍が所持している重要アイテムは交換できない
return true;
}
return Miscellaneous.isStealTradeDisabled(this._unitSrc, item, this._stealFlag);
};