十绝阵奖励相关

lvxinran 2020-05-18 22:39:17 +08:00
parent 89c8a68f3a
commit 4408cd4a17
3 changed files with 50 additions and 18 deletions

View File

@ -114,20 +114,6 @@ public class DeathPathLogic {
if(guildWarTime==null){
guildWarTime = SGuildSetting.sGuildSetting.getGuildWarTime();
}
// boolean result = false;
// if(guildWarOpenTime[0]==2){
// for(int i = 1;i<guildWarOpenTime.length;i++){
// if(guildWarOpenTime[i]!=dayOfWeek){
// continue;
// }
// result = true;
// break;
// }
// }else if(guildWarOpenTime[0]==1){
// result = true;
// }else{
// return;
// }
isOpen();
}
@ -362,7 +348,7 @@ public class DeathPathLogic {
if(userReward!=null){
for(Map.Entry<Integer, DeathReward> entry:userReward.entrySet()){
DeathReward value = entry.getValue();
Family.RewardInfo info = Family.RewardInfo.newBuilder().setUid(entry.getKey()).setItemCount(value.getItemCount()).setItemId(value.getItemId()).setPosition(value.getPosition()).build();
Family.RewardInfo info = Family.RewardInfo.newBuilder().setUid(entry.getKey()).setItemCount(value.getItemCount()).setItemId(value.getItemId()).setPosition(value.getPosition()).setUsername(value.getUsername()).build();
response.addInfo(info);
}
}
@ -393,7 +379,7 @@ public class DeathPathLogic {
}
countInfo = new DeathChallengeCount();
countInfo.putUserReward(uid,new DeathReward(reward[0],reward[1],position));
countInfo.putUserReward(uid,new DeathReward(reward[0],reward[1],position,user.getPlayerInfoManager().getNickName()));
RedisUtil.getInstence().set(RedisKey.DEATH_PAHT_TOTAL_CHALLENGE_COUNT, String.valueOf(guildId),countInfo);
ItemUtil.drop(user,new int[][]{reward},BIReason.DEATH_PAHT_RANDOM_REWARD);
Family.RewardInfo info = Family.RewardInfo.newBuilder().setUid(uid).setItemCount(reward[1]).setItemId(reward[0]).setPosition(position).build();

View File

@ -6,7 +6,7 @@ package com.ljsd.jieling.logic.family;
* @discribe
*/
public class DeathReward {
private String username;
private int itemId;
private int itemCount ;
private int position;
@ -35,12 +35,21 @@ public class DeathReward {
this.position = position;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public DeathReward() {
}
public DeathReward(int itemId, int itemCount, int position) {
public DeathReward(int itemId, int itemCount, int position,String username) {
this.itemId = itemId;
this.itemCount = itemCount;
this.position = position;
this.username = username;
}
}

View File

@ -0,0 +1,37 @@
package config;
import manager.STableManager;
import manager.Table;
import java.util.Map;
@Table(name ="GuildWarRewardConfig")
public class SGuildWarRewardConfig implements BaseConfig {
private int id;
private int section;
private int[][] reward;
@Override
public void init() throws Exception {
}
public int getId() {
return id;
}
public int getSection() {
return section;
}
public int[][] getReward() {
return reward;
}
}