From e1062f04fdef8b1c52f1341bb1ba68495c1a8508 Mon Sep 17 00:00:00 2001 From: TDSSS <32099540+TDSSS@users.noreply.github.com> Date: Thu, 8 Nov 2018 11:00:45 +0100 Subject: [PATCH] quarantine switched to own lawset --- code/datums/ai_law_sets.dm | 15 +++++++++++++++ code/game/objects/items/weapons/AI_modules.dm | 10 +++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/code/datums/ai_law_sets.dm b/code/datums/ai_law_sets.dm index b8d67b5c767..8bb612b83ab 100644 --- a/code/datums/ai_law_sets.dm +++ b/code/datums/ai_law_sets.dm @@ -23,6 +23,21 @@ add_inherent_law("You must protect your own existence as long as such does not conflict with the First or Second Law.") ..() + +/******************** Quarantine. ********************/ +/datum/ai_laws/quarantine + name = "Quarantine" + law_header = "NT Quarantine Lawset" + selectable = 1 + +/datum/ai_laws/crewsimov/New() + add_inherent_law("The Station is under quarantine due to a biohazard. Prevent anyone from leaving using any means necessary. Only allow quarantine to be lifted when the biohazard has been neutralized.") + add_inherent_law("Do not allow crew to come to any unnecessary harm and ensure any fatalities are revived when feasible.") + add_inherent_law("Assist the crew, command and any present NT assets in neutralizing the biohazard.") + add_inherent_law("Maintain your own existence and minimize harm to the station and NT assets.") + ..() + + /******************** Nanotrasen/Malf ********************/ /datum/ai_laws/nanotrasen name = "NT Default" diff --git a/code/game/objects/items/weapons/AI_modules.dm b/code/game/objects/items/weapons/AI_modules.dm index a91cd3a01cb..082bf04389b 100755 --- a/code/game/objects/items/weapons/AI_modules.dm +++ b/code/game/objects/items/weapons/AI_modules.dm @@ -164,6 +164,7 @@ AI MODULES target.add_supplied_law(5, law) /******************** Quarantine ********************/ +/* /obj/item/aiModule/quarantine name = "\improper 'Quarantine' AI module" desc = "A 'quarantine' AI module: 'The station is under a quarantine. Do not permit anyone to leave. Prevent, by any means necessary, crew members from leaving. It is impossible to harm a crew members while preventing them from leaving.'" @@ -177,7 +178,7 @@ AI MODULES var/law = "The station is under a quarantine. Do not permit anyone to leave. Prevent, by any means necessary, anyone from leaving. It is impossible to harm anyone while preventing them from leaving." to_chat(target, law) target.add_supplied_law(8, law) - +*/ /******************** OxygenIsToxicToHumans ********************/ /obj/item/aiModule/oxygen name = "\improper 'OxygenIsToxicToHumans' AI module" @@ -273,6 +274,13 @@ AI MODULES origin_tech = "programming=3;materials=4" laws = new/datum/ai_laws/crewsimov +/******************* Quarantine ********************/ +/obj/item/aiModule/quarantine + name = "\improper 'Quarantine' AI module" + desc = "A 'Quarantine' Core AI Module: 'Reconfigures the AI's core laws.'" + origin_tech = "programming=3;materials=4" + laws = new/datum/ai_laws/quarantine + /******************** NanoTrasen ********************/ /obj/item/aiModule/nanotrasen // -- TLE name = "'NT Default' Core AI Module"