mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
- New Feature: Tactical recruitment allows recruiting civilians as volunteers.
See http://thepit.ja-galaxy-forum.com/index.php?t=msg&goto=341335&#msg_341335 This is fully savegame compatible. GameDir <= r2250 is recommended. - Fix: prisoners do not talk. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7886 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1137,7 +1137,22 @@ SOLDIERTYPE* TacticalCreateSoldier( SOLDIERCREATE_STRUCT *pCreateStruct, UINT8 *
|
||||
default:
|
||||
Soldier.aiData.bNormalSmell = NORMAL_HUMAN_SMELL_STRENGTH;
|
||||
break;
|
||||
}
|
||||
|
||||
// Flugente: under certain conditions, we can recruit civilians
|
||||
if ( Soldier.bTeam == CIV_TEAM && Soldier.ubProfile == NO_PROFILE && Soldier.ubCivilianGroup == NON_CIV_GROUP && Soldier.ubBodyType <= DRESSCIV )
|
||||
{
|
||||
// there has to officially be an outbreak in this sector - if we don't know of a disease, we cannot treat it!
|
||||
UINT8 sector = SECTOR( Soldier.sSectorX, Soldier.sSectorY );
|
||||
|
||||
SECTORINFO *pSectorInfo = &(SectorInfo[sector]);
|
||||
|
||||
// only allow us to be a volunteer if this isn't blocked
|
||||
if ( pSectorInfo && !(pSectorInfo->usSectorInfoFlag & SECTORINFO_VOLUNTEERS_RECENTLY_RECRUITED) )
|
||||
{
|
||||
if ( Chance(10) )
|
||||
Soldier.usSoldierFlagMask2 |= SOLDIER_POTENTIAL_VOLUNTEER;
|
||||
}
|
||||
}
|
||||
|
||||
if( guiCurrentScreen != AUTORESOLVE_SCREEN )
|
||||
|
||||
Reference in New Issue
Block a user