| 522 | } |
| 523 | |
| 524 | command_result revforget(color_ostream &out, vector<string> & params) { |
| 525 | for (auto & param : params) { |
| 526 | if (param == "help" || param == "?") |
| 527 | return CR_WRONG_USAGE; |
| 528 | } |
| 529 | |
| 530 | if (!revealed) { |
| 531 | out.printerr("There's nothing to forget!\n"); |
| 532 | return CR_FAILURE; |
| 533 | } |
| 534 | |
| 535 | reset_state(); |
| 536 | out.print("Reveal data forgotten!\n"); |
| 537 | return CR_OK; |
| 538 | } |
| 539 | |
| 540 | DFHACK_PLUGIN_LUA_FUNCTIONS { |
| 541 | DFHACK_LUA_FUNCTION(unhideFlood), |
nothing calls this directly
no test coverage detected