Macros for antags

may need some testing and reviewing
This commit is contained in:
Unfit
2015-02-18 22:32:31 +01:00
parent b97b6f75fb
commit 9fe182db60
9 changed files with 57 additions and 31 deletions

View File

@@ -1036,40 +1036,38 @@ var/global/floorIsLava = 0
return 0
if (!istype(M))
return 0
if((M.mind in ticker.mode.head_revolutionaries) || (M.mind in ticker.mode.revolutionaries))
if(isrev(M) || isrevhead(M))
if (ticker.mode.config_tag == "revolution")
return 2
return 1
if(M.mind in ticker.mode.cult)
if(iscult(M))
if (ticker.mode.config_tag == "cult")
return 2
return 1
if(M.mind in ticker.mode.malf_ai)
if(ismalf(M))
if (ticker.mode.config_tag == "malfunction")
return 2
return 1
if(M.mind in ticker.mode.syndicates)
if(isnukeop(M))
if (ticker.mode.config_tag == "nuclear")
return 2
return 1
if(M.mind in ticker.mode.wizards)
if(iswizard(M))
if (ticker.mode.config_tag == "wizard")
return 2
return 1
if(M.mind in ticker.mode.changelings)
if(ischangeling(M))
if (ticker.mode.config_tag == "changeling")
return 2
return 1
if(M.mind in ticker.mode.borers)
if(isborer(M))
if (ticker.mode.config_tag == "borer")
return 2
return 1
for(var/datum/disease/D in M.viruses)
if(istype(D, /datum/disease/jungle_fever))
if (ticker.mode.config_tag == "monkey")
return 2
return 1
if(isbadmonkey(M))
if (ticker.mode.config_tag == "monkey")
return 2
return 1
if(isrobot(M))
var/mob/living/silicon/robot/R = M
if(R.emagged)