1760| 2
|
[有事请教] 某个物品只在队伍中有某个角色时才会掉落 |
1星屑
最佳答案Game_Enemy.prototype.makeDropItems = function() {
const rate = this.dropItemRate();
return this.enemy().dropItems.reduce((r, di) => {
if (di.kind > 0 && Math.random() * di.denominator < rate) {
let item = this.itemObject(di.kind, di.dataId);
if (item.name === '道具名' && !$gameParty._actors.includes(3))
item = []; // 某某名称的道具在队伍中没 ...
| ||
| ||
| ||
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-11-17 23:30
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.