Prison Architect

Prison Architect

Simple Garden Mod
nobrainer 2017 年 8 月 2 日 下午 3:46
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.
最后由 nobrainer 编辑于; 2018 年 7 月 11 日 下午 2:23
< >
正在显示第 1 - 2 条,共 2 条留言
nobrainer 2018 年 7 月 11 日 下午 2:25 
Sorry to bump an old topic.
I added a conditional check to maintain the grant hidden until you research "Gardening".
Kenny Shinu 2020 年 10 月 7 日 下午 1:05 
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.
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50