Prison Architect

Prison Architect

Simple Garden Mod
nobrainer 2 Aug, 2017 @ 3:46pm
Gardening Grant
I've created a grant that uses this mod. Since I'm not the mod author and I don't have access to the source code of the mod, or any version control repository of the mod, I'm posting here what I did in case somebody wants this grant in their game or the mod author wants to add this to the mod.

  1. Go to the mod folder in %AppData%\Local\Introversion\Prison Architect\mods\434985481\data

  2. Create a new file named grants.lua with the following content inside:
    function CreateGrants() CreateSimpleGarden(); end function CreateSimpleGarden() Objective.CreateGrant ( "Grant_Simple_Garden", 5000, 15000 ) Objective.SetPreRequisite ( "Unlocked", "Gardening", 0 ) Objective.HiddenWhileLocked () Objective.CreateGrant ( "Grant_Simple_Garden_GardenRoom", 0, 0 ) Objective.SetParent ( "Grant_Simple_Garden" ) Objective.RequireRoom ( "Garden", true ) Objective.CreateGrant ( "Grant_Simple_Garden_GardenPotNumber", 0, 0 ) Objective.SetParent ( "Grant_Simple_Garden" ) Objective.RequireObjects ( "GardenPot", 10 ) Objective.CreateGrant ( "Grant_Simple_Garden_GardenerNumber", 0, 0 ) Objective.SetParent ( "Grant_Simple_Garden" ) Objective.RequireObjects ( "Gardener", 1 ) Objective.CreateGrant ( "Grant_Simple_Garden_ProgramPassed", 0, 0 ) Objective.SetParent ( "Grant_Simple_Garden" ) Objective.Requires ( "ReformPassed", "PlantCultivation", 20 ) end

  3. Go to the language folder

  4. Insert the following content in the base-language.txt file:
    objective_Grant_Simple_Garden_ProgramPassed Have twenty prisoners pass the Plant Cultivation Program objective_Grant_Simple_Garden The Reform through Gardening Initiative objective_Grant_Simple_Garden_description Build a Garden for your prisoners objective_Grant_Simple_Garden_GardenPotNumber Build ten Garden Pots in the Garden objective_Grant_Simple_Garden_GardenerNumber Hire at least one Gardener objective_Grant_Simple_Garden_GardenRoom Build a Garden

  5. Launch the game and check the new grant after you've completed the "Gardening" research.
Last edited by nobrainer; 11 Jul, 2018 @ 2:23pm
< >
Showing 1-2 of 2 comments
nobrainer 11 Jul, 2018 @ 2:25pm 
Sorry to bump an old topic.
I added a conditional check to maintain the grant hidden until you research "Gardening".
Kenny Shinu 7 Oct, 2020 @ 1:05pm 
Hello, I wanted to translate this mod ... Could you send me the md file so I can translate. If you can, talk to me privately via the Steam chat.
< >
Showing 1-2 of 2 comments
Per page: 1530 50