Hi
in shop menu
the equipment that equipping is not count and show in possession
it make me feel confusing
my game is only one character game not party
I want to show if the player already got that equipment
but instead the game not show number of possession when he is wearing it
thank you
edit
in shop menu
the equipment that equipping is not count and show in possession
it make me feel confusing
my game is only one character game not party
I want to show if the player already got that equipment
but instead the game not show number of possession when he is wearing it
thank you
Code:
Window_ShopStatus.prototype.drawPossession = function(x, y) {
var width = this.contents.width - this.textPadding() - x;
var possessionWidth = this.textWidth('0000');
this.changeTextColor(this.systemColor());
this.drawText(TextManager.possession, x, y, width - possessionWidth);
this.resetTextColor();
this.drawText($gameParty.numItems(this._item), x, y, width, 'right');
};
edit
Code:
Window_ShopStatus.prototype.drawPossession = function(x, y) {
var width = this.contents.width - this.textPadding() - x;
var possessionWidth = this.textWidth('0000');
this.changeTextColor(this.systemColor());
this.drawText(TextManager.possession, x, y, width - possessionWidth);
this.resetTextColor();
var count = $gameParty.numItems(this._item);
var actor = $gameParty.leader();
var eItem = this.currentEquippedItem(actor, this._item.etypeId);
if(this._item === eItem){count += 1;};
this.drawText(count, x, y, width, 'right');
//this.drawText($gameParty.numItems(this._item), x, y, width, 'right');
};