赞 | 35 |
VIP | 0 |
好人卡 | 0 |
积分 | 72 |
经验 | 0 |
最后登录 | 2024-11-13 |
在线时间 | 473 小时 |
Lv4.逐梦者
- 梦石
- 0
- 星屑
- 7228
- 在线时间
- 473 小时
- 注册时间
- 2021-12-4
- 帖子
- 511
|
Game_Party.prototype.partyAbility = function(abilityId) {
return this.battleMembers().some(function(actor) {
return actor.partyAbility(abilityId);
});
};
Game_Party.prototype.hasEncounterHalf = function() {
return this.partyAbility(Game_Party.ABILITY_ENCOUNTER_HALF);
};
Game_Party.prototype.hasEncounterNone = function() {
return this.partyAbility(Game_Party.ABILITY_ENCOUNTER_NONE);
};
Game_Party.prototype.hasCancelSurprise = function() {
return this.partyAbility(Game_Party.ABILITY_CANCEL_SURPRISE);
};
Game_Party.prototype.hasRaisePreemptive = function() {
return this.partyAbility(Game_Party.ABILITY_RAISE_PREEMPTIVE);
};
Game_Party.prototype.hasGoldDouble = function() {
return this.partyAbility(Game_Party.ABILITY_GOLD_DOUBLE);
};
Game_Party.prototype.hasDropItemDouble = function() {
return this.partyAbility(Game_Party.ABILITY_DROP_ITEM_DOUBLE);
};
Game_Troop.prototype.expTotal = function() {
return this.deadMembers().reduce(function(r, enemy) {
return r + enemy.exp();
}, 0);
};
Game_Troop.prototype.goldTotal = function() {
return this.deadMembers().reduce(function(r, enemy) {
return r + enemy.gold();
}, 0) * this.goldRate();
};
Game_Troop.prototype.goldRate = function() {
return $gameParty.hasGoldDouble() ? 2 : 1; // 我建议改这个函数,返回某个变量的值即可,本函数位于 rpg_objects.js 第 5388 行。
};
Game_Troop.prototype.makeDropItems = function() {
return this.deadMembers().reduce(function(r, enemy) {
return r.concat(enemy.makeDropItems());
}, []);
}; |
|