@@ -78,7 +78,6 @@ namespace ai
78
78
{" should ah sell" , false },
79
79
{" can ah sell" , false },
80
80
{" can get mail" , false },
81
- {" has strategy::free" , false },
82
81
{" has strategy::rpg quest" , false },
83
82
{" can fight equal" , false },
84
83
{" can fight elite" , false },
@@ -336,8 +335,8 @@ namespace ai
336
335
bool IsPreparing ();
337
336
338
337
uint32 GetRetryCount (bool isMove) const { return isMove ? moveRetryCount : extendRetryCount; }
339
- uint32 GetTimeLeft () const { return statusTime - GetExpiredTime (); }
340
- uint32 GetExpiredTime () const { return WorldTimer::getMSTime () - startTime; }
338
+ int32 GetTimeLeft () const { return statusTime - GetExpiredTime (); }
339
+ int32 GetExpiredTime () const { return WorldTimer::getMSTime () - startTime; }
341
340
342
341
void SetRetry (bool isMove, uint32 newCount = 0 ) { if (isMove) moveRetryCount = newCount; else extendRetryCount = newCount; }
343
342
bool IsMaxRetry (bool isMove) { return isMove ? (moveRetryCount > 10 ) : (extendRetryCount > 5 ); }
@@ -346,6 +345,7 @@ namespace ai
346
345
347
346
void AddCondition (std::string condition) { travelConditions.push_back (condition); }
348
347
void SetConditions (std::vector<std::string> conditions) { travelConditions = conditions; }
348
+ std::vector<std::string> GetConditions () { return travelConditions; }
349
349
350
350
void SetStatus (TravelStatus status);
351
351
void SetExpireIn (uint32 expireMs) { statusTime = GetExpiredTime () + expireMs; }
0 commit comments