mirror of
https://github.com/glest/glest-source.git
synced 2025-08-31 03:39:54 +02:00
Fixed multiplier bugs
This commit is contained in:
@@ -7569,6 +7569,18 @@ namespace Game {
|
||||
case ctCpuZeta:
|
||||
factionInfo += " CPU Zeta" + multiplier;
|
||||
break;
|
||||
case ctNetworkCpuEasy:
|
||||
factionInfo += " Network CPU Easy" + multiplier;
|
||||
break;
|
||||
case ctNetworkCpu:
|
||||
factionInfo += " Network CPU Normal" + multiplier;
|
||||
break;
|
||||
case ctNetworkCpuUltra:
|
||||
factionInfo += " Network CPU Ultra" + multiplier;
|
||||
break;
|
||||
case ctNetworkCpuZeta:
|
||||
factionInfo += " Network CPU Zeta" + multiplier;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@@ -713,7 +713,7 @@ namespace Game {
|
||||
"\nx " + floatToStr(stats.getResourceMultiplier(i), 1);
|
||||
} else if (stats.getPlayerLeftBeforeEnd(i) == true) {
|
||||
controlString +=
|
||||
"\n" + lang.getString("CpuUltra") + "\nx " +
|
||||
"\n" + lang.getString("CpuZeta") + "\nx " +
|
||||
floatToStr(stats.getResourceMultiplier(i), 1);
|
||||
}
|
||||
|
||||
|
@@ -1723,7 +1723,7 @@ namespace Game {
|
||||
int resourceAmount = unit->getLoadCount();
|
||||
if (unit->getFaction()->getCpuControl()) {
|
||||
int resourceMultiplierIndex = game->getGameSettings()->getResourceMultiplierIndex(unit->getFaction()->getIndex());
|
||||
resourceAmount = (resourceAmount* (resourceMultiplierIndex + 5)) / 10;
|
||||
resourceAmount = resourceAmount * (resourceMultiplierIndex + 1) * 0.5;
|
||||
}
|
||||
unit->getFaction()->incResourceAmount(unit->getLoadType(), resourceAmount);
|
||||
world->getStats()->harvest(unit->getFactionIndex(), resourceAmount);
|
||||
|
@@ -2076,7 +2076,7 @@ namespace Game {
|
||||
stats.setFactionTypeName(i, formatString(gs->getFactionTypeName(i)));
|
||||
stats.setPersonalityType(i, getFaction(i)->getType()->getPersonalityType());
|
||||
stats.setControl(i, gs->getFactionControl(i));
|
||||
stats.setResourceMultiplier(i, (gs->getResourceMultiplierIndex(i) + 5)*0.1f);
|
||||
stats.setResourceMultiplier(i, (gs->getResourceMultiplierIndex(i) + 1) * 0.5f);
|
||||
stats.setPlayerName(i, gs->getNetworkPlayerName(i));
|
||||
if (getFaction(i)->getTexture()) {
|
||||
stats.setPlayerColor(i, getFaction(i)->getTexture()->getPixmapConst()->getPixel4f(0, 0));
|
||||
|
Reference in New Issue
Block a user