mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
New feature: mercs with a gun-related trait (New trait system only) can use the 'Focus' skill via the skill menu ([$] in tactical). This skill grants an interrupt modifier bonus in the targeted area, but also a penalty outside of it.
For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=20659&goto=350400&#msg_350400 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8432 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2321,6 +2321,7 @@ BOOLEAN SOLDIERTYPE::Load(HWFILE hFile)
|
||||
numBytesRead = ReadFieldByField( hFile, &this->sDiseasePoints, sizeof(sDiseasePoints), sizeof(INT32), numBytesRead );
|
||||
numBytesRead = ReadFieldByField( hFile, &this->sDiseaseFlag, sizeof(sDiseaseFlag), sizeof(UINT8), numBytesRead );
|
||||
numBytesRead = ReadFieldByField( hFile, &this->ubFiller, sizeof(ubFiller), sizeof(UINT8), numBytesRead );
|
||||
numBytesRead = ReadFieldByField( hFile, &this->sFocusGridNo, sizeof(sFocusGridNo), sizeof(INT32), numBytesRead );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2335,6 +2336,9 @@ BOOLEAN SOLDIERTYPE::Load(HWFILE hFile)
|
||||
this->sDiseaseFlag[i] = 0;
|
||||
}
|
||||
|
||||
buffer += sizeof(sFocusGridNo);
|
||||
while ( (buffer % 4) > 0 ) ++buffer;
|
||||
|
||||
numBytesRead = ReadFieldByField( hFile, &this->ubFiller, sizeof(ubFiller), sizeof(UINT8), numBytesRead );
|
||||
}
|
||||
}
|
||||
@@ -2376,6 +2380,11 @@ BOOLEAN SOLDIERTYPE::Load(HWFILE hFile)
|
||||
while((buffer%4) > 0)
|
||||
buffer++;
|
||||
|
||||
for ( int i = 0; i < sizeof(sFocusGridNo); ++i )
|
||||
buffer++;
|
||||
while ( (buffer % 4) > 0 )
|
||||
buffer++;
|
||||
|
||||
// we now have to substract the 7 bytes we read from the old ubFiller, but have to account for usAISkillUse
|
||||
buffer -= 6;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user