Botany Pots

Botany Pots

33M Downloads

Add a global growth modifier config option.

Darkhax opened this issue ยท 1 comments

commented

A config option that can scale the growth time of crops down or even up. Universal for all crops.

commented
// Gets the crop registry
var crops = <recipetype:botanypots:crop>;

// Loop through each cropId in the crop registry
for cropId in crops.recipeMap {

    // This code is ran once for each crop ID in the game.
    
    // Get the crop data for the current ID, then multiply it's growth
    // time to be 2x the original value.
    crops.getCrop(cropId).growthTicks *= 2;
}