back_recharge
jiahuiwen 2019-03-27 19:59:55 +08:00
parent 3c51f87439
commit 531285484a
1 changed files with 3 additions and 3 deletions

View File

@ -316,7 +316,7 @@ public class ItemUtil {
* @param temporaryItems
* @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;
Set<Equip> equips = temporaryItems.equips;
if (items.isEmpty() && equips.isEmpty()) {
@ -328,7 +328,7 @@ public class ItemUtil {
if (sItem == null){
continue;
}
if (sItem.getIsSave() != 1) {
if (!isVictory && sItem.getIsSave() != 1) {
continue;
}
Item item = itemMap.get(entry.getKey());
@ -346,7 +346,7 @@ public class ItemUtil {
if (sItem == null){
continue;
}
if (sItem.getIsSave() != 1) {
if (!isVictory && sItem.getIsSave() != 1) {
continue;
}
user.getEquipManager().addEquip(equip);