… | |
… | |
256 | |
256 | |
257 | $ob->reply (undef, "In the future, you will wake up here when you die."); |
257 | $ob->reply (undef, "In the future, you will wake up here when you die."); |
258 | $ob->contr->save (1); |
258 | $ob->contr->save (1); |
259 | |
259 | |
260 | $ob->contr->ns->query (cf::CS_QUERY_SINGLECHAR, "Do you want to continue playing (y/n)?", sub { |
260 | $ob->contr->ns->query (cf::CS_QUERY_SINGLECHAR, "Do you want to continue playing (y/n)?", sub { |
261 | $ob->contr->enable_save (1); |
|
|
262 | if ($_[0] !~ /^[yY]/) { |
261 | if ($_[0] !~ /^[yY]/) { |
263 | $ob->contr->save (1); |
|
|
264 | $ob->contr->ns->destroy; |
262 | $ob->contr->ns->destroy; |
|
|
263 | } else { |
|
|
264 | $ob->contr->enable_save (1); |
265 | } |
265 | } |
266 | }); |
266 | }); |
267 | }, |
267 | }, |
268 | ); |
268 | ); |
269 | |
269 | |