move get_str and get_strs into universe (shared code)

This commit is contained in:
2025-04-30 11:47:09 -05:00
parent fe57c10173
commit bb4aae1285
6 changed files with 65 additions and 62 deletions

View File

@@ -1162,7 +1162,7 @@ void handle_talk_node(int which_talk_entry) {
save_talk_str1 = s1 >= 0 ? univ.town->spec_strs[s1] : "";
save_talk_str2 = s2 >= 0 ? univ.town->spec_strs[s2] : "";
}
get_strs(save_talk_str1, save_talk_str2, eSpecCtxType::TOWN, s1, s2);
univ.get_strs(save_talk_str1, save_talk_str2, eSpecCtxType::TOWN, s1, s2);
put_pc_screen();
put_item_screen(stat_window);
break;
@@ -1173,7 +1173,7 @@ void handle_talk_node(int which_talk_entry) {
save_talk_str1 = s1 >= 0 ? univ.scenario.spec_strs[s1] : "";
save_talk_str2 = s2 >= 0 ? univ.scenario.spec_strs[s2] : "";
}
get_strs(save_talk_str1, save_talk_str2, eSpecCtxType::SCEN, s1, s2);
univ.get_strs(save_talk_str1, save_talk_str2, eSpecCtxType::SCEN, s1, s2);
put_pc_screen();
put_item_screen(stat_window);
break;