implement shopMail giftPackage function

Co-authored-by: Kinesis <CCasusensa@users.noreply.github.com>
This commit is contained in:
xtaodada
2022-05-02 15:30:19 +08:00
committed by Melledy
parent 73fc9fe4cc
commit 7b591a2da0
8 changed files with 112 additions and 3 deletions

View File

@@ -58,6 +58,9 @@ public class GameItem {
// Relic
private int mainPropId;
private List<Integer> appendPropIdList;
// shopMailBox
private int rewardBoxId;
private int equipCharacter;
@Transient private int weaponEntityId;
@@ -90,7 +93,7 @@ public class GameItem {
// Equip data
if (getItemType() == ItemType.ITEM_WEAPON) {
this.level = this.count > 1 ? this.count : 1;
this.level = Math.max(this.count, 1);
this.affixes = new ArrayList<>(2);
if (getItemData().getSkillAffix() != null) {
for (int skillAffix : getItemData().getSkillAffix()) {
@@ -248,6 +251,14 @@ public class GameItem {
this.mainPropId = mainPropId;
}
public int getRewardBoxId() {
return rewardBoxId;
}
public void setRewardBoxId(int rewardBoxId) {
this.rewardBoxId = rewardBoxId;
}
public List<Integer> getAppendPropIdList() {
return appendPropIdList;
}