From c3d88cdfbefa1b95bb0aef809b178271638786f9 Mon Sep 17 00:00:00 2001 From: tianyu <32282861@qq.com> Date: Tue, 30 Jul 2024 21:57:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/me/Demon/DemonLevels/listener/MobDeath.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/Demon/DemonLevels/listener/MobDeath.java b/src/main/java/me/Demon/DemonLevels/listener/MobDeath.java index 013795a..5430da6 100644 --- a/src/main/java/me/Demon/DemonLevels/listener/MobDeath.java +++ b/src/main/java/me/Demon/DemonLevels/listener/MobDeath.java @@ -94,7 +94,7 @@ public class MobDeath implements Listener { // 获取队伍成员列表 List memberList = teamData.getMemberList(); double teamExp = teamMap.get(teamData); // 获取队伍瓜分经验数量 - if(memberList.size() >= 3) { // 当成员满足3人后 开启队伍经验加成 + if(memberList.size() >= 2) { // 当成员满足2人后 开启队伍经验加成 double teamAddonExp = 1.0; if(Main.serverManage.isLinkDemonVipSystem()) { int vip_level = DvipAPI.getLevel(owner.getName()); @@ -124,9 +124,9 @@ public class MobDeath implements Listener { playerList.add(memberName); }else if(p.getWorld().equals(teamPlayer.getWorld())){ // 若玩家所处世界相同则开启共享 - // 但前提是他们两点距离不超过15格 + // 但前提是他们两点距离不超过50格 double distance = p.getLocation().distance(teamPlayer.getLocation()); - if(distance <= 30){ + if(distance <= 50){ playerList.add(memberName); } }