mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 21:56:41 +00:00 
			
		
		
		
	Issue #361: reset skill level in race selection stage
This commit is contained in:
		
							parent
							
								
									132da92391
								
							
						
					
					
						commit
						e97d23e626
					
				
					 1 changed files with 11 additions and 8 deletions
				
			
		|  | @ -66,15 +66,18 @@ namespace MWMechanics | |||
|                     static_cast<int> (male ? attribute->male : attribute->female)); | ||||
|             } | ||||
| 
 | ||||
|             for (int i=0; i<7; ++i) | ||||
|             for (int i=0; i<27; ++i) | ||||
|             { | ||||
|                 int index = race->data.bonus[i].skill; | ||||
| 
 | ||||
|                 if (index>=0 && index<27) | ||||
|                 { | ||||
|                     npcStats.getSkill (index).setBase ( | ||||
|                         npcStats.getSkill (index).getBase() + race->data.bonus[i].bonus); | ||||
|                 } | ||||
|                 int bonus = 0; | ||||
|                  | ||||
|                 for (int i2=0; i2<7; ++i2) | ||||
|                     if (race->data.bonus[i2].skill==i) | ||||
|                     { | ||||
|                         bonus = race->data.bonus[i2].bonus; | ||||
|                         break; | ||||
|                     } | ||||
|              | ||||
|                 npcStats.getSkill (i).setBase (5 + bonus); | ||||
|             } | ||||
| 
 | ||||
|             for (std::vector<std::string>::const_iterator iter (race->powers.list.begin()); | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue