reverts are now string-based

This commit is contained in:
Zeno Rogue
2025-12-05 22:03:44 +01:00
parent c09c87b851
commit 7a57ea0a1d
7 changed files with 81 additions and 17 deletions
+2 -2
View File
@@ -116,12 +116,12 @@ void man::on_kill() {
addMessage("You die... permanently. You will have to create a new character. Or just press [key:Extra Life] for a narrative cheat.");
}
void add_revert(revert_stack& s, const reaction_t& what) {
void add_revert(revert_stack& s, const revert_type& what) {
s.push_back(what);
}
void revert_all(revert_stack& s) {
while(!s.empty()) { s.back()(); s.pop_back(); }
while(!s.empty()) { revert(s.back()); s.pop_back(); }
}
void man::launch_attack(power *p, int fac, boxfun f) {