Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Window_SkillList.prototype.endTurnIndex = function ()
- {
- return 0;
- };
- Window_SkillList.prototype.itemButtonIndex = function ()
- {
- return 1;
- };
- Window_SkillList.prototype.makeItemList = function ()
- {
- if (!$gameSystem._cardBattleEnabled)
- {
- Isiah.CGC.Window_SkillList_makeItemList.call(this);
- return;
- }
- this._data = [];
- this._itemsBeforeCards = 0;
- var isBattle = SceneManager._scene instanceof Scene_Battle;
- var cards = isBattle ? this._cardSprites.getCards() : this._cardSprites;
- if (cards)
- {
- for (var i = 0; i < cards.length; i++)
- {
- this._data[i] = cards[i]._skill;
- if (this.isEnabled(this._data[i]))
- cards[i]._enabledSprite.show();
- else
- cards[i]._enabledSprite.hide();
- }
- if (isBattle)
- {
- if (Isiah.CGC.showItemButton)
- {
- this._data.unshift('itemMenu');
- this._itemsBeforeCards++;
- this._itemButton.setIndex(this.itemButtonIndex());
- }
- 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