Changed variable names

Changed variable names to more accurately match what they are
This commit is contained in:
EmosewaMC 2021-12-21 23:32:39 -08:00
parent 23e269940b
commit c575294587
2 changed files with 4 additions and 4 deletions

View File

@ -567,7 +567,7 @@ const NiPoint3& Character::GetRespawnPoint(LWOMAPID map) const
return pair->second; return pair->second;
} }
void Character::SetCoins(int64_t newCoins, int lootType) { void Character::SetCoins(int64_t newCoins, int coinSource) {
if (newCoins < 0) if (newCoins < 0)
{ {
newCoins = 0; newCoins = 0;
@ -575,7 +575,7 @@ void Character::SetCoins(int64_t newCoins, int lootType) {
m_Coins = newCoins; m_Coins = newCoins;
GameMessages::SendSetCurrency(EntityManager::Instance()->GetEntity(m_ObjectID), m_Coins, 0, 0, 0, 0, true, lootType); GameMessages::SendSetCurrency(EntityManager::Instance()->GetEntity(m_ObjectID), m_Coins, 0, 0, 0, 0, true, coinSource);
} }
bool Character::HasBeenToWorld(LWOMAPID mapID) const bool Character::HasBeenToWorld(LWOMAPID mapID) const

View File

@ -312,9 +312,9 @@ public:
* Updates the current amount of coins of the character by a specified amount, for achievements this is not sent * Updates the current amount of coins of the character by a specified amount, for achievements this is not sent
* as it's tracked by the client * as it's tracked by the client
* @param newCoins the amount of coins to update by * @param newCoins the amount of coins to update by
* @param message whether to notify the client of the change * @param coinSource The source of the loot
*/ */
void SetCoins(int64_t newCoins, int lootType); void SetCoins(int64_t newCoins, int coinSource);
/** /**
* Get the entity this character belongs to * Get the entity this character belongs to