mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
Changed variable names
Changed variable names to more accurately match what they are
This commit is contained in:
parent
23e269940b
commit
c575294587
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user