record and replay display_spells

This commit is contained in:
2024-08-24 14:48:20 -05:00
committed by Celtic Minstrel
parent da99b6169e
commit bd53a3bb31
2 changed files with 26 additions and 2 deletions

View File

@@ -113,6 +113,19 @@ static bool display_spells_event_filter(cDialog& me, std::string item_hit, eSkil
}
//short force_spell; // if 100, ignore
void display_spells(eSkill mode,short force_spell,cDialog* parent) {
if(recording){
std::map<std::string,std::string> info;
std::ostringstream sstr;
sstr << mode;
info["mode"] = sstr.str();
sstr.str("");
sstr << force_spell;
info["force_spell"] = sstr.str();
record_action("display_spells", info);
}
using namespace std::placeholders;
if(force_spell < 100) {
if(mode == eSkill::MAGE_SPELLS)