Skip to content

Instantly share code, notes, and snippets.

@hawksprite
Created December 21, 2015 00:04
Show Gist options
  • Save hawksprite/57ac30f1c11f0d935ca0 to your computer and use it in GitHub Desktop.
Save hawksprite/57ac30f1c11f0d935ca0 to your computer and use it in GitHub Desktop.
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