* Check whether the object is available at this time. * @return true if it is available. */
| 95 | * @return true if it is available. |
| 96 | */ |
| 97 | bool ObjectSpec::IsAvailable() const |
| 98 | { |
| 99 | return this->WasEverAvailable() && |
| 100 | (TimerGameCalendar::date < this->end_of_life_date || this->end_of_life_date < this->introduction_date + 365); |
| 101 | } |
| 102 | |
| 103 | /** |
| 104 | * Gets the index of this spec. |
no test coverage detected