Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Calcstats()
- {
- defaultStats();
- statMax[0]=10+(abilities[ENDURANCE]*4);
- statMax[1]=10+(abilities[INTELLIGENCE]*4);
- statMax[2]=50+(abilities[ENDURANCE]*20);
- statMax[3]=30;
- float v=(abilities[ENDURANCE]-3)*playerLevel;
- statMax[0]+=v;
- v=(abilities[INTELLIGENCE]-3)*playerLevel;
- statMax[1]+=v;
- v=(abilities[ENDURANCE]-3)*playerLevel*2;
- statMax[2]+=v;
- v=playerLevel*2;
- statMax[3]+=v;
- PerkProcessor processor=new PerkProcessor(attributes,statMax,abilities,subAbilities);
- for (int i=0;i<playerPerks.size();i++)
- {
- processor.processPerkPhaseOne(playerPerks.get(i));
- }
- attributes[MELEE]=getAbilityMod(STRENGTH);
- attributes[RANGED]=getAbilityMod(DEXTERITY);
- attributes[SEDUCTION]=getAbilityMod(CHARM);
- attributes[DODGE]=getAbilityMod(AGILITY);
- attributes[PARRY]=getAbilityMod(AGILITY);
- attributes[STRUGGLE]=getAbilityMod(STRENGTH);
- attributes[PLEASURE]=getAbilityMod(DEXTERITY);
- attributes[PERSUADE]=getAbilityMod(INTELLIGENCE);
- attributes[WILLPOWER]=getAbilityMod(INTELLIGENCE);
- attributes[SCIENCE]=getAbilityMod(INTELLIGENCE);
- attributes[WILLPOWER]=getAbilityMod(INTELLIGENCE);
- attributes[TECH]=getAbilityMod(INTELLIGENCE);
- attributes[LEADERSHIP]=1;
- attributes[PERCEPTION]=getAbilityMod(INTELLIGENCE);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement