mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-18 17:46:53 +01:00
- Rounds that end in invalid ways will now be logged, - Round results are logged - Rounds that don't end with a code-determined reboot will still not log at all (so rounds that end in a crash will not log at all - not even round start or mode.) git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2457 316c924e-a436-60f5-8080-3fe189b3f50e
50 lines
1.2 KiB
Plaintext
50 lines
1.2 KiB
Plaintext
/mob/living/carbon/monkey/death(gibbed)
|
|
if(src.stat == 2)
|
|
return
|
|
var/cancel
|
|
if (src.healths)
|
|
src.healths.icon_state = "health5"
|
|
if(!gibbed)
|
|
for(var/mob/O in viewers(src, null))
|
|
O.show_message("<b>The [src.name]</b> lets out a faint chimper as it collapses and stops moving...", 1) //ded -- Urist
|
|
|
|
src.stat = 2
|
|
src.canmove = 0
|
|
if (src.blind)
|
|
src.blind.layer = 0
|
|
src.lying = 1
|
|
|
|
var/h = src.hand
|
|
src.hand = 0
|
|
drop_item()
|
|
src.hand = 1
|
|
drop_item()
|
|
src.hand = h
|
|
|
|
//var/tod = time2text(world.realtime,"hh:mm:ss") //weasellos time of death patch
|
|
//mind.store_memory("Time of death: [tod]", 0)
|
|
|
|
ticker.mode.check_win()
|
|
//src.icon_state = "dead"
|
|
for(var/mob/M in world)
|
|
if ((M.client && !( M.stat )))
|
|
cancel = 1
|
|
break
|
|
if (!( cancel ))
|
|
world << "<B>Everyone is dead! Resetting in 30 seconds!</B>"
|
|
|
|
feedback_set_details("end_error","no live players")
|
|
feedback_set_details("round_end","[time2text(world.realtime)]")
|
|
if(blackbox)
|
|
blackbox.save_all_data_to_sql()
|
|
|
|
spawn( 300 )
|
|
log_game("Rebooting because of no live players")
|
|
world.Reboot()
|
|
return
|
|
if (src.key)
|
|
spawn(50)
|
|
if(src.key && src.stat == 2)
|
|
src.verbs += /mob/proc/ghost
|
|
|
|
return ..(gibbed) |