神将置换
parent
99779a39e1
commit
2cf97cce54
|
@ -55,6 +55,7 @@ public interface GlobalItemType {
|
||||||
int LARGE_AMOUNT_RECHARGE_CARD = 49;//大额直充卡
|
int LARGE_AMOUNT_RECHARGE_CARD = 49;//大额直充卡
|
||||||
int GENERAL_DEBRIS = 50;//通用碎片
|
int GENERAL_DEBRIS = 50;//通用碎片
|
||||||
int FAXIANG_EQUIP = 51;//法相装备
|
int FAXIANG_EQUIP = 51;//法相装备
|
||||||
|
int HERO_CHANGE_CARD = 52;//神将置换卡
|
||||||
|
|
||||||
//物品使用类型
|
//物品使用类型
|
||||||
int NO_USE = 0 ; //不使用
|
int NO_USE = 0 ; //不使用
|
||||||
|
|
|
@ -4,9 +4,9 @@ import com.ljsd.jieling.handler.BaseHandler;
|
||||||
import com.ljsd.jieling.logic.store.StoreLogic;
|
import com.ljsd.jieling.logic.store.StoreLogic;
|
||||||
import com.ljsd.jieling.netty.cocdex.PacketNetData;
|
import com.ljsd.jieling.netty.cocdex.PacketNetData;
|
||||||
import com.ljsd.jieling.network.session.ISession;
|
import com.ljsd.jieling.network.session.ISession;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
import rpc.protocols.MessageTypeProto;
|
import rpc.protocols.MessageTypeProto;
|
||||||
import rpc.protocols.PlayerInfoProto;
|
import rpc.protocols.PlayerInfoProto;
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
public class StoreRefreItemHandler extends BaseHandler {
|
public class StoreRefreItemHandler extends BaseHandler {
|
||||||
|
@ -24,7 +24,8 @@ public class StoreRefreItemHandler extends BaseHandler {
|
||||||
int storeId = buyStoreItemRequest.getStoreId();
|
int storeId = buyStoreItemRequest.getStoreId();
|
||||||
if (type ==0){
|
if (type ==0){
|
||||||
StoreLogic.handRefreStore(iSession,storeId);
|
StoreLogic.handRefreStore(iSession,storeId);
|
||||||
}else if (type ==1){
|
}
|
||||||
|
if (type ==1){
|
||||||
StoreLogic.automaticRefreStore(iSession,storeId);
|
StoreLogic.automaticRefreStore(iSession,storeId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -706,6 +706,7 @@ public class ItemUtil {
|
||||||
case GlobalItemType.DAY_XIAN_RECHARGE_CARD:
|
case GlobalItemType.DAY_XIAN_RECHARGE_CARD:
|
||||||
case GlobalItemType.LARGE_AMOUNT_RECHARGE_CARD:
|
case GlobalItemType.LARGE_AMOUNT_RECHARGE_CARD:
|
||||||
case GlobalItemType.GENERAL_DEBRIS:
|
case GlobalItemType.GENERAL_DEBRIS:
|
||||||
|
case GlobalItemType.HERO_CHANGE_CARD:
|
||||||
itemType = GlobalItemType.ITEM;
|
itemType = GlobalItemType.ITEM;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue