mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-03 23:56:43 +00:00 
			
		
		
		
	fixed some stats related script instructions
This commit is contained in:
		
							parent
							
								
									3f20206f8e
								
							
						
					
					
						commit
						8aa1fd921b
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -565,7 +565,7 @@ namespace MWScript
 | 
			
		|||
                    {
 | 
			
		||||
                        if(MWWorld::Class::get(ptr).getNpcStats(ptr).getFactionRanks().empty())
 | 
			
		||||
                        {
 | 
			
		||||
                            //throw exception?
 | 
			
		||||
                            factionID = -1;
 | 
			
		||||
                        }
 | 
			
		||||
                        else
 | 
			
		||||
                        {
 | 
			
		||||
| 
						 | 
				
			
			@ -601,10 +601,11 @@ namespace MWScript
 | 
			
		|||
                {
 | 
			
		||||
                    MWWorld::Ptr ptr = R()(runtime);
 | 
			
		||||
 | 
			
		||||
//                    Interpreter::Type_Integer value = runtime[0].mInteger;
 | 
			
		||||
                    Interpreter::Type_Integer value = runtime[0].mInteger;
 | 
			
		||||
                    runtime.pop();
 | 
			
		||||
 | 
			
		||||
                    /// \todo modify disposition towards the player
 | 
			
		||||
                    MWWorld::Class::get (ptr).getNpcStats (ptr).setBaseDisposition
 | 
			
		||||
                        (MWWorld::Class::get (ptr).getNpcStats (ptr).getBaseDisposition() + value);
 | 
			
		||||
                }
 | 
			
		||||
        };
 | 
			
		||||
        
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue