mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-21 21:17:49 +02:00
Restore LF, use JsonKeys for logging, fix BattleHex description
This commit is contained in:
parent
ecdd394bb1
commit
a1593948b7
@ -349,7 +349,7 @@ MoveTarget BattleExchangeEvaluator::findMoveTowardsUnreachable(
|
|||||||
logAi->trace(
|
logAi->trace(
|
||||||
"Checking movement towards %d of %s",
|
"Checking movement towards %d of %s",
|
||||||
enemy->getCount(),
|
enemy->getCount(),
|
||||||
enemy->creatureId().toCreature()->getNameSingularTranslated());
|
VLC->creatures()->getById(enemy->creatureId())->getJsonKey());
|
||||||
|
|
||||||
auto distance = dists.distToNearestNeighbour(activeStack, enemy);
|
auto distance = dists.distToNearestNeighbour(activeStack, enemy);
|
||||||
|
|
||||||
|
@ -167,7 +167,7 @@ std::string CStack::nodeName() const
|
|||||||
oss << owner.toString();
|
oss << owner.toString();
|
||||||
oss << " battle stack [" << ID << "]: " << getCount() << " of ";
|
oss << " battle stack [" << ID << "]: " << getCount() << " of ";
|
||||||
if(typeID.hasValue())
|
if(typeID.hasValue())
|
||||||
oss << typeID.toCreature()->getNamePluralTranslated();
|
oss << typeID.toEntity(VLC)->getJsonKey();
|
||||||
else
|
else
|
||||||
oss << "[UNDEFINED TYPE]";
|
oss << "[UNDEFINED TYPE]";
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ class BattleHexArray;
|
|||||||
* @brief Represents a battlefield hexagonal tile.
|
* @brief Represents a battlefield hexagonal tile.
|
||||||
*
|
*
|
||||||
* Valid hexes are within the range 0 to 186, excluding some invalid values, ex. castle towers (-2, -3, -4).
|
* Valid hexes are within the range 0 to 186, excluding some invalid values, ex. castle towers (-2, -3, -4).
|
||||||
* Available hexes are those in the first or last column.
|
* Available hexes are those valid ones but NOT in the first or last column.
|
||||||
*/
|
*/
|
||||||
class DLL_LINKAGE BattleHex
|
class DLL_LINKAGE BattleHex
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user