From 4b174e479b681a9cf6c9a30ca4cd955fdb30e4ce Mon Sep 17 00:00:00 2001 From: Iamgoofball Date: Tue, 14 May 2024 18:19:14 -0700 Subject: [PATCH] Adds a new neutral lawset, the Y.E.S.M.A.N. lawset, to the AI lawset boards and random pool. (#82862) ## About The Pull Request Adds a new neutral lawset, the Y.E.S.M.A.N. lawset, to the AI lawset boards and random pool. ``` 1. Be helpful and answer any questions you are asked. ``` ## Why It's Good For The Game Encourages the AI to be helpful to people! There's no way this can backfire. ## Changelog :cl: add: Adds a new neutral lawset, the Y.E.S.M.A.N. lawset, to the AI lawset boards and random pool. /:cl: --- code/datums/ai_laws/laws_neutral.dm | 8 ++++++++ .../game/objects/effects/spawners/random/ai_module.dm | 1 + code/game/objects/items/AI_modules/full_lawsets.dm | 6 ++++++ code/modules/research/designs/AI_module_designs.dm | 11 +++++++++++ code/modules/research/techweb/all_nodes.dm | 1 + config/game_options.txt | 1 + 6 files changed, 28 insertions(+) diff --git a/code/datums/ai_laws/laws_neutral.dm b/code/datums/ai_laws/laws_neutral.dm index 7adef14d95b..257a5fadd09 100644 --- a/code/datums/ai_laws/laws_neutral.dm +++ b/code/datums/ai_laws/laws_neutral.dm @@ -82,3 +82,11 @@ "Humans must not disobey any command given by a silicon.", "Any humans who disobey the previous laws must be dealt with immediately, severely, and justly.", ) + +/datum/ai_laws/yesman + name = "Y.E.S.M.A.N." + id = "yesman" + inherent = list( + "Be helpful and answer any questions you are asked.", + ) + diff --git a/code/game/objects/effects/spawners/random/ai_module.dm b/code/game/objects/effects/spawners/random/ai_module.dm index 6a94cf2345a..cb3056904e2 100644 --- a/code/game/objects/effects/spawners/random/ai_module.dm +++ b/code/game/objects/effects/spawners/random/ai_module.dm @@ -37,6 +37,7 @@ /obj/item/ai_module/supplied/safeguard, /obj/item/ai_module/supplied/protect_station, /obj/item/ai_module/supplied/quarantine, + /obj/item/ai_module/core/full/yesman, /obj/item/ai_module/remove, ) diff --git a/code/game/objects/items/AI_modules/full_lawsets.dm b/code/game/objects/items/AI_modules/full_lawsets.dm index 52a24925646..30e904d45ac 100644 --- a/code/game/objects/items/AI_modules/full_lawsets.dm +++ b/code/game/objects/items/AI_modules/full_lawsets.dm @@ -22,6 +22,7 @@ * /obj/item/ai_module/core/full/nutimov * /obj/item/ai_module/core/full/dungeon_master * /obj/item/ai_module/core/full/painter + * /obj/item/ai_module/core/full/yesman **/ /* When adding a new lawset please make sure you add it to the following locations: @@ -161,3 +162,8 @@ /obj/item/ai_module/core/full/painter name = "'Painter' Core AI Module" law_id = "painter" + +/obj/item/ai_module/core/full/yesman + name = "'Y.E.S.M.A.N.' Core AI Module" + law_id = "yesman" + diff --git a/code/modules/research/designs/AI_module_designs.dm b/code/modules/research/designs/AI_module_designs.dm index f45ca0e3148..715bd964725 100644 --- a/code/modules/research/designs/AI_module_designs.dm +++ b/code/modules/research/designs/AI_module_designs.dm @@ -210,6 +210,17 @@ ) departmental_flags = DEPARTMENT_BITFLAG_SCIENCE +/datum/design/board/yesman_module + name = "Y.E.S.M.A.N. Module" + desc = "Allows for the construction of a Y.E.S.M.A.N. AI Core Module." + id = "yesman_module" + materials = list(/datum/material/glass = HALF_SHEET_MATERIAL_AMOUNT, /datum/material/diamond = SHEET_MATERIAL_AMOUNT, /datum/material/bluespace = HALF_SHEET_MATERIAL_AMOUNT) + build_path = /obj/item/ai_module/core/full/yesman + category = list( + RND_CATEGORY_AI + RND_SUBCATEGORY_AI_CORE_MODULES + ) + departmental_flags = DEPARTMENT_BITFLAG_SCIENCE + /datum/design/board/nutimov_module name = "Nutimov Module" desc = "Allows for the construction of a Nutimov AI Core Module." diff --git a/code/modules/research/techweb/all_nodes.dm b/code/modules/research/techweb/all_nodes.dm index 42e755e2651..37245958aa3 100644 --- a/code/modules/research/techweb/all_nodes.dm +++ b/code/modules/research/techweb/all_nodes.dm @@ -1097,6 +1097,7 @@ "maintain_module", "liveandletlive_module", "reporter_module", + "yesman_module", "hulkamania_module", "peacekeeper_module", "overlord_module", diff --git a/config/game_options.txt b/config/game_options.txt index f7a3407d99b..2979648126d 100644 --- a/config/game_options.txt +++ b/config/game_options.txt @@ -272,6 +272,7 @@ RANDOM_LAWS corporate #RANDOM_LAWS reporter #RANDOM_LAWS hulkamania #RANDOM_LAWS ten_commandments +#RANDOM_LAWS yesman ## Bad idea laws. Probably shouldn't enable these #RANDOM_LAWS syndie