… | |
… | |
103 | cf::NDI_RED |
103 | cf::NDI_RED |
104 | ); |
104 | ); |
105 | # kill them. |
105 | # kill them. |
106 | # reminds me of the famous badness 10000 syndrome... |
106 | # reminds me of the famous badness 10000 syndrome... |
107 | $ob->stats->hp (-10000); #] if they survive this they deserved to live |
107 | $ob->stats->hp (-10000); #] if they survive this they deserved to live |
108 | my $killer = cf::arch::get "killer_login"; |
108 | my $killer = cf::arch::get "killer_login"; $pl->killer ($killer); $killer->destroy; |
109 | $pl->killer ($killer); |
|
|
110 | $killer->destroy; |
|
|
111 | } else { |
109 | } else { |
112 | ($map, $x, $y) = $pl->savebed; |
110 | ($map, $x, $y) = $pl->savebed; |
113 | |
111 | |
114 | $ob->message ( |
112 | $ob->message ( |
115 | "You didn't use a bed to reality to leave this realm, leaving your body in great danger. " |
113 | "You didn't use a bed to reality to leave this realm, leaving your body in great danger. " |
… | |
… | |
379 | } |
377 | } |
380 | } else { |
378 | } else { |
381 | $ob->roll_stats; |
379 | $ob->roll_stats; |
382 | } |
380 | } |
383 | |
381 | |
384 | Coro::Timer::sleep 0.2; |
382 | Coro::Timer::sleep 0.05; |
385 | } |
383 | } |
386 | |
384 | |
387 | $ob->set_animation (2); |
385 | $ob->set_animation (2); |
388 | $ob->add_statbonus; |
386 | $ob->add_statbonus; |
389 | |
387 | |
… | |
… | |
470 | |
468 | |
471 | # update respawn position |
469 | # update respawn position |
472 | $pl->savebed ($bed->map->path, $bed->x, $bed->y); |
470 | $pl->savebed ($bed->map->path, $bed->x, $bed->y); |
473 | cf::async { $pl->save }; |
471 | cf::async { $pl->save }; |
474 | |
472 | |
475 | my $killer = cf::arch::get "killer_logout"; |
473 | my $killer = cf::arch::get "killer_logout"; $pl->killer ($killer); $killer->destroy; |
476 | $pl->killer ($killer); |
|
|
477 | $killer->destroy; |
|
|
478 | $ob->check_score; |
474 | $ob->check_score; |
479 | |
475 | |
480 | $ob->reply (undef, "In the future, you will wake up here when you die."); |
476 | $ob->reply (undef, "In the future, you will wake up here when you die."); |
481 | |
477 | |
482 | $pl->ns->query (cf::CS_QUERY_SINGLECHAR, "Do you want to continue playing (y/n)?", sub { |
478 | $pl->ns->query (cf::CS_QUERY_SINGLECHAR, "Do you want to continue playing (y/n)?", sub { |