mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
Added new assignments for training existing militia and doctoring them.
For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=23044&goto=352617&#msg_352617 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8537 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -123,9 +123,7 @@ public:
|
||||
|
||||
// we don't store the experience level, we store the amount of points in regard to promotion.
|
||||
// While this is made up of kills and assists, we need this, as we have to account for militia initially starting at regular level
|
||||
UINT16 promotionpoints;
|
||||
|
||||
UINT16 filler1; // necessary for padding - fill up so that SIZEOF_MILITIA_POD is doubly even
|
||||
FLOAT promotionpoints;
|
||||
|
||||
char endOfPOD; // marker for end of POD (plain old data)
|
||||
|
||||
@@ -154,16 +152,24 @@ void UpdateMilitia( MILITIA aMilitia );
|
||||
|
||||
SOLDIERTYPE* GetUsedSoldierToIndividualMilitia( UINT32 aMilitiaId );
|
||||
|
||||
// update the health values of all militia in tactical
|
||||
void UpdateAllMilitiaHealthInTactical();
|
||||
// apply tactical life ratio to militia health ratio
|
||||
void ApplyTacticalLifeRatioToMilitia();
|
||||
|
||||
// apply health ratios to militia in tactical
|
||||
void ApplyMilitiaHealthRatioToTactical();
|
||||
|
||||
void HandleHourlyMilitiaHealing( );
|
||||
UINT32 MilitiaIndividual_Heal(UINT32 points, UINT8 aSector );
|
||||
|
||||
UINT32 CreateRandomIndividualMilitia( UINT8 aMilitiaRank, UINT8 aOrigin, UINT8 aSector );
|
||||
|
||||
UINT32 CreateNewIndividualMilitia( UINT8 aMilitiaRank, UINT8 aOrigin, UINT8 aSector );
|
||||
|
||||
UINT32 GetIdOfUnusedindividualMilitia( UINT8 aSoldierClass, UINT8 aSector );
|
||||
UINT32 GetIdOfUnusedIndividualMilitia( UINT8 aSoldierClass, UINT8 aSector );
|
||||
|
||||
BOOLEAN GetIdOfIndividualMilitiaWithClassSector( UINT8 aSoldierClass, UINT8 aSector, UINT32& arId );
|
||||
|
||||
FLOAT PromoteIndividualMilitiaInSector( UINT8 aSector, FLOAT aPointsToAdd );
|
||||
|
||||
// handle possible militia promotion and individual militia update
|
||||
void HandlePossibleMilitiaPromotion( SOLDIERTYPE* pSoldier, BOOLEAN aAutoResolve );
|
||||
@@ -175,6 +181,8 @@ void DisbandIndividualMilitia( UINT8 aSector, UINT8 usGreens, UINT8 usRegulars,
|
||||
|
||||
void PromoteIndividualMilitia( UINT8 aSector, UINT8 aSoldierClass );
|
||||
|
||||
void PossiblyPromoteIndividualMilitia( MILITIA& aMilitia );
|
||||
|
||||
// return the sum of daily wages, and the number of individual militia per class
|
||||
UINT32 GetDailyUpkeep_IndividualMilitia( UINT32& arNumGreen, UINT32& arNumRegular, UINT32& arNumElite );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user