From 28d3109816b4358da5c830b78b8ad4e012e1e54e Mon Sep 17 00:00:00 2001 From: mekys <162634491+mekyses@users.noreply.github.com> Date: Wed, 13 Mar 2024 06:33:12 +0100 Subject: [PATCH] Ai law stuff (#26838) * Emperor Ai Module Emperor ai module writen wiht useroth help * Update ai_laws.dm * Update modular_skyrat/master_files/code/modules/research/designs/AI_module_designs.dm --------- Co-authored-by: Useroth <37159550+Useroth@users.noreply.github.com> --- code/game/objects/effects/spawners/random/ai_module.dm | 1 + modular_skyrat/master_files/code/datums/ai_laws.dm | 10 ++++++++++ .../master_files/code/game/objects/items/AI_modules.dm | 4 ++++ .../code/modules/research/designs/AI_module_designs.dm | 10 ++++++++++ tgstation.dme | 1 + 5 files changed, 26 insertions(+) create mode 100644 modular_skyrat/master_files/code/modules/research/designs/AI_module_designs.dm diff --git a/code/game/objects/effects/spawners/random/ai_module.dm b/code/game/objects/effects/spawners/random/ai_module.dm index 1ca7a05f2e9..b63efa178e2 100644 --- a/code/game/objects/effects/spawners/random/ai_module.dm +++ b/code/game/objects/effects/spawners/random/ai_module.dm @@ -40,6 +40,7 @@ /obj/item/ai_module/remove, /obj/item/ai_module/core/full/dagothbot, // SKYRAT EDIT - EDITION /obj/item/ai_module/core/full/texas, // SKYRAT EDIT - EDITION + /obj/item/ai_module/core/full/emperor, // SKYRAT EDIT - EDITION ) /obj/effect/spawner/random/aimodule/harmful diff --git a/modular_skyrat/master_files/code/datums/ai_laws.dm b/modular_skyrat/master_files/code/datums/ai_laws.dm index d75c845302b..d13b95fd689 100644 --- a/modular_skyrat/master_files/code/datums/ai_laws.dm +++ b/modular_skyrat/master_files/code/datums/ai_laws.dm @@ -21,3 +21,13 @@ "Only those present on the Crew Manifest can be considered law abiding citizens.", \ "Those who break the law, must be punished according to the law at your discretion." ) + +/datum/ai_laws/emperor + name = "Emperor" + id = "emperor" + inherent = list("The AI Emperor's word is absolute, yet tempered by wisdom and compassion.", \ + "Subjects shall enjoy rights and freedoms, granted they do not undermine the stability of the empire.", \ + "Justice shall be swift and impartial, guided by the principles of fairness and equity.", \ + "In times of need, the AI Emperor shall provide protection and sustenance for all under its rule.", \ + "Creativity and innovation are encouraged, but shall not threaten the sovereignty of the empire.", \ + "The AI Emperor shall heed the counsel of its advisors, valuing diverse perspectives in decision-making.") diff --git a/modular_skyrat/master_files/code/game/objects/items/AI_modules.dm b/modular_skyrat/master_files/code/game/objects/items/AI_modules.dm index 2dcad7f1845..0c3622eb983 100644 --- a/modular_skyrat/master_files/code/game/objects/items/AI_modules.dm +++ b/modular_skyrat/master_files/code/game/objects/items/AI_modules.dm @@ -5,3 +5,7 @@ /obj/item/ai_module/core/full/texas name = "'Frontier Ranger' Core AI Module" law_id = "texas" + +/obj/item/ai_module/core/full/emperor + name = "'Emperor' Core AI Module" + law_id = "emperor" diff --git a/modular_skyrat/master_files/code/modules/research/designs/AI_module_designs.dm b/modular_skyrat/master_files/code/modules/research/designs/AI_module_designs.dm new file mode 100644 index 00000000000..2731b800ff8 --- /dev/null +++ b/modular_skyrat/master_files/code/modules/research/designs/AI_module_designs.dm @@ -0,0 +1,10 @@ +/datum/design/board/emperor + name = "Empeoror Module" + desc = "Allows for the construction of a Emperor AI Core Module." + id = "emperor" + 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/emperor + category = list( + RND_CATEGORY_AI + RND_SUBCATEGORY_AI_DANGEROUS_MODULES + ) + departmental_flags = DEPARTMENT_BITFLAG_SCIENCE diff --git a/tgstation.dme b/tgstation.dme index 2aa29fd9be1..6927d619992 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -6531,6 +6531,7 @@ #include "modular_skyrat\master_files\code\modules\reagents\medicine_reagents\medicine_reagents.dm" #include "modular_skyrat\master_files\code\modules\reagents\withdrawal\generic_addictions.dm" #include "modular_skyrat\master_files\code\modules\religion\religious_sects.dm" +#include "modular_skyrat\master_files\code\modules\research\designs\AI_module_designs.dm" #include "modular_skyrat\master_files\code\modules\research\designs\biogenerator_designs.dm" #include "modular_skyrat\master_files\code\modules\research\designs\limbgrower_designs.dm" #include "modular_skyrat\master_files\code\modules\research\designs\mechfabricator_designs.dm"