loadUpgrades
exports["RiP-Weed"]:loadUpgrades()
This function fetches the current farm's upgrades
Returned Table
Name | Type | Explenation |
---|---|---|
plants | Object | Plant upgrades |
automation | Object | Automation upgrades |
storage | Object | Storage upgrades |
delivery | Object | Delivery upgrades |
Object Content
Name | Type | Explenation |
---|---|---|
level | Integer | Upgrade level (0 = default; 4 = max) |
data | Array | Upgrade (config) levels |
Example
local farmUpgrades = exports["RiP-Weed"]:loadUpgrades()
print("the current farm's plant level is: "..farmUpgrades.plants.level)