mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
New feature: bloodcat/zombie/bandit raids on player-controlled sectors
For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=23711&goto=353154&#msg_353154 Requires GameDir >= r2420 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8554 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2347,3 +2347,18 @@ FLOAT GetIntel()
|
||||
{
|
||||
return LaptopSaveInfo.dIntelPool;
|
||||
}
|
||||
|
||||
// Flugente: raid 'personnel'
|
||||
void AddRaidPersonnel( INT32 aBloodcats, INT32 aZombie, INT32 aBandits )
|
||||
{
|
||||
LaptopSaveInfo.sRaidBloodcats = max( 0, LaptopSaveInfo.sRaidBloodcats + aBloodcats );
|
||||
LaptopSaveInfo.sRaidZombies = max( 0, LaptopSaveInfo.sRaidZombies + aZombie );
|
||||
LaptopSaveInfo.sRaidBandits = max( 0, LaptopSaveInfo.sRaidBandits + aBandits );
|
||||
}
|
||||
|
||||
void GetRaidPersonnel( INT32& arBloodcats, INT32& arZombie, INT32& arBandits )
|
||||
{
|
||||
arBloodcats = LaptopSaveInfo.sRaidBloodcats;
|
||||
arZombie = LaptopSaveInfo.sRaidZombies;
|
||||
arBandits = LaptopSaveInfo.sRaidBandits;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user