undo/redo for edit personality

This commit is contained in:
2025-06-20 09:24:20 -05:00
parent a59dc176bf
commit 8f83427d3f
5 changed files with 83 additions and 8 deletions

View File

@@ -20,8 +20,19 @@ namespace legacy {
class cPersonality {
public:
// This is the character's name.
std::string title;
// name is how the character responds when asked about it
std::string look, name, job, dunno;
bool operator==(const cPersonality& other) const {
CHECK_EQ(other, title);
CHECK_EQ(other, look);
CHECK_EQ(other, name);
CHECK_EQ(other, job);
CHECK_EQ(other, dunno);
return true;
}
bool operator!=(const cPersonality& other) const { return !(*this == other); }
};
// This is used solely for porting old shops