private boolean hasBoss(Collection<NpcInstance> npcList, String npcId) { if (Util.isEmpty(npcList)) { return false; } for (NpcInstance npc : npcList) { if (npc.getNpcid().equals(npcId)) { return true; } } return false; }
private boolean npcDieFallBox( RoleInstance role, List<GoodsOperateBean> itemList, NpcInstance dieNpc, OutputConsumeType ocType) { if (Util.isEmpty(itemList)) { return false; } boolean result = this.fallBox(role, itemList, ocType, dieNpc.getMapX(), dieNpc.getMapY(), true); // 广播 broadcast(role.getRoleName(), dieNpc.getNpcid(), itemList); if (dieNpc.getNpc().npcIsBoss()) { // 如果是boss,打印日志 GameContext.getStatLogApp().goodsFallLog(role, dieNpc.getNpc(), itemList); } return result; }