back_recharge
parent
3c51f87439
commit
531285484a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue