Merge pull request #177 from WiredSpast/master

Updated catalog parsers to include Silver
This commit is contained in:
sirjonasxx 2024-06-21 00:12:14 +02:00 committed by GitHub
commit ef18ff1fd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,6 +13,7 @@ public class HOffer {
private int priceInCredits; private int priceInCredits;
private int priceInActivityPoints; private int priceInActivityPoints;
private int activityPointType; private int activityPointType;
private int priceInSilver;
private boolean giftable; private boolean giftable;
private List<HProduct> products = new ArrayList<>(); private List<HProduct> products = new ArrayList<>();
private int clubLevel; private int clubLevel;
@ -28,6 +29,7 @@ public class HOffer {
this.priceInCredits = packet.readInteger(); this.priceInCredits = packet.readInteger();
this.priceInActivityPoints = packet.readInteger(); this.priceInActivityPoints = packet.readInteger();
this.activityPointType = packet.readInteger(); this.activityPointType = packet.readInteger();
this.priceInSilver = packet.readInteger();
this.giftable = packet.readBoolean(); this.giftable = packet.readBoolean();
int productCount = packet.readInteger(); int productCount = packet.readInteger();
@ -65,6 +67,10 @@ public class HOffer {
return activityPointType; return activityPointType;
} }
public int getPriceInSilver() {
return priceInSilver;
}
public boolean isGiftable() { public boolean isGiftable() {
return giftable; return giftable;
} }