Created
December 21, 2015 00:04
-
-
Save hawksprite/57ac30f1c11f0d935ca0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float PI = m_oNext.m_oPersonalInfluence.GetCurrentValue(); | |
+ float opinionOfPlayer = GetOpinionOfCharacter(ECHAR_ID_COREY); | |
+ float formalAuthority = 0.0f; | |
- leadershipPotential /= 2.0f; | |
+ for (int k = 0; k < (int)m_pkoMeeting->GetCharacters().size(); k++) | |
+ { | |
+ CCharacter &roLookedCharacter = *m_pkoMeeting->GetCharacters()[k]; | |
+ if (ECHAR_ID_COREY == roLookedCharacter.GetId()) | |
+ { | |
+ formalAuthority = roLookedCharacter.GetCurrentFormalAuthority().GetCurrentValue(); | |
+ } | |
+ } | |
+ | |
+ float workTillProductive = 0.0f; | |
+ | |
+ float leadershipPotential = PI + opinionOfPlayer + formalAuthority + workTillProductive; | |
+ | |
+ // 304 seems to be the apparant max, so this converts the range from 0 to 100 | |
+ leadershipPotential = (leadershipPotential * 100) / 304; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment