mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-21 19:34:42 +01:00
implement shopMail giftPackage function
Co-authored-by: Kinesis <CCasusensa@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user