mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-27 20:32:21 +01:00
Core/Players: implement Goblin's race entry discount bonus
This commit is contained in:
@@ -24216,6 +24216,10 @@ bool Player::GetBGAccessByLevel(BattlegroundTypeId bgTypeId) const
|
||||
|
||||
float Player::GetReputationPriceDiscount(Creature const* creature) const
|
||||
{
|
||||
ChrRacesEntry const* raceEntry = sChrRacesStore.LookupEntry(getRace());
|
||||
if (raceEntry->Flags & 0x100)
|
||||
return 0.8f;
|
||||
|
||||
FactionTemplateEntry const* vendor_faction = creature->GetFactionTemplateEntry();
|
||||
if (!vendor_faction || !vendor_faction->Faction)
|
||||
return 1.0f;
|
||||
|
||||
Reference in New Issue
Block a user