added get_emote_mod function
This commit is contained in:
		
							parent
							
								
									50f61bbd5c
								
							
						
					
					
						commit
						1bc1ec6d40
					
				@ -127,6 +127,7 @@ public:
 | 
				
			|||||||
  QString get_sfx_name(QString p_char, int p_emote);
 | 
					  QString get_sfx_name(QString p_char, int p_emote);
 | 
				
			||||||
  int get_sfx_delay(QString p_char, int p_emote);
 | 
					  int get_sfx_delay(QString p_char, int p_emote);
 | 
				
			||||||
  int get_emote_mod(QString p_char, int p_emote);
 | 
					  int get_emote_mod(QString p_char, int p_emote);
 | 
				
			||||||
 | 
					  int get_desk_mod(QString p_char, int p_emote);
 | 
				
			||||||
  QString get_gender(QString p_char);
 | 
					  QString get_gender(QString p_char);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
private:
 | 
					private:
 | 
				
			||||||
 | 
				
			|||||||
@ -452,6 +452,19 @@ int AOApplication::get_emote_mod(QString p_char, int p_emote)
 | 
				
			|||||||
  else return result_contents.at(3).toInt();
 | 
					  else return result_contents.at(3).toInt();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					int AOApplication::get_desk_mod(QString p_char, int p_emote)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  QString f_result = read_char_ini(p_char, QString::number(p_emote + 1), "[Emotions]", "[SoundN]");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  QStringList result_contents = f_result.split("#");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  if (result_contents.size() < 5)
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
 | 
					    return -1;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					  else return result_contents.at(4).toInt();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
QString AOApplication::get_sfx_name(QString p_char, int p_emote)
 | 
					QString AOApplication::get_sfx_name(QString p_char, int p_emote)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  QString f_result = read_char_ini(p_char, QString::number(p_emote + 1), "[SoundN]", "[SoundT]");
 | 
					  QString f_result = read_char_ini(p_char, QString::number(p_emote + 1), "[SoundN]", "[SoundT]");
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user