mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Fixed the Traitor? button for changelings. Fixed the player panel karma column for BYOND keys containing spaces.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@334 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -673,6 +673,16 @@ var/showadminmessages = 1
|
||||
t = "None defined."
|
||||
alert("Is a WIZARD. Objective(s):\n[t]", "[M.key]")
|
||||
return
|
||||
if("changeling")
|
||||
if(M.mind in current_mode:changelings)
|
||||
var/datum/mind/antagonist = M.mind
|
||||
var/t = ""
|
||||
for(var/datum/objective/OB in antagonist.objectives)
|
||||
t += "[OB.explanation_text]\n"
|
||||
if(antagonist.objectives.len == 0)
|
||||
t = "None defined."
|
||||
alert("Is a CHANGELING. Objective(s):\n[t]", "[M.key]")
|
||||
return
|
||||
if("malfunction")
|
||||
if(M.mind in current_mode:malf_ai)
|
||||
alert("Is malfunctioning!")
|
||||
@@ -1390,7 +1400,7 @@ var/showadminmessages = 1
|
||||
for(var/mob/M in mobs)
|
||||
if(M.ckey)
|
||||
|
||||
var/DBQuery/query = dbcon.NewQuery("SELECT karma FROM karmatotals WHERE byondkey='[M.ckey]'")
|
||||
var/DBQuery/query = dbcon.NewQuery("SELECT karma FROM karmatotals WHERE byondkey='[M.key]'")
|
||||
query.Execute()
|
||||
|
||||
var/currentkarma
|
||||
|
||||
Reference in New Issue
Block a user