技能重置
parent
a871b0444a
commit
c7e7ef4f3d
|
@ -1225,13 +1225,16 @@ public class GuildLogic {
|
|||
}
|
||||
int percent = SSpecialConfig.getIntegerValue(SSpecialConfig.GUILD_TECHNOLOGY_RETURN_PERCENT);
|
||||
int[][] dropArray = consume.toArray(new int[consume.size()][]);
|
||||
int[][] dropArrayReally =new int[dropArray.length][];
|
||||
for(int i = 0;i<dropArray.length;i++){
|
||||
if(dropArray[i].length<2){
|
||||
continue;
|
||||
}
|
||||
dropArray[i][1] = (int) (dropArray[i][1]*(percent/10000f));
|
||||
dropArrayReally[i] = new int[2];
|
||||
dropArrayReally[i][0] = dropArray[i][0];
|
||||
dropArrayReally[i][1] = (int) (dropArray[i][1]*(percent/10000f));
|
||||
}
|
||||
CommonProto.Drop.Builder drop = ItemUtil.drop(user, dropArray, BIReason.RESET_GUILD_SKILL);
|
||||
CommonProto.Drop.Builder drop = ItemUtil.drop(user, dropArrayReally, BIReason.RESET_GUILD_SKILL);
|
||||
guildMyInfo.removeGuildSkillByType(type);
|
||||
Family.ResetGuildSkillResponse response = Family.ResetGuildSkillResponse.newBuilder().setDrop(drop).build();
|
||||
MessageUtil.sendMessage(session,1,messageType.getNumber(),response,true);
|
||||
|
|
Loading…
Reference in New Issue