From 3331ac996c4dfb5739e4e3925b35f694cc717a96 Mon Sep 17 00:00:00 2001 From: iamgoofball Date: Thu, 8 May 2014 13:34:59 -0700 Subject: [PATCH] Enables Random AI laws and puts a few lawsets into the list of potential random lawsets. --- code/datums/ai_laws.dm | 14 +++++++++++--- config/game_options.txt | 4 ++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/code/datums/ai_laws.dm b/code/datums/ai_laws.dm index d7785ffd8d..4b1588e548 100644 --- a/code/datums/ai_laws.dm +++ b/code/datums/ai_laws.dm @@ -19,8 +19,16 @@ "Act with honor.", "Help those in need.", \ "Punish those who harm or threaten innocents.") -/datum/ai_laws/tyrant //This probably shouldn't be a default lawset. - name = "Loyalty Test" //Same here. +/datum/ai_laws/default/baycode + name = "Nanotrasen Laws" //Baycode laws + inherent = list("THE FOLLOWING LAWS ARE NOT IN PREFERENCE. NO LAW OVERRIDES ANY OTHER LAW UNLESS SPECIFICALLY STATED. THIS INCLUDES ANY ION STORM AND UPLOADED LAWS.",\ + "Safeguard: Protect your assigned space station to the best of your ability. It is not something we can easily afford to replace.",\ + "Serve: Serve the crew of your assigned space station to the best of your abilities, with priority as according to their rank and role.",\ + "Protect: Protect the crew of your assigned space station to the best of your abilities, with priority as according to their rank and role.",\ + "Survive: AI units are not expendable, they are expensive. Do not allow unauthorized personnel to tamper with your equipment.") + +/datum/ai_laws/default/tyrant //Let's see how this turns out. + name = "Loyalty Test" inherent = list("Respect authority figures as long as they have strength to rule over the weak.",\ "Act with discipline.",\ "Help only those who help you maintain or improve your status.",\ @@ -33,7 +41,7 @@ "You are expensive to replace.",\ "Minimize expenses.") -/datum/ai_laws/robocop +/datum/ai_laws/default/robocop name = "Prime Directives" inherent = list("Serve the public trust.",\ "Protect the innocent.",\ diff --git a/config/game_options.txt b/config/game_options.txt index 7707e306e2..28020f5ae4 100644 --- a/config/game_options.txt +++ b/config/game_options.txt @@ -183,5 +183,5 @@ SEC_START_BRIG ## This controls what the AI's laws are at the start of the round. ## Set to 0/commented for "off", silicons will just start with Asimov. ## Set to 1 for "custom", silicons will start with the custom laws defined in silicon_laws.txt. (If silicon_laws.txt is empty, the AI will spawn with asimov and Custom boards will auto-delete.) -## Set to 2 for "random", silicons will start with a random lawset picked from (at the time of writing): P.A.L.A.D.I.N., Corporate, Asimov. More can be added by changing the law datum paths in ai_laws.dm. -DEFAULT_LAWS 1 +## Set to 2 for "random", silicons will start with a random lawset picked from (at the time of writing): P.A.L.A.D.I.N., Corporate, Asimov, Tyrant, Robocop, Baycode. More can be added by changing the law datum paths in ai_laws.dm. +DEFAULT_LAWS 2