Deck delete create fix

This commit is contained in:
Michael Wain 2024-06-20 19:15:19 +03:00
parent f2485a5ac6
commit 324432fba4
3 changed files with 12 additions and 23 deletions
src/main/java/com/alterdekim/hearthhack/component/processor/client/request

@ -31,7 +31,7 @@ public class GetAchieves extends ClientRequestParser {
// 1..9 // 1..9
Protocol.Achieves.Builder achieves = Protocol.Achieves.newBuilder(); Protocol.Achieves.Builder achieves = Protocol.Achieves.newBuilder();
IntStream.range(1, 200).forEach(i -> achieves.addList(Protocol.Achieve.newBuilder() IntStream.range(1, 100).filter(i -> i != 79).forEach(i -> achieves.addList(Protocol.Achieve.newBuilder()
.setId(i) .setId(i)
.setProgress(1) .setProgress(1)
.setAckProgress(1) .setAckProgress(1)
@ -40,6 +40,17 @@ public class GetAchieves extends ClientRequestParser {
.setDateGiven(d) .setDateGiven(d)
.setDateCompleted(d))); .setDateCompleted(d)));
achieves.addList(Protocol.Achieve.newBuilder()
.setId(79)
.setProgress(10)
.setActive(false)
.setAckProgress(10)
.setDoNotAck(true)
.setCompletionCount(1)
.setStartedCount(1)
.setDateGiven(d)
.setDateCompleted(d));
Protocol.Achieves r = achieves.build(); Protocol.Achieves r = achieves.build();
Protocol.Notification n = generateNotification(252, r.toByteString(), r.getSerializedSize()); Protocol.Notification n = generateNotification(252, r.toByteString(), r.getSerializedSize());

@ -20,15 +20,6 @@ public class AvailableFeatures extends GenericParser {
private void executeFeatures(TcpConnection conn) throws Exception { private void executeFeatures(TcpConnection conn) throws Exception {
Protocol.GuardianVars guardianVars = Protocol.GuardianVars.newBuilder() Protocol.GuardianVars guardianVars = Protocol.GuardianVars.newBuilder()
.setShowUserUi(1) .setShowUserUi(1)
.setMage(true)
.setManager(true)
.setPriest(true)
.setWarlock(true)
.setWarrior(true)
.setRogue(true)
.setHunter(true)
.setPaladin(true)
.setShaman(true)
.setClientOptionsUpdateIntervalSeconds(300) .setClientOptionsUpdateIntervalSeconds(300)
.build(); .build();

@ -12,8 +12,6 @@ public class NotSoMassiveLoginReply extends GenericParser {
@Override @Override
public void parseGenericRequest(int token, TcpConnection conn) throws Exception { public void parseGenericRequest(int token, TcpConnection conn) throws Exception {
Protocol.NotSoMassiveLoginReply reply = Protocol.NotSoMassiveLoginReply.newBuilder() Protocol.NotSoMassiveLoginReply reply = Protocol.NotSoMassiveLoginReply.newBuilder()
.addSpecialEventTiming(Protocol.SpecialEventTiming.newBuilder()
.setEvent("launch"))
.addSpecialEventTiming(Protocol.SpecialEventTiming.newBuilder() .addSpecialEventTiming(Protocol.SpecialEventTiming.newBuilder()
.setEvent("naxx_1") .setEvent("naxx_1")
.setStart(0)) .setStart(0))
@ -85,9 +83,6 @@ public class NotSoMassiveLoginReply extends GenericParser {
.setEvent("feast_of_winter_veil") .setEvent("feast_of_winter_veil")
.setStart(1) .setStart(1)
.setEnd(0)) .setEnd(0))
.addSpecialEventTiming(Protocol.SpecialEventTiming.newBuilder()
.setEvent("set_rotation_2016")
.setStart(0))
.addSpecialEventTiming(Protocol.SpecialEventTiming.newBuilder() .addSpecialEventTiming(Protocol.SpecialEventTiming.newBuilder()
.setEvent("og_pre_purchase") .setEvent("og_pre_purchase")
.setStart(1) .setStart(1)
@ -103,14 +98,6 @@ public class NotSoMassiveLoginReply extends GenericParser {
.setEvent("naxx_gvg_real_money_sale") .setEvent("naxx_gvg_real_money_sale")
.setStart(1) .setStart(1)
.setEnd(0)) .setEnd(0))
.addSpecialEventTiming(Protocol.SpecialEventTiming.newBuilder()
.setEvent("set_rotation_2016_freepacks")
.setStart(0)
.setEnd(5059030))
.addSpecialEventTiming(Protocol.SpecialEventTiming.newBuilder()
.setEvent("set_rotation_2016_questline")
.setStart(0)
.setEnd(5059028))
.setTavernBrawls(Protocol.TavernBrawlInfo.newBuilder() .setTavernBrawls(Protocol.TavernBrawlInfo.newBuilder()
.setNextStartSecondsFromNow(124398L)) .setNextStartSecondsFromNow(124398L))
.build(); .build();