Hello,
In my game I have a thief that, when he reaches a certain level, can get better deals when selling items. I'm trying to create a plug-in that will let me adjust that price but it doesn't seem to be working.
//=============================================================================// Fence.js//=============================================================================/*: * @plugindesc Shade fence skill. * @author Daniel Chessare * * @help Divide the sale price of an item * * @param Divisor * @desc Number to divide sale item by. * @default */(function() { var parameters = PluginManager.parameters('Fence'); var Divisor = parameters['Divisor'] || ''; var newSellPrice = Scene_Shop.prototype.sellingPrice; Scene_Shop.prototype.sellingPrice = function() { newSellPrice.call(this); return Math.floor(this._item.price / Divisor); }; }})();any thoughts?
In my game I have a thief that, when he reaches a certain level, can get better deals when selling items. I'm trying to create a plug-in that will let me adjust that price but it doesn't seem to be working.
//=============================================================================// Fence.js//=============================================================================/*: * @plugindesc Shade fence skill. * @author Daniel Chessare * * @help Divide the sale price of an item * * @param Divisor * @desc Number to divide sale item by. * @default */(function() { var parameters = PluginManager.parameters('Fence'); var Divisor = parameters['Divisor'] || ''; var newSellPrice = Scene_Shop.prototype.sellingPrice; Scene_Shop.prototype.sellingPrice = function() { newSellPrice.call(this); return Math.floor(this._item.price / Divisor); }; }})();any thoughts?