mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 20:23:26 +00:00
-Making AIs traitors will actually give them a law 0.
-Removed a feature so it cannot be exploited and clear your laws. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4836 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -723,6 +723,11 @@ datum/mind
|
|||||||
special_role = null
|
special_role = null
|
||||||
current << "\red <FONT size = 3><B>You have been brainwashed! You are no longer a traitor!</B></FONT>"
|
current << "\red <FONT size = 3><B>You have been brainwashed! You are no longer a traitor!</B></FONT>"
|
||||||
log_admin("[key_name_admin(usr)] has de-traitor'ed [current].")
|
log_admin("[key_name_admin(usr)] has de-traitor'ed [current].")
|
||||||
|
if(isAI(current))
|
||||||
|
var/mob/living/silicon/ai/A = current
|
||||||
|
A.set_zeroth_law("")
|
||||||
|
A.show_laws()
|
||||||
|
|
||||||
|
|
||||||
if("traitor")
|
if("traitor")
|
||||||
if(!(src in ticker.mode.traitors))
|
if(!(src in ticker.mode.traitors))
|
||||||
@@ -730,6 +735,10 @@ datum/mind
|
|||||||
special_role = "traitor"
|
special_role = "traitor"
|
||||||
current << "<B>\red You are a traitor!</B>"
|
current << "<B>\red You are a traitor!</B>"
|
||||||
log_admin("[key_name_admin(usr)] has traitor'ed [current].")
|
log_admin("[key_name_admin(usr)] has traitor'ed [current].")
|
||||||
|
if(isAI(current))
|
||||||
|
var/mob/living/silicon/ai/A = current
|
||||||
|
call(/datum/game_mode/proc/add_law_zero)(A)
|
||||||
|
A.show_laws()
|
||||||
|
|
||||||
if("autoobjectives")
|
if("autoobjectives")
|
||||||
ticker.mode.forge_traitor_objectives(src)
|
ticker.mode.forge_traitor_objectives(src)
|
||||||
|
|||||||
@@ -98,9 +98,9 @@
|
|||||||
// world << "DEBUG CODE TIME! [loc] is the area the AI is sucking power from"
|
// world << "DEBUG CODE TIME! [loc] is the area the AI is sucking power from"
|
||||||
if (!is_special_character(src))
|
if (!is_special_character(src))
|
||||||
src.set_zeroth_law("")
|
src.set_zeroth_law("")
|
||||||
src.clear_supplied_laws()
|
//src.clear_supplied_laws() // Don't reset our laws.
|
||||||
var/time = time2text(world.realtime,"hh:mm:ss")
|
//var/time = time2text(world.realtime,"hh:mm:ss")
|
||||||
lawchanges.Add("[time] <b>:</b> [src.name]'s noncore laws have been reset due to power failure")
|
//lawchanges.Add("[time] <b>:</b> [src.name]'s noncore laws have been reset due to power failure")
|
||||||
spawn(50)
|
spawn(50)
|
||||||
while ((src:aiRestorePowerRoutine!=0) && stat!=2)
|
while ((src:aiRestorePowerRoutine!=0) && stat!=2)
|
||||||
src.oxyloss += 2
|
src.oxyloss += 2
|
||||||
@@ -165,7 +165,7 @@
|
|||||||
//bring up APC dialog
|
//bring up APC dialog
|
||||||
theAPC.attack_ai(src)
|
theAPC.attack_ai(src)
|
||||||
src:aiRestorePowerRoutine = 3
|
src:aiRestorePowerRoutine = 3
|
||||||
src << "Your laws have been reset:"
|
src << "Here are your current laws:"
|
||||||
src.show_laws()
|
src.show_laws()
|
||||||
sleep(50)
|
sleep(50)
|
||||||
theAPC = null
|
theAPC = null
|
||||||
|
|||||||
Reference in New Issue
Block a user