src/game/Strategic/Strategic_Town_Loyalty.cc
void HandleTownLoyaltyForNPCRecruitment( SOLDIERTYPE *pSoldier )
{
	UINT32 uiLoyaltyValue = 0;

	UINT8 const bTownId = GetTownIdForSector(SECTOR(pSoldier->sSectorX, pSoldier->sSectorY));

	// is the merc currently in their home town?
	if( bTownId == gMercProfiles[ pSoldier->ubProfile ].bTown )
	{
		// yep, value of loyalty bonus depends on his importance to this to town
		uiLoyaltyValue = MULTIPLIER_LOCAL_RPC_HIRED * gMercProfiles[ pSoldier->ubProfile ].bTownAttachment;

		// increment town loyalty gain
		IncrementTownLoyalty( bTownId, uiLoyaltyValue );

		// DESIGN QUESTION: How easy is it to abuse this bonus by repeatedly hiring the guy over & over
		// (at worst daily? even more often if terminated & rehired?)  (ARM)
	}
}
// check town and raise loyalty value for hiring a merc from a town...not a lot of a gain, but some
check town and raise loyalty value for hiring a merc from a town...not a lot of a gain, but some
check town and raise loyalty value for hiring a merc from a town ... not a lot of a gain but some
void HandleTownLoyaltyForNPCRecruitment( SOLDIERTYPE *pSoldier )
{
	UINT32 uiLoyaltyValue = 0;
	UINT8 const bTownId = GetTownIdForSector(SECTOR(pSoldier->sSectorX, pSoldier->sSectorY));
	if( bTownId == gMercProfiles[ pSoldier->ubProfile ].bTown )
	{
		uiLoyaltyValue = MULTIPLIER_LOCAL_RPC_HIRED * gMercProfiles[ pSoldier->ubProfile ].bTownAttachment;
		IncrementTownLoyalty( bTownId, uiLoyaltyValue );
	}
}
void HandleTownLoyaltyForNPCRecruitment ( SOLDIERTYPE * pSoldier ) { UINT32 uiLoyaltyValue = 0 ; UINT8 const bTownId = GetTownIdForSector ( SECTOR ( pSoldier -> sSectorX , pSoldier -> sSectorY ) ) ; if ( bTownId == gMercProfiles [ pSoldier -> ubProfile ] . bTown ) { uiLoyaltyValue = MULTIPLIER_LOCAL_RPC_HIRED * gMercProfiles [ pSoldier -> ubProfile ] . bTownAttachment ; IncrementTownLoyalty ( bTownId , uiLoyaltyValue ) ; } }
check town and raise loyalty value for hiring a merc from a town...not a lot of a gain, but some
check town and raise loyalty value for hiring a merc from a town ... not a lot of a gain but some
// is the merc currently in their home town? // yep, value of loyalty bonus depends on his importance to this to town // increment town loyalty gain // DESIGN QUESTION: How easy is it to abuse this bonus by repeatedly hiring the guy over & over // (at worst daily? even more often if terminated & rehired?)  (ARM)