mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-08 00:39:47 +02:00
Remove debug-outputs
Debug-outputs removed
This commit is contained in:
parent
33f5b473b3
commit
5ff834aac2
@ -382,7 +382,6 @@ std::vector<creInfo> ArmyManager::getArmyAvailableToBuy(
|
||||
if (shouldDisband)
|
||||
{
|
||||
disbandMalus = leastValuableStackValue / ci.creID.toCreature()->getFullRecruitCost();
|
||||
logAi->info("Should disband %d %s at %s worth: %d", hero->getStack(leastValuableSlot).count, hero->getStack(leastValuableSlot).getCreatureID().toCreature()->getNamePluralTranslated(), town->getNameTranslated(), leastValuableStackValue.marketValue());
|
||||
alreadyDisbanded.insert(leastValuableSlot);
|
||||
}
|
||||
|
||||
|
@ -70,14 +70,10 @@ void BuyArmy::accept(AIGateway * ai)
|
||||
slot.second->getCreatureID().toCreature()->getFullRecruitCost().marketValue() * slot.second->getCount();
|
||||
|
||||
if (slot.second->getCreatureID().toCreature()->getFactionID() == town->getFactionID())
|
||||
{
|
||||
logAi->info("Skipped Dismissing %s due to same faction", slot.second->getCreatureID().toCreature()->getNamePluralTranslated());
|
||||
continue;
|
||||
}
|
||||
|
||||
if (currentStackMarketValue < lowestValue)
|
||||
{
|
||||
logAi->info("Marked %s for dismissal.", slot.second->getCreatureID().toCreature()->getNamePluralTranslated());
|
||||
lowestValue = currentStackMarketValue;
|
||||
lowestValueSlot = slot.first;
|
||||
}
|
||||
@ -85,13 +81,11 @@ void BuyArmy::accept(AIGateway * ai)
|
||||
}
|
||||
if (lowestValueSlot.validSlot())
|
||||
{
|
||||
logAi->info("Dismiss %d %s at %s slot: %d", town->getUpperArmy()->getStackCount(lowestValueSlot), town->getUpperArmy()->getStack(lowestValueSlot).getCreatureID().toCreature()->getNamePluralTranslated(), town->getNameTranslated(), lowestValueSlot.getNum());
|
||||
cb->dismissCreature(town->getUpperArmy(), lowestValueSlot);
|
||||
}
|
||||
}
|
||||
if (town->getUpperArmy()->stacksCount() < GameConstants::ARMY_SIZE || town->getUpperArmy()->getSlotFor(ci.creID).validSlot()) //It is possible we don't scrap despite we wanted to due to not scrapping stacks that fit our faction
|
||||
{
|
||||
logAi->info("Buy %d %s at %s", ci.count, ci.creID.toCreature()->getNamePluralTranslated(), town->getNameTranslated());
|
||||
cb->recruitCreatures(town, town->getUpperArmy(), ci.creID, ci.count, ci.level);
|
||||
}
|
||||
valueBought += ci.count * ci.creID.toCreature()->getAIValue();
|
||||
|
Loading…
Reference in New Issue
Block a user