Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Window_SkillList.prototype.endTurnIndex = function ()
- {
- return 0;
- };
- var Scene_Battle_createItemButton = Scene_Battle.prototype.createItemButtom;
- Scene_Battle.prototype.createItemButtom = function ()
- {
- Scene_Battle_createItemButton.call(this);
- this._itemButton.setIndex(1);
- };
- Window_SkillList.prototype.makeItemList = function ()
- {
- if (!$gameSystem._cardBattleEnabled)
- {
- Isiah.CGC.Window_SkillList_makeItemList.call(this);
- return;
- }
- this._data = [];
- this._itemsBeforeCards = 0;
- if (this._cardSprites)
- {
- for (var i = 0; i < this._cardSprites.length; i++)
- {
- this._data[i] = this._cardSprites[i]._skill;
- if (this.isEnabled(this._data[i]))
- this._cardSprites[i]._enabledSprite.show();
- else
- this._cardSprites[i]._enabledSprite.hide();
- }
- if (SceneManager._scene instanceof Scene_Battle)
- {
- if (Isiah.CGC.showItemButton)
- {
- this._data.unshift('itemMenu');
- this._itemsBeforeCards++;
- }
- if (Isiah.CGC.showEndTurn)
- {
- this._data.unshift($dataSkills[Isiah.CGC.endTurnSkill]);
- this._itemsBeforeCards++;
- this._endTurnButton.setIndex(this.endTurnIndex());
- }
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement