yx积分重置 exp显示
parent
fb75fd38c6
commit
b99f3dffce
|
@ -126,8 +126,14 @@ public class CrossYuxulundaoGetInfoHandler extends BaseHandler<ArenaInfoProto.Cr
|
||||||
CommonProto.Drop.Builder drop = ItemUtil.dropPer(user, serverRankConfig.getFirstReward(), BIReason.CROSS_YUXULUNDAO_DAILYREWARD);
|
CommonProto.Drop.Builder drop = ItemUtil.dropPer(user, serverRankConfig.getFirstReward(), BIReason.CROSS_YUXULUNDAO_DAILYREWARD);
|
||||||
builder.addDrop(drop);
|
builder.addDrop(drop);
|
||||||
}
|
}
|
||||||
csPlayer.setCrossYuxulundaoNewScore(SMServerRankConfig.serverRankConfig.get(resetId).getScoreLow() == 0? 1000:SMServerRankConfig.serverRankConfig.get(resetId).getScoreLow());
|
if( SMServerRankConfig.serverRankConfig.get(resetId).getScoreLow() == 0){
|
||||||
csPlayer.setCrossYuxulundaoOldScore(SMServerRankConfig.serverRankConfig.get(resetId).getScoreLow()== 0? 1000:SMServerRankConfig.serverRankConfig.get(resetId).getScoreLow());
|
newSeasonBefore = csPlayer.getCrossYuxulundaoNewScore();
|
||||||
|
csPlayer.setCrossYuxulundaoNewScore(1000);
|
||||||
|
csPlayer.setCrossYuxulundaoOldScore(1000);
|
||||||
|
}else{
|
||||||
|
csPlayer.setCrossYuxulundaoNewScore(SMServerRankConfig.serverRankConfig.get(resetId).getScoreLow());
|
||||||
|
csPlayer.setCrossYuxulundaoOldScore(SMServerRankConfig.serverRankConfig.get(resetId).getScoreLow());
|
||||||
|
}
|
||||||
isNeedUpdate = true;
|
isNeedUpdate = true;
|
||||||
}
|
}
|
||||||
arenaManager.setCrossMatchTimes(0);
|
arenaManager.setCrossMatchTimes(0);
|
||||||
|
|
|
@ -102,7 +102,7 @@ public class PlayerLogic {
|
||||||
|
|
||||||
|
|
||||||
static class InnerClass{
|
static class InnerClass{
|
||||||
public final static PlayerLogic instance = new PlayerLogic();
|
public final static PlayerLogic instance = new PlayerLogic();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void saveNewPlayerPoint(ISession session,int type,int id) throws Exception {
|
public void saveNewPlayerPoint(ISession session,int type,int id) throws Exception {
|
||||||
|
@ -862,7 +862,7 @@ public class PlayerLogic {
|
||||||
PlayerInfoProto.GetPlayerOneTeamInfoResponse.Builder playerTeamInfo = PlayerInfoProto.GetPlayerOneTeamInfoResponse.newBuilder().setTeamInfo(builder.build());
|
PlayerInfoProto.GetPlayerOneTeamInfoResponse.Builder playerTeamInfo = PlayerInfoProto.GetPlayerOneTeamInfoResponse.newBuilder().setTeamInfo(builder.build());
|
||||||
return playerTeamInfo.build();
|
return playerTeamInfo.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取跨服玩家信息
|
//获取跨服玩家信息
|
||||||
public CommonProto.TeamOneInfo getCrossYxldMyTeamInfo(User user,List<Integer> team) throws Exception{
|
public CommonProto.TeamOneInfo getCrossYxldMyTeamInfo(User user,List<Integer> team) throws Exception{
|
||||||
CSPlayer csPlayer = CrossServiceLogic.getPlayerByRedis(user.getId());
|
CSPlayer csPlayer = CrossServiceLogic.getPlayerByRedis(user.getId());
|
||||||
|
@ -1177,10 +1177,6 @@ public class PlayerLogic {
|
||||||
for(Map.Entry<Integer,Long> item : heroNotBufferAttribute.entrySet()){
|
for(Map.Entry<Integer,Long> item : heroNotBufferAttribute.entrySet()){
|
||||||
int id = item.getKey();
|
int id = item.getKey();
|
||||||
int values = item.getValue().intValue();
|
int values = item.getValue().intValue();
|
||||||
if (id == 53 || id == 57 || id == 58){
|
|
||||||
//命中几率 治疗加成 受疗加成
|
|
||||||
values = item.getValue().intValue()-10000;
|
|
||||||
}
|
|
||||||
builder.addSpecialEffects(CommonProto.SpecialEffects.newBuilder().setPropertyId(id).setPropertyValue(values).build());
|
builder.addSpecialEffects(CommonProto.SpecialEffects.newBuilder().setPropertyId(id).setPropertyValue(values).build());
|
||||||
}
|
}
|
||||||
Map<String, com.ljsd.jieling.thrift.idl.PropertyItem> jewels = crossArenaManager.getJewels();
|
Map<String, com.ljsd.jieling.thrift.idl.PropertyItem> jewels = crossArenaManager.getJewels();
|
||||||
|
@ -1225,9 +1221,9 @@ public class PlayerLogic {
|
||||||
for(Map.Entry<Integer,Long> item : heroNotBufferAttribute.entrySet()){
|
for(Map.Entry<Integer,Long> item : heroNotBufferAttribute.entrySet()){
|
||||||
int id = item.getKey();
|
int id = item.getKey();
|
||||||
int values = item.getValue().intValue();
|
int values = item.getValue().intValue();
|
||||||
if (id == 53 || id == 57 || id == 58){
|
/* if (id == 53 || id == 57 || id == 58){
|
||||||
values = item.getValue().intValue()-10000;
|
values = item.getValue().intValue()-10000;
|
||||||
}
|
}*/
|
||||||
builder.addSpecialEffects(CommonProto.SpecialEffects.newBuilder().setPropertyId(id).setPropertyValue(values).build());
|
builder.addSpecialEffects(CommonProto.SpecialEffects.newBuilder().setPropertyId(id).setPropertyValue(values).build());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1553,7 +1549,7 @@ public class PlayerLogic {
|
||||||
}
|
}
|
||||||
return levelUpdateCount;
|
return levelUpdateCount;
|
||||||
}
|
}
|
||||||
// private boolean priviliageCheck(User user, int privilageTypeId, int checkNum,boolean isUpdate){
|
// private boolean priviliageCheck(User user, int privilageTypeId, int checkNum,boolean isUpdate){
|
||||||
// Map<Integer, VipInfo> vipInfo = user.getPlayerInfoManager().getVipInfo();
|
// Map<Integer, VipInfo> vipInfo = user.getPlayerInfoManager().getVipInfo();
|
||||||
// if(privilageTypeId == 0){
|
// if(privilageTypeId == 0){
|
||||||
// return true;
|
// return true;
|
||||||
|
|
Loading…
Reference in New Issue