Core/Reputation: Implemented renown reputation (Dragonflight)
Port From (https://github.com/TrinityCore/TrinityCore/commit/d64d84dfa68da4ff83f0b88ad4e88dccc5ace623)
This commit is contained in:
@@ -369,7 +369,7 @@ namespace Game.Garrisons
|
||||
map.AddToMap(go);
|
||||
}
|
||||
|
||||
_owner.ModifyCurrency((CurrencyTypes)building.CurrencyTypeID, -building.CurrencyQty, false, true);
|
||||
_owner.ModifyCurrency(building.CurrencyTypeID, -building.CurrencyQty, false, true);
|
||||
_owner.ModifyMoney(-building.GoldCost * MoneyConstants.Gold, false);
|
||||
|
||||
if (oldBuildingId != 0)
|
||||
@@ -409,7 +409,7 @@ namespace Game.Garrisons
|
||||
|
||||
GarrBuildingRecord constructing = CliDB.GarrBuildingStorage.LookupByKey(buildingRemoved.GarrBuildingID);
|
||||
// Refund construction/upgrade cost
|
||||
_owner.ModifyCurrency((CurrencyTypes)constructing.CurrencyTypeID, constructing.CurrencyQty, false, true);
|
||||
_owner.ModifyCurrency(constructing.CurrencyTypeID, constructing.CurrencyQty, false, true);
|
||||
_owner.ModifyMoney(constructing.GoldCost * MoneyConstants.Gold, false);
|
||||
|
||||
if (constructing.UpgradeLevel > 1)
|
||||
|
||||
Reference in New Issue
Block a user