Skip to content

Commit

Permalink
Fixes round-end report bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikarrus committed Jul 14, 2015
1 parent 1c76397 commit 1016e4e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions code/game/gamemodes/gang/gang.dm
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,12 @@ var/list/gang_colors_pool = list("red","orange","yellow","green","blue","purple"
//////////////////////////////////////////////////////////////////////

/datum/game_mode/proc/auto_declare_completion_gang(datum/gang/winner)
if(!winner)
world << "<FONT size=3 color=red><B>The station was [station_was_nuked ? "destroyed!" : "evacuated before a gang could claim it! The station wins!"]</B></FONT><br>"
else
world << "<FONT size=3 color=red><B>The [winner.name] Gang successfully performed a hostile takeover of the station!</B></FONT><br>"
..()
if(gangs.len)
if(!winner)
world << "<FONT size=3 color=red><B>The station was [station_was_nuked ? "destroyed!" : "evacuated before a gang could claim it! The station wins!"]</B></FONT><br>"
else
world << "<FONT size=3 color=red><B>The [winner.name] Gang successfully performed a hostile takeover of the station!</B></FONT><br>"

for(var/datum/gang/G in gangs)
world << "<br><b>The [G.name] Gang was [winner==G ? "<font color=green>victorious</font>" : "<font color=red>defeated</font>"] with [round((G.territory.len/start_state.num_territories)*100, 1)]% control of the station!</b>"
world << "<br>The [G.name] Gang Bosses were:"
Expand Down

0 comments on commit 1016e4e

Please sign in to comment.