御兽特权
parent
8ecab4414a
commit
3a32b7889d
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue