mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Store area name for explore travel target
This commit is contained in:
@@ -1273,10 +1273,10 @@ bool ExploreTravelDestination::isActive(Player* bot)
|
|||||||
return !(currFields & val);
|
return !(currFields & val);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string const ExploreTravelDestination::getTitle()
|
//std::string const ExploreTravelDestination::getTitle()
|
||||||
{
|
//{
|
||||||
return points[0]->getAreaName();
|
// return points[0]->getAreaName();
|
||||||
};
|
//};
|
||||||
|
|
||||||
bool GrindTravelDestination::isActive(Player* bot)
|
bool GrindTravelDestination::isActive(Player* bot)
|
||||||
{
|
{
|
||||||
@@ -2268,6 +2268,7 @@ void TravelMgr::LoadQuestTravelTable()
|
|||||||
loc->setMaxVisitors(1000, 0);
|
loc->setMaxVisitors(1000, 0);
|
||||||
loc->setCooldownDelay(1000);
|
loc->setCooldownDelay(1000);
|
||||||
loc->setExpireDelay(1000);
|
loc->setExpireDelay(1000);
|
||||||
|
loc->setTitle(area->area_name[0]);
|
||||||
exploreLocs.insert_or_assign(area->ID, loc);
|
exploreLocs.insert_or_assign(area->ID, loc);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -709,11 +709,13 @@ class ExploreTravelDestination : public TravelDestination
|
|||||||
bool isActive(Player* bot) override;
|
bool isActive(Player* bot) override;
|
||||||
std::string const getName() override { return "ExploreTravelDestination"; }
|
std::string const getName() override { return "ExploreTravelDestination"; }
|
||||||
int32 getEntry() override { return 0; }
|
int32 getEntry() override { return 0; }
|
||||||
std::string const getTitle() override;
|
std::string const getTitle() override { return title; };
|
||||||
|
virtual void setTitle(std::string newTitle) { title = newTitle; }
|
||||||
virtual uint32 getAreaId() { return areaId; }
|
virtual uint32 getAreaId() { return areaId; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
uint32 areaId;
|
uint32 areaId;
|
||||||
|
std::string title = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
//A location with zone exploration target(s)
|
//A location with zone exploration target(s)
|
||||||
|
|||||||
Reference in New Issue
Block a user