tf: Changed Halloween Spell attribute text to be blue during Full Moons.

Fixes: https://github.com/ValveSoftware/Source-1-Games/issues/7691
When a Full Moon is active, the Halloween Spell text remains grayed out even though spells activate during a Full Moon.
This commit is contained in:
FrozenDragon
2025-11-13 15:33:06 +08:00
committed by EricS-Valve
parent 4685a125d7
commit c623a7c30d
@@ -3697,7 +3697,8 @@ void CEconItemDescription::AddAttributeDescription( const CLocalizationProvider
}
// They can also be from Halloween spells. These are intended to expire after Halloween in any
// event, but for display purposes they'll appear in grey unless the holiday is active.
else if ( pAttribDef->GetUserGenerationType() == kUserGeneratedAttributeType_HalloweenSpell && !EconHolidays_IsHolidayActive( kHoliday_Halloween, CRTime::RTime32TimeCur() ) )
else if ( pAttribDef->GetUserGenerationType() == kUserGeneratedAttributeType_HalloweenSpell &&
!(EconHolidays_IsHolidayActive(kHoliday_Halloween, CRTime::RTime32TimeCur()) || EconHolidays_IsHolidayActive(kHoliday_FullMoon, CRTime::RTime32TimeCur())) )
{
eDefaultAttribColor = ATTRIB_COL_ITEMSET_MISSING;
}