diff options
Diffstat (limited to 'text_file_functions.cpp')
| -rw-r--r-- | text_file_functions.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/text_file_functions.cpp b/text_file_functions.cpp index 82e76a8f..5d809c30 100644 --- a/text_file_functions.cpp +++ b/text_file_functions.cpp @@ -452,6 +452,19 @@ int AOApplication::get_emote_mod(QString p_char, int p_emote) 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 f_result = read_char_ini(p_char, QString::number(p_emote + 1), "[SoundN]", "[SoundT]"); |
