御兽特权
parent
8ecab4414a
commit
3a32b7889d
|
@ -317,7 +317,8 @@ public class HeroLogic {
|
||||||
Arrays.stream(costItems).forEach(n -> {
|
Arrays.stream(costItems).forEach(n -> {
|
||||||
for (SPrivilegeTypeConfig config : missingType) {
|
for (SPrivilegeTypeConfig config : missingType) {
|
||||||
if (user.getPlayerInfoManager().containPrivilageId(config.getId())) {
|
if (user.getPlayerInfoManager().containPrivilageId(config.getId())) {
|
||||||
n[1] = (int) (n[1] / 10000d * (10000 + config.getCondition()[0][1]));
|
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("processMessage uid={} e={} unknow={}", session.getUid(), e, packetNetData.getMsgId());
|
||||||
}
|
}
|
||||||
LOGGER.info("request unknow commond : " + packetNetData.getMsgId());
|
LOGGER.info("request unknow commond : " + packetNetData.getMsgId());
|
||||||
return;
|
|
||||||
} else {
|
} else {
|
||||||
addEntry(packetNetData);
|
addEntry(packetNetData);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue