mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
Merge pull request #7099 from Amunak/endgame-info
Added round end summary (attempt 2)
This commit is contained in:
@@ -151,7 +151,11 @@
|
|||||||
|
|
||||||
var/list/area/escape_locations = list(/area/shuttle/escape/centcom, /area/shuttle/escape_pod1/centcom, /area/shuttle/escape_pod2/centcom, /area/shuttle/escape_pod3/centcom, /area/shuttle/escape_pod5/centcom)
|
var/list/area/escape_locations = list(/area/shuttle/escape/centcom, /area/shuttle/escape_pod1/centcom, /area/shuttle/escape_pod2/centcom, /area/shuttle/escape_pod3/centcom, /area/shuttle/escape_pod5/centcom)
|
||||||
|
|
||||||
|
var/pltext = "<font size=2><b>Player list:</b></font>"
|
||||||
|
|
||||||
for(var/mob/M in player_list)
|
for(var/mob/M in player_list)
|
||||||
|
if(M.mind)
|
||||||
|
pltext += printplayer(M.mind)
|
||||||
if(M.client)
|
if(M.client)
|
||||||
clients++
|
clients++
|
||||||
if(ishuman(M))
|
if(ishuman(M))
|
||||||
@@ -179,6 +183,15 @@
|
|||||||
if(isobserver(M))
|
if(isobserver(M))
|
||||||
ghosts++
|
ghosts++
|
||||||
|
|
||||||
|
var/text = "A round of <b>[src.name]</b> has ended."
|
||||||
|
if(surviving_total > 0)
|
||||||
|
text += "<br>There [surviving_total>1 ? "were <b>[surviving_total] survivors</b>" : "was <b>one survivor</b>"]</b>"
|
||||||
|
text += " (<b>[escaped_total>0 ? escaped_total : "none"] [emergency_shuttle.evac ? "escaped" : "transferred"]</b>) and <b>[ghosts] ghosts</b>.</b><br>"
|
||||||
|
else
|
||||||
|
text += "There were <b>no survivors</b> (<b>[ghosts] ghosts</b>).</b>"
|
||||||
|
text += "<br>" + pltext //print player list after the general info
|
||||||
|
world << text
|
||||||
|
|
||||||
if(clients > 0)
|
if(clients > 0)
|
||||||
feedback_set("round_end_clients",clients)
|
feedback_set("round_end_clients",clients)
|
||||||
if(ghosts > 0)
|
if(ghosts > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user