forked from mirror/openmw-tes3mp
		
	Removed 100 skill caps #1
					 3 changed files with 14 additions and 33 deletions
				
			
		|  | @ -133,9 +133,9 @@ namespace | |||
|                 } | ||||
|                 modifierSum += add; | ||||
|             } | ||||
|             creatureStats.setAttribute(attribute, std::min( | ||||
|                                            round_ieee_754(creatureStats.getAttribute(attribute).getBase() | ||||
|                 + (level-1) * modifierSum), 100) ); | ||||
| 
 | ||||
|             creatureStats.setAttribute(attribute, | ||||
|                round_ieee_754(creatureStats.getAttribute(attribute).getBase() + (level-1) * modifierSum) ); | ||||
|         } | ||||
| 
 | ||||
|         // initial health
 | ||||
|  | @ -230,13 +230,12 @@ namespace | |||
|             } | ||||
| 
 | ||||
|             npcStats.getSkill(skillIndex).setBase( | ||||
|                   std::min( | ||||
|                     round_ieee_754( | ||||
|                             npcStats.getSkill(skillIndex).getBase() | ||||
|                     + 5 | ||||
|                     + raceBonus | ||||
|                     + specBonus | ||||
|                     +(int(level)-1) * (majorMultiplier + specMultiplier)), 100)); // Must gracefully handle level 0
 | ||||
|                     +(int(level)-1) * (majorMultiplier + specMultiplier))); // Must gracefully handle level 0
 | ||||
|         } | ||||
| 
 | ||||
|         int skills[ESM::Skill::Length]; | ||||
|  |  | |||
|  | @ -244,8 +244,6 @@ namespace MWGui | |||
|                 nameWidget->setSize(nameWidget->getWidth() - (widthAfter-widthBefore), nameWidget->getHeight()); | ||||
|             } | ||||
| 
 | ||||
|             if (value.getBase() < 100) | ||||
|             { | ||||
|             nameWidget->setUserString("Visible_SkillMaxed", "false"); | ||||
|             nameWidget->setUserString("UserData^Hidden_SkillMaxed", "true"); | ||||
|             nameWidget->setUserString("Visible_SkillProgressVBox", "true"); | ||||
|  | @ -259,19 +257,6 @@ namespace MWGui | |||
|             setSkillProgress(nameWidget, value.getProgress(), parSkill); | ||||
|             setSkillProgress(valueWidget, value.getProgress(), parSkill); | ||||
|         } | ||||
|             else | ||||
|             { | ||||
|                 nameWidget->setUserString("Visible_SkillMaxed", "true"); | ||||
|                 nameWidget->setUserString("UserData^Hidden_SkillMaxed", "false"); | ||||
|                 nameWidget->setUserString("Visible_SkillProgressVBox", "false"); | ||||
|                 nameWidget->setUserString("UserData^Hidden_SkillProgressVBox", "true"); | ||||
| 
 | ||||
|                 valueWidget->setUserString("Visible_SkillMaxed", "true"); | ||||
|                 valueWidget->setUserString("UserData^Hidden_SkillMaxed", "false"); | ||||
|                 valueWidget->setUserString("Visible_SkillProgressVBox", "false"); | ||||
|                 valueWidget->setUserString("UserData^Hidden_SkillProgressVBox", "true"); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     void StatsWindow::configureSkills (const std::vector<int>& major, const std::vector<int>& minor) | ||||
|  |  | |||
|  | @ -218,9 +218,6 @@ void MWMechanics::NpcStats::increaseSkill(int skillIndex, const ESM::Class &clas | |||
| { | ||||
|     int base = getSkill (skillIndex).getBase(); | ||||
| 
 | ||||
|     if (base >= 100) | ||||
|         return; | ||||
| 
 | ||||
|     base += 1; | ||||
| 
 | ||||
|     const MWWorld::Store<ESM::GameSetting> &gmst = | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue