御兽特权

back_recharge
duhui 2022-09-15 18:10:39 +08:00
parent 8ecab4414a
commit 3a32b7889d
2 changed files with 7 additions and 7 deletions

View File

@ -315,12 +315,13 @@ public class HeroLogic {
if (sLotterySetting.getDiscountTimes() != 0) {
List<SPrivilegeTypeConfig> missingType = SPrivilegeTypeConfig.privilegeByType.get(sLotterySetting.getDiscountTimes());
Arrays.stream(costItems).forEach(n -> {
for (SPrivilegeTypeConfig config : missingType) {
if (user.getPlayerInfoManager().containPrivilageId(config.getId())) {
n[1] = (int) (n[1] / 10000d * (10000 + config.getCondition()[0][1]));
}
}
}
for (SPrivilegeTypeConfig config : missingType) {
if (user.getPlayerInfoManager().containPrivilageId(config.getId())) {
int privigeValue = PlayerLogic.getInstance().getMaxCountByPrivilegeType(user, config.getType());
n[1] = (int) (n[1] / 10000d * (10000 + privigeValue));
}
}
}
);
}
}

View File

@ -105,7 +105,6 @@ public class ProtocolsManager implements ProtocolsAbstract {
LOGGER.info("processMessage uid={} e={} unknow={}", session.getUid(), e, packetNetData.getMsgId());
}
LOGGER.info("request unknow commond : " + packetNetData.getMsgId());
return;
} else {
addEntry(packetNetData);
}