pruby

stardew-greenhouse.dzn

Dec 18th, 2021 (edited)
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.25 KB | None | 0 0
  1. % Define domains - crops, fertiliser types
  2. Crops = {Amaranth,Grape,Hops,Pineapple,Sweetgemberry,Tealeaves,Fairyrose,Tulip,Bluejazz,Sunflower,Coffeebean,Poppy,Summerspangle,Parsnip,Greenbean,Cauliflower,Potato,Garlic,Taroroot,Kale,Unmilledrice,Rhubarb,Melon,Tomato,Blueberry,Hotpepper,Wheat,Radish,Redcabbage,Starfruit,Corn,Eggplant,Artichoke,Pumpkin,Bokchoy,Yam,Cranberries,Beet,Ancientfruit,Cactusfruit,Strawberry};
  3. Fertiliser = {NoFertiliser, BasicFertiliser, QualityFertiliser, DeluxeFertiliser, SpeedGro, DeluxeSpeedGro, HyperSpeedGro};
  4.  
  5. % Bulk data extracted from https://thorinair.github.io/Stardew-Profits/
  6. base_growth_time = [7, 3, 1, 7, 24, 4, 12, 6, 7, 8, 2, 7, 8, 4, 3, 12, 6, 4, 10, 6, 8, 13, 12, 4, 4, 3, 4, 6, 9, 13, 4, 5, 8, 13, 4, 10, 5, 6, 7, 3, 4];
  7. is_regrowing = [false, true, true, true, false, true, false, false, false, false, true, false, false, false, true, false, false, false, false, false, false, false, false, true, true, true, false, false, false, false, true, true, false, false, false, false, true, false, true, true, true];
  8. extra_yield = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0.2, 0, 0, 0, 0.11, 0, 0, 0.05, 2, 0.03, 0, 0, 0, 0, 0, 0.002, 0, 0, 0, 0, 1, 0, 0, 0, 0.02];
  9.  
  10. jar_time = 4000;
  11. keg_time = [4000, 10000, 4000, 10000, 4000, 180, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 10000, 10000, 4000, 10000, 10000, 4000, 4000, 4000, 10000, 4000, 4000, 4000, 4000, 4000, 4000, 10000, 4000, 10000, 10000, 10000];
  12.  
  13. quality_price_multiplier = [1, 1.25, 1.5, 2];
  14. cask_age_time = [0, 14, 28, 56];
  15. fertiliser_tier = [0, 1, 2, 3, 0, 0, 0];
  16. fert_growth_time = [1, 1, 1, 1, 0.9, 0.75, 0.65];
  17.  
  18. base_prices = [150, 80, 25, 300, 3000, 50, 290, 30, 50, 80, 15, 140, 90, 35, 40, 175, 80, 60, 100, 110, 30, 220, 250, 60, 50, 40, 25, 90, 260, 750, 50, 60, 160, 320, 80, 160, 75, 100, 550, 75, 120];
  19. seed_costs = [70, 60, 60, -1, -1, -1, 200, 20, 30, 125, -1, 100, 50, 20, 60, 80, 50, 40, -1, 70, 40, -1, 80, 50, 80, 40, 10, 40, 100, -1, 150, 20, 30, 100, 50, 60, 240, -1, -1, -1, -1];
  20. kegged_prices = [337.5, 240, 0, 900, 0, 0, 0, 0, 0, 0, 0, 0, 0, 78.75, 90, 393.75, 180, 135, 225, 247.5, 67.5, 660, 750, 135, 150, 120, 200, 202.5, 585, 2250, 112.5, 135, 360, 720, 180, 360, 225, 225, 1650, 225, 360];
  21. makes_wine = [false, true, false, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, true, true, false, true, true, false, false, false, true, false, false, false, false, false, false, true, false, true, true, true];
  22. jarred_prices = [350, 210, 100, 650, 0, 150, 0, 0, 0, 0, 0, 0, 0, 120, 130, 400, 210, 170, 250, 270, 110, 490, 550, 170, 150, 130, 100, 230, 570, 1550, 150, 170, 370, 690, 210, 370, 200, 250, 1150, 200, 290];
  23.  
  24. % Parameters for available resources, skills, etc
  25.  
  26. % The professions we have affect our choice of production, price difference from converting products, etc.
  27. farming_level = 10;
  28. profession_tiller = true;
  29. profession_artisan = false;
  30. profession_agri = false;
  31.  
  32. % This sets up the resources we have available - greenhouse planting spaces, kegs, jars, casks.
  33. planting_spaces = 108;
  34. kegs = 100;
  35. jars = 100;
  36. casks = 125;
  37.  
  38. % The time limit represents how many actions we're willing to do in a day to keep this process running.
  39. % Actions counted (all equally) include planting crops, harvesting crops, putting things in kegs, jars
  40. % or casks, unloading kegs, jars or casks (load and unload two separate actions, like plant and harvest).
  41. time_limit = 100;
  42.  
  43. % Setting this to a non-zero value allows you to set a minimum return on your time.
  44. % This applies in addition to the time limit above, preventing the engine from "filling out" your schedule
  45. % with low-value actions to maximise profit within the time limit above.
  46. % This is used for optimisation, but is not reported as a cost in the final calculation.
  47. labour_rate = 30;
  48.  
  49. % We work off the number of usable hours in the day, rather than the 24 total. This is because whatever our w
  50. usable_day_hours = 20;
  51.  
  52. % We assume the same fertiliser is used throughout the greenhouse, on all spaces.
  53. fertiliser = NoFertiliser;
  54.  
  55. % These crops are not to be considered, possibly because of unavailability.
  56. banned_crops = {Tealeaves, Sweetgemberry, Ancientfruit, Starfruit, Pineapple};
  57.  
Add Comment
Please, Sign In to add comment