record 2-string dialogs in one element

This commit is contained in:
2025-08-06 14:14:39 -05:00
parent f5e0c1b006
commit e99ed91683

View File

@@ -708,12 +708,12 @@ void cStringRecorder::operator()(cDialog& me) {
play_sound(0);
std::string str1, str2;
univ.get_strs(str1, str2, spec_type, label1, label2);
if(univ.party.record(note_type, str1, location)){
std::string combined = str1;
if(!str2.empty())
combined += " ||" + str2;
if(univ.party.record(note_type, combined, location)){
give_help(58,0,me);
ASB("Added to encounter notes.");
}
if(!str2.empty())
univ.party.record(note_type, str2, location);
}