Home » MODDING HQ 1.13 » v1.13 General Development Talk » Looking for equations - solved
Looking for equations - solved[message #343863] Tue, 26 January 2016 18:22 Go to next message
CVB

 
Messages:136
Registered:September 2014
Location: Berlin
I'm looking for the following equations for derived merc stats:

Repair Points
Doctoring Points
Militia Training Points
Lockpicking Points
Interrogation Points
Prison Guard Points (the last two are for Flugente's POW feature)

Can anyone tell me the formulae or point me to the right part of the code?

Thanks in advance!

[Updated on: Wed, 27 January 2016 13:44]




Peace is a purely theoretical state of affairs whose existence we deduce because there have been intervals between wars.
J. Pournelle
Re: Looking for equations[message #343865 is a reply to message #343863] Tue, 26 January 2016 20:23 Go to previous messageGo to next message
Flugente

 
Messages:3060
Registered:April 2009
Location: Germany
Assignments.h:
...
// get number of pts that are being used this strategic turn
INT16 GetTownTrainPtsForCharacter( SOLDIERTYPE *pTrainer, UINT16 *pusMaxPts );      <--- this one is for militia training


// find number of healing pts 
UINT16 CalculateHealingPointsForDoctor(SOLDIERTYPE *pSoldier, UINT16 *pusMaxPts, BOOLEAN fMakeSureKitIsInHand );

// find number of repair pts repairman has available
UINT8 CalculateRepairPointsForRepairman(SOLDIERTYPE *pSoldier, UINT16 *pusMaxPts, BOOLEAN fMakeSureKitIsInHand );

// Flugente: calculate interrogation and prison guard values
UINT32 CalculateInterrogationValue(SOLDIERTYPE *pSoldier, UINT16 *pusMaxPts );
UINT32 CalculatePrisonGuardValue(SOLDIERTYPE *pSoldier, UINT16 *pusMaxPts );
...

For lockpicking, look in INT32 SkillCheck( SOLDIERTYPE * pSoldier, INT8 bReason, INT8 bChanceMod ) in SkillCheck.cpp under LOCKPICKING_CHECK.



Saren threw his head back and screamed in impotent fury, before falling to his throne, head in his claws, trembling in horrified disbelief.

Then he heard a faint chime as Sovereign subscribed to her ECHO channel.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.


Re: Looking for equations[message #343866 is a reply to message #343865] Tue, 26 January 2016 21:41 Go to previous message
CVB

 
Messages:136
Registered:September 2014
Location: Berlin
Thanks a lot!



Peace is a purely theoretical state of affairs whose existence we deduce because there have been intervals between wars.
J. Pournelle
Previous Topic: Replacing Ira's portrait
Next Topic: JA2 V.1.13 under WINE for Linux
Goto Forum:
  


Current Time: Thu Jul 27 01:38:16 EEST 2017

Total time taken to generate the page: 0.01108 seconds