mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
- mercs are now used as prison guards regardless of sleep state
- volunteers are now gained with a logarithmic rate, as otherwise the volunteer feature becomes pointless lategame For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=22559&goto=350394&#msg_350394 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8431 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2598,14 +2598,14 @@ FLOAT CalcHourlyVolunteerGain()
|
||||
UINT8 ubTownID = StrategicMap[CALCULATE_STRATEGIC_INDEX( sX, sY )].bNameId;
|
||||
if ( ubTownID != BLANK_SECTOR )
|
||||
{
|
||||
UINT16 population = GetSectorPopulation( sX, sY );
|
||||
UINT16 population = GetSectorPopulation( sX, sY, FALSE );
|
||||
|
||||
loyalpopulation += gTownLoyalty[ubTownID].ubRating * population / 100;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
FLOAT hourlygain = loyalpopulation * populationmodifier * gGameExternalOptions.dMilitiaVolunteerGainFactorHourly;
|
||||
FLOAT hourlygain = log( 1.0 + loyalpopulation * populationmodifier * gGameExternalOptions.dMilitiaVolunteerGainFactorHourly);
|
||||
|
||||
return hourlygain;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user