Advertisement
Guest User

Untitled

a guest
Jul 15th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. void Calcstats()
  2. {
  3.  
  4. defaultStats();
  5. statMax[0]=10+(abilities[ENDURANCE]*4);
  6. statMax[1]=10+(abilities[INTELLIGENCE]*4);
  7. statMax[2]=50+(abilities[ENDURANCE]*20);
  8. statMax[3]=30;
  9.  
  10. float v=(abilities[ENDURANCE]-3)*playerLevel;
  11. statMax[0]+=v;
  12. v=(abilities[INTELLIGENCE]-3)*playerLevel;
  13. statMax[1]+=v;
  14. v=(abilities[ENDURANCE]-3)*playerLevel*2;
  15. statMax[2]+=v;
  16. v=playerLevel*2;
  17. statMax[3]+=v;
  18.  
  19. PerkProcessor processor=new PerkProcessor(attributes,statMax,abilities,subAbilities);
  20. for (int i=0;i<playerPerks.size();i++)
  21. {
  22. processor.processPerkPhaseOne(playerPerks.get(i));
  23. }
  24.  
  25. attributes[MELEE]=getAbilityMod(STRENGTH);
  26. attributes[RANGED]=getAbilityMod(DEXTERITY);
  27. attributes[SEDUCTION]=getAbilityMod(CHARM);
  28. attributes[DODGE]=getAbilityMod(AGILITY);
  29. attributes[PARRY]=getAbilityMod(AGILITY);
  30. attributes[STRUGGLE]=getAbilityMod(STRENGTH);
  31. attributes[PLEASURE]=getAbilityMod(DEXTERITY);
  32. attributes[PERSUADE]=getAbilityMod(INTELLIGENCE);
  33. attributes[WILLPOWER]=getAbilityMod(INTELLIGENCE);
  34. attributes[SCIENCE]=getAbilityMod(INTELLIGENCE);
  35. attributes[WILLPOWER]=getAbilityMod(INTELLIGENCE);
  36. attributes[TECH]=getAbilityMod(INTELLIGENCE);
  37. attributes[LEADERSHIP]=1;
  38. attributes[PERCEPTION]=getAbilityMod(INTELLIGENCE);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement