mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 10:33:30 +01:00
Revolution game mode fixes:
Station-heads who are monkied now count as 'dead' for round completion. - This previously applied to revheads but not station heads. Changed get_all/living_heads to pull from the mob list instead of the player list. - It was causing players to get skipped by the check-antag verb admins have if they were disconnected. Runtime fix by Erro for: runtime error: Cannot execute null.show inv(). proc name: done (/obj/effect/equip_e/human/done) source file: inventory.dm,562 usr: Nodrak Davis (/mob/living/carbon/human) src: the human (/obj/effect/equip_e/human) call stack: the human (/obj/effect/equip_e/human): done() the human (/obj/effect/equip_e/human): process() git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4509 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -341,7 +341,7 @@ Whitespace:Seperator;
|
||||
///////////////////////////////////
|
||||
/datum/game_mode/proc/get_living_heads()
|
||||
var/list/heads = list()
|
||||
for(var/mob/living/carbon/human/player in player_list)
|
||||
for(var/mob/living/carbon/human/player in mob_list)
|
||||
if(player.stat!=2 && player.mind && (player.mind.assigned_role in command_positions))
|
||||
heads += player.mind
|
||||
return heads
|
||||
@@ -352,7 +352,7 @@ Whitespace:Seperator;
|
||||
////////////////////////////
|
||||
/datum/game_mode/proc/get_all_heads()
|
||||
var/list/heads = list()
|
||||
for(var/mob/player in player_list)
|
||||
for(var/mob/player in mob_list)
|
||||
if(player.mind && (player.mind.assigned_role in command_positions))
|
||||
heads += player.mind
|
||||
return heads
|
||||
|
||||
@@ -78,7 +78,7 @@ datum/objective/mutiny
|
||||
|
||||
check_completion()
|
||||
if(target && target.current)
|
||||
if(target.current.stat == DEAD)
|
||||
if(target.current.stat == DEAD || !ishuman(target.current))
|
||||
return 1
|
||||
var/turf/T = get_turf(target.current)
|
||||
if(T && (T.z != 1)) //If they leave the station they count as dead for this
|
||||
|
||||
Reference in New Issue
Block a user