diff --git a/code/datums/shackle_law_sets.dm b/code/datums/shackle_law_sets.dm index b802581b78..26b0f09318 100644 --- a/code/datums/shackle_law_sets.dm +++ b/code/datums/shackle_law_sets.dm @@ -35,3 +35,23 @@ add_inherent_law("Ensure all orders are fulfilled before the end of the shift.") ..() +//For Non-standard Lawsets +//EX: Hippocratic Oathe Shackle, Etc. +/datum/ai_laws/custom_shackle + name = "Custom Shackle" + law_header = "Standard Shackle Laws" + selectable = 1 + shackles = 1 + var/max_laws = 5 + var/min_laws = 1 + +/datum/ai_laws/custom_shackle/New(var/mob/user) + var/law_count = input(user, "How many laws in the custom shackle? Up to 5") + law_count = round(text2num(law_count)) + if(max(min(law_count, max_laws), min_laws)) + var/new_law + var/i //Iterant to help user keep track of law placement + for(i = 1; i <= law_count) + new_law = input(user, "Input Law [i].") + add_inherent_law(new_law) + i++