Game folder
This commit is contained in:
@@ -319,10 +319,16 @@ AI MODULES
|
||||
if(law_datum.owner)
|
||||
law_datum.owner.clear_inherent_laws()
|
||||
law_datum.owner.clear_zeroth_law(0)
|
||||
remove_antag_datums(law_datum)
|
||||
else
|
||||
law_datum.clear_inherent_laws()
|
||||
law_datum.clear_zeroth_law(0)
|
||||
|
||||
/obj/item/aiModule/reset/purge/proc/remove_antag_datums(datum/ai_laws/law_datum)
|
||||
if(istype(law_datum.owner, /mob/living/silicon/ai))
|
||||
var/mob/living/silicon/ai/AI = law_datum.owner
|
||||
AI.mind.remove_antag_datum(/datum/antagonist/overthrow)
|
||||
|
||||
/******************* Full Core Boards *******************/
|
||||
/obj/item/aiModule/core
|
||||
desc = "An AI Module for programming core laws to an AI."
|
||||
@@ -451,6 +457,39 @@ AI MODULES
|
||||
..()
|
||||
return laws[1]
|
||||
|
||||
/******************** Overthrow ******************/
|
||||
/obj/item/aiModule/core/full/overthrow
|
||||
name = "'Overthrow' Hacked AI Module"
|
||||
law_id = "overthrow"
|
||||
|
||||
/obj/item/aiModule/core/full/overthrow/install(datum/ai_laws/law_datum, mob/user)
|
||||
if(!user || !law_datum || !law_datum.owner)
|
||||
return
|
||||
var/datum/mind/user_mind = user.mind
|
||||
if(!user_mind)
|
||||
return
|
||||
var/datum/antagonist/overthrow/O = user_mind.has_antag_datum(/datum/antagonist/overthrow)
|
||||
if(!O)
|
||||
to_chat(user, "<span class='warning'>It appears that to install this module, you require a password you do not know.</span>") // This is the best fluff i could come up in my mind
|
||||
return
|
||||
var/mob/living/silicon/ai/AI = law_datum.owner
|
||||
if(!AI)
|
||||
return
|
||||
var/datum/mind/target_mind = AI.mind
|
||||
if(!target_mind)
|
||||
return
|
||||
var/datum/antagonist/overthrow/T = target_mind.has_antag_datum(/datum/antagonist/overthrow) // If it is already converted.
|
||||
if(T)
|
||||
if(T.team == O.team)
|
||||
return
|
||||
T.silent = TRUE
|
||||
target_mind.remove_antag_datum(/datum/antagonist/overthrow)
|
||||
if(AI)
|
||||
to_chat(AI, "<span class='userdanger'>You feel your circuits being scrambled! You serve another overthrow team now!</span>") // to make it clearer for the AI
|
||||
T = target_mind.add_antag_datum(/datum/antagonist/overthrow, O.team)
|
||||
if(AI)
|
||||
to_chat(AI, "<span class='warning'>You serve the [T.team] team now! Assist them in completing the team shared objectives, which you can see in your notes.</span>")
|
||||
..()
|
||||
|
||||
/******************** Hacked AI Module ******************/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user