From e152728ddcda3d8309fdb73b7d837deb9d0216cd Mon Sep 17 00:00:00 2001 From: logictc Date: Thu, 26 May 2022 14:29:30 -0400 Subject: [PATCH] fix no melee attach and adjust skill particle amount --- .../packet/send/PacketEntityAiSyncNotify.java | 2 +- .../data/SkillParticleGeneration.json | 36 ++++--------------- 2 files changed, 7 insertions(+), 31 deletions(-) diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketEntityAiSyncNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketEntityAiSyncNotify.java index a3e300c25..d78c4016b 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketEntityAiSyncNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketEntityAiSyncNotify.java @@ -13,7 +13,7 @@ public class PacketEntityAiSyncNotify extends BasePacket { EntityAiSyncNotify.Builder proto = EntityAiSyncNotify.newBuilder(); for (int monsterId : notify.getLocalAvatarAlertedMonsterListList()) { - proto.addInfoList(AiSyncInfo.newBuilder().setEntityId(monsterId)); + proto.addInfoList(AiSyncInfo.newBuilder().setEntityId(monsterId).setHasPathToTarget(true)); } this.setData(proto); diff --git a/src/main/resources/defaults/data/SkillParticleGeneration.json b/src/main/resources/defaults/data/SkillParticleGeneration.json index f0e67848b..dc7940c16 100644 --- a/src/main/resources/defaults/data/SkillParticleGeneration.json +++ b/src/main/resources/defaults/data/SkillParticleGeneration.json @@ -201,13 +201,9 @@ "avatarId": 10000030, "name": "Zhongli", "amountList": [ - { - "value": 0, - "chance": 50 - }, { "value": 1, - "chance": 50 + "chance": 100 } ] }, @@ -215,13 +211,9 @@ "avatarId": 10000031, "name": "Fischl", "amountList": [ - { - "value": 0, - "chance": 33 - }, { "value": 1, - "chance": 67 + "chance": 100 } ] }, @@ -293,13 +285,9 @@ "avatarId": 10000038, "name": "Albedo", "amountList": [ - { - "value": 0, - "chance": 33 - }, { "value": 1, - "chance": 67 + "chance": 100 } ] }, @@ -307,13 +295,9 @@ "avatarId": 10000039, "name": "Diona", "amountList": [ - { - "value": 0, - "chance": 20 - }, { "value": 1, - "chance": 80 + "chance": 100 } ] }, @@ -455,13 +439,9 @@ "avatarId": 10000052, "name": "Raiden Shogun", "amountList": [ - { - "value": 0, - "chance": 50 - }, { "value": 1, - "chance": 50 + "chance": 100 } ] }, @@ -479,13 +459,9 @@ "avatarId": 10000054, "name": "Sangonomiya Kokomi", "amountList": [ - { - "value": 0, - "chance": 33 - }, { "value": 1, - "chance": 67 + "chance": 100 } ] },