Some fixes

feature/prepare-cross-merge
Nuno 4 years ago committed by kaetemi
parent b76ac3d37f
commit 806cb449a1
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -412,7 +412,7 @@ void CFameManager::savePlayerFame(const NLMISC::CEntityId &playerId, EGSPD::CFam
if( entry == NULL ) if( entry == NULL )
entry = fameContainer.addToEntries( id ); entry = fameContainer.addToEntries( id );
EGS_PD_AST(entry); EGS_PD_AST(entry);
nlinfo("%d : %d", it->second->Fames[i]); nlinfo("%d : %i", MAX_FACTION, (sint32) it->second->Fames[i]);
entry->setFame( it->second->Fames[i] ); entry->setFame( it->second->Fames[i] );
entry->setLastFameChangeTrend( fow->LastFameChangeTrends[i] ); entry->setLastFameChangeTrend( fow->LastFameChangeTrends[i] );
} }
@ -1291,7 +1291,7 @@ sint32 CFameManager::getMaxFameByClan(std::pair<PVP_CLAN::TPVPClan, PVP_CLAN::TP
if (organization == 5) // marauder if (organization == 5) // marauder
{ {
return -30*kFameMultipler; return -40*kFameMultipler;
} }
// Local variables for the lookup values. // Local variables for the lookup values.

@ -3258,10 +3258,10 @@ void CCharacter::useItem(uint32 slot)
if (factionIndex != CStaticFames::INVALID_FACTION_INDEX) if (factionIndex != CStaticFames::INVALID_FACTION_INDEX)
{ {
const sint32 fame = CFameInterface::getInstance().getFameIndexed(getId(), factionIndex); const sint32 fame = CFameInterface::getInstance().getFameIndexed(getId(), factionIndex);
if (fame >= 33*6000) // 198000 if (fame >= 33*kFameMultipler) // 198000
{ {
destroy = false; destroy = false;
if (fame < 60*6000 && item->getStaticForm()->TpEcosystem == 7) // 360000 if (fame < 60*kFameMultipler && item->getStaticForm()->TpEcosystem == 7) // 360000
destroy = true; destroy = true;
if (!destroy) if (!destroy)
@ -3315,8 +3315,7 @@ void CCharacter::useItem(uint32 slot)
fx.unpack(visualFx.getValue()); fx.unpack(visualFx.getValue());
if (allegeance.first != PVP_CLAN::None && allegeance.first != PVP_CLAN::Neutral if (allegeance.first != PVP_CLAN::None && allegeance.first != PVP_CLAN::Neutral
&& CFameInterface::getInstance().getFameIndexed(_Id, PVP_CLAN::getFactionIndex(allegeance.first)) && CFameInterface::getInstance().getFameIndexed(_Id, PVP_CLAN::getFactionIndex(allegeance.first)) >= 100*kFameMultipler)
>= 600000)
{ {
if (allegeance.first == PVP_CLAN::Kami) if (allegeance.first == PVP_CLAN::Kami)
{ {
@ -3331,10 +3330,9 @@ void CCharacter::useItem(uint32 slot)
fx.Aura = MAGICFX::NoAura; fx.Aura = MAGICFX::NoAura;
} }
} }
else if (getOrganization() == 5 && CFameInterface::getInstance().getFameIndexed(_Id, PVP_CLAN::getFactionIndex(PVP_CLAN::Marauder))) else if (getOrganization() == 5 && CFameInterface::getInstance().getFameIndexed(_Id, PVP_CLAN::getFactionIndex(PVP_CLAN::Marauder))>= 100*kFameMultipler)
>= 600000)
{ {
fx.Aura = MAGICFX::MarauderKami; fx.Aura = MAGICFX::TeleportMarauder;
} }
else else
{ {

Loading…
Cancel
Save