mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2026-08-03 20:24:36 +02:00
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:
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user