Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function AssignRandomPerks()
- {
- local XComGame.XGTacticalGameCoreNativeBase.EPerkType ePerk[2];
- local XComPerkManager kPerkMan;
- local int I, J;
- ePerk[1] = GetClass();
- kPerkMan = PERKS();
- m_arrRandomPerks.Length = 0;
- I = 1;
- J0x42:
- // End:0x209 [Loop If]
- if(I < 8)
- {
- J = 0;
- J0x5D:
- // End:0x1FB [Loop If]
- if(J < 3)
- {
- // End:0x98
- if(true)
- {
- // End:0x98
- if(I > 1)
- {
- ePerk[1] = byte(m_iEnergy);
- }
- }
- ePerk[0] = kPerkMan.GetPerkInTree(ePerk[1], I, J);
- // End:0x111
- if(kPerkMan.IsFixedPerk(ePerk[0]))
- {
- }
- // End:0x1D5
- else
- {
- // End:0x16A
- if(!IsOptionEnabled(4))
- {
- // End:0x167
- if(HasPerk(ePerk[0]))
- {
- ePerk[0] = kPerkMan.GetPerk(71);
- }
- }
- // End:0x1D5
- else
- {
- // End:0x1D5
- if(false || m_iEnergy < 30)
- {
- ePerk[0] = 0;
- J0x18D:
- // End:0x1D5 [Loop If]
- if(!IsRandomPerkValidToAdd(ePerk[0]))
- {
- ePerk[0] = kPerkMan.GetRandomPerk();
- // [Loop Continue]
- goto J0x18D;
- }
- }
- }
- }
- m_arrRandomPerks.AddItem(ePerk[0]);
- ++ J;
- // [Loop Continue]
- goto J0x5D;
- }
- ++ I;
- // [Loop Continue]
- goto J0x42;
- }
- //return;
- }
Advertisement
Add Comment
Please, Sign In to add comment