back_recharge
parent
3c51f87439
commit
531285484a
|
@ -316,7 +316,7 @@ public class ItemUtil {
|
||||||
* @param temporaryItems
|
* @param temporaryItems
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public static void addTemporaryItemToBag(User user, TemporaryItems temporaryItems) throws Exception {
|
public static void addTemporaryItemToBag(User user, TemporaryItems temporaryItems, boolean isVictory) throws Exception {
|
||||||
Map<Integer, Item> items = temporaryItems.items;
|
Map<Integer, Item> items = temporaryItems.items;
|
||||||
Set<Equip> equips = temporaryItems.equips;
|
Set<Equip> equips = temporaryItems.equips;
|
||||||
if (items.isEmpty() && equips.isEmpty()) {
|
if (items.isEmpty() && equips.isEmpty()) {
|
||||||
|
@ -328,7 +328,7 @@ public class ItemUtil {
|
||||||
if (sItem == null){
|
if (sItem == null){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (sItem.getIsSave() != 1) {
|
if (!isVictory && sItem.getIsSave() != 1) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Item item = itemMap.get(entry.getKey());
|
Item item = itemMap.get(entry.getKey());
|
||||||
|
@ -346,7 +346,7 @@ public class ItemUtil {
|
||||||
if (sItem == null){
|
if (sItem == null){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (sItem.getIsSave() != 1) {
|
if (!isVictory && sItem.getIsSave() != 1) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
user.getEquipManager().addEquip(equip);
|
user.getEquipManager().addEquip(equip);
|
||||||
|
|
Loading…
Reference in New Issue