From 13c50a25fd370a70a3f0f4de4e5fae5d7cb32f2a Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Mon, 17 Mar 2025 12:38:59 -0500 Subject: [PATCH] Mindduel split and indent buffer lines --- src/game/boe.party.cpp | 8 ++++---- src/game/boe.text.hpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/game/boe.party.cpp b/src/game/boe.party.cpp index e33214ee..cf15061b 100644 --- a/src/game/boe.party.cpp +++ b/src/game/boe.party.cpp @@ -1466,18 +1466,18 @@ void do_mindduel(short pc_num,cCreature *monst) { r2 = get_ran(1,1,6); if(r1 < 30) { sout << " " << univ.party[pc_num].name << " is drained " << r2 << '.'; - add_string_to_buf(sout.str()); + add_string_to_buf(sout.str(), 4); monst->mp += r2; balance++; if(univ.party[pc_num].cur_sp == 0) { univ.party[pc_num].status[eStatus::DUMB] += 2; sout.str(""); sout << " " << univ.party[pc_num].name << " is dumbfounded."; - add_string_to_buf(sout.str()); + add_string_to_buf(sout.str(), 4); if(univ.party[pc_num].status[eStatus::DUMB] > 7) { sout.str(""); sout << " " << univ.party[pc_num].name << " is killed!"; - add_string_to_buf(sout.str()); + add_string_to_buf(sout.str(), 4); kill_pc(univ.party[pc_num],eMainStatus::DEAD); } @@ -1488,7 +1488,7 @@ void do_mindduel(short pc_num,cCreature *monst) { } if(r1 > 70) { sout << " " << univ.party[pc_num].name << " drains " << r2 << '.'; - add_string_to_buf(sout.str()); + add_string_to_buf(sout.str(), 4); univ.party[pc_num].cur_sp += r2; balance--; if(monst->mp == 0) { diff --git a/src/game/boe.text.hpp b/src/game/boe.text.hpp index 5619f199..19fbb373 100644 --- a/src/game/boe.text.hpp +++ b/src/game/boe.text.hpp @@ -29,7 +29,7 @@ void damaged_message(short damage,eMonstMelee type); std::string print_monster_going(mon_num_t m_num,short ap); void print_nums(short a,short b,short c); short print_terrain(location space); -void add_string_to_buf(std::string str, unsigned short indent); // Set second paramater to nonzero to auto-split the line if it's too long +void add_string_to_buf(std::string str, unsigned short indent); // Set second parameter to nonzero to auto-split the line if it's too long void add_string_to_buf(std::string str); void init_buf(); void print_buf () ;