Difference between revisions of "Module:Farming/data"

From Idlescape Wiki
Jump to navigation Jump to search
(Add initial farming stats, previously contained in `farmingStats` in Module:Item/data)
 
m (Add annotation)
 
Line 1: Line 1:
 +
---@class FarmingStats
 +
---@field type "seed"|"tree"|"trap"|"totem"
 +
---@field height number
 +
---@field maxHeight number|nil # max height if multislot seed
 +
---@field width number
 +
---@field maxWidth number|nil # max width if multislot seed
 +
---@field requiredLevel number
 +
---@field image string
 +
---@field align "bottom"|"center"
 +
---@field experience number
 +
---@field time number # base growth time in seconds
 +
 +
---@return table<string, FarmingStats>
 
return {
 
return {
 
   ["151"] = {
 
   ["151"] = {

Latest revision as of 10:49, 5 September 2025


---@class FarmingStats
---@field type "seed"|"tree"|"trap"|"totem"
---@field height number
---@field maxHeight number|nil # max height if multislot seed
---@field width number
---@field maxWidth number|nil # max width if multislot seed
---@field requiredLevel number
---@field image string
---@field align "bottom"|"center"
---@field experience number
---@field time number # base growth time in seconds

---@return table<string, FarmingStats>
return {
  ["151"] = {
    type = "seed",
    height = 1,
    width = 1,
    requiredLevel = 1,
    image = "/images/farming/carrot_plant.png",
    align = "bottom",
    experience = 35,
    time = 900
  },
  ["152"] = {
    type = "seed",
    height = 1,
    width = 1,
    requiredLevel = 45,
    image = "/images/farming/peppercorn_plant.png",
    align = "bottom",
    experience = 125,
    time = 1800
  },
  ["153"] = {
    type = "seed",
    height = 2,
    width = 1,
    requiredLevel = 22,
    image = "/images/farming/sugarcane_plant_2.png",
    align = "bottom",
    experience = 190,
    time = 1800
  },
  ["154"] = {
    type = "seed",
    height = 1,
    width = 1,
    requiredLevel = 8,
    image = "/images/farming/wheat_plant.png",
    align = "bottom",
    experience = 35,
    time = 900
  },
  ["155"] = {
    type = "seed",
    height = 1,
    width = 1,
    requiredLevel = 3,
    image = "/images/farming/potato_plant.png",
    align = "bottom",
    experience = 50,
    time = 1200
  },
  ["156"] = {
    type = "seed",
    height = 1,
    width = 1,
    requiredLevel = 27,
    image = "/images/farming/rice_plant.png",
    align = "bottom",
    experience = 45,
    time = 900
  },
  ["157"] = {
    type = "seed",
    height = 1,
    width = 1,
    requiredLevel = 12,
    image = "/images/farming/tomato_plant.png",
    align = "bottom",
    experience = 110,
    time = 2400
  },
  ["158"] = {
    type = "seed",
    height = 1,
    width = 2,
    requiredLevel = 5,
    image = "/images/farming/wildberry_plant.png",
    align = "bottom",
    experience = 225,
    time = 2700
  },
  ["159"] = {
    type = "seed",
    height = 1,
    width = 1,
    requiredLevel = 20,
    image = "/images/farming/chili_pepper_plant.png",
    align = "bottom",
    experience = 125,
    time = 2400
  },
  ["160"] = {
    type = "seed",
    height = 1,
    width = 1,
    requiredLevel = 50,
    image = "/images/farming/pumpkin_plant.png",
    align = "bottom",
    experience = 110,
    time = 1800
  },
  ["161"] = {
    type = "seed",
    height = 1,
    width = 1,
    requiredLevel = 17,
    image = "/images/farming/mushroom_plant.png",
    align = "bottom",
    experience = 45,
    time = 900
  },
  ["170"] = {
    type = "tree",
    height = 2,
    width = 2,
    requiredLevel = 10,
    image = "/images/farming/normal_tree_plant.png",
    align = "bottom",
    experience = 1000,
    time = 5400
  },
  ["171"] = {
    type = "tree",
    height = 2,
    width = 2,
    requiredLevel = 15,
    image = "/images/farming/oak_tree_plant.png",
    align = "bottom",
    experience = 1750,
    time = 9000
  },
  ["172"] = {
    type = "tree",
    height = 2,
    width = 2,
    requiredLevel = 20,
    image = "/images/farming/willow_tree_plant.png",
    align = "bottom",
    experience = 1600,
    time = 7200
  },
  ["173"] = {
    type = "tree",
    height = 3,
    width = 2,
    requiredLevel = 40,
    image = "/images/farming/maple_tree_plant_2.png",
    align = "bottom",
    experience = 3000,
    time = 7200
  },
  ["174"] = {
    type = "tree",
    height = 3,
    width = 3,
    requiredLevel = 50,
    image = "/images/farming/yew_tree_plant.png",
    align = "bottom",
    experience = 5000,
    time = 7200
  },
  ["175"] = {
    type = "tree",
    height = 2,
    width = 2,
    requiredLevel = 25,
    image = "/images/farming/banana_tree_plant.png",
    align = "bottom",
    experience = 2100,
    time = 9000
  },
  ["176"] = {
    type = "tree",
    height = 2,
    width = 2,
    requiredLevel = 30,
    image = "/images/farming/apple_tree_plant.png",
    align = "bottom",
    experience = 2250,
    time = 9000
  },
  ["177"] = {
    type = "tree",
    height = 4,
    width = 4,
    requiredLevel = 60,
    image = "/images/farming/elder_tree_plant.png",
    align = "bottom",
    experience = 20000,
    time = 14400
  },
  ["180"] = {
    type = "seed",
    height = 1,
    width = 3,
    requiredLevel = 60,
    image = "/images/farming/sageberry_bush.png",
    align = "bottom",
    experience = 600,
    time = 2400
  },
  ["185"] = {
    type = "seed",
    height = 1,
    maxHeight = 4,
    width = 1,
    maxWidth = 4,
    requiredLevel = 5,
    image = "/images/farming/mysterious_plant.png",
    align = "center",
    experience = 400,
    time = 3600
  },
  ["4500"] = {
    type = "trap",
    height = 1,
    width = 1,
    requiredLevel = 1,
    image = "/images/farming/hunting/box_trap.png",
    align = "bottom",
    experience = 100,
    time = 2400,
    fixedSize = true
  },
  ["4501"] = {
    type = "trap",
    height = 1,
    width = 1,
    requiredLevel = 13,
    image = "/images/farming/hunting/pitfall.png",
    align = "bottom",
    experience = 125,
    time = 2400,
    fixedSize = true
  },
  ["4502"] = {
    type = "trap",
    height = 1,
    width = 1,
    requiredLevel = 23,
    image = "/images/farming/hunting/bird_trap.png",
    align = "bottom",
    experience = 350,
    time = 5400,
    fixedSize = true
  },
  ["4503"] = {
    type = "trap",
    height = 1,
    width = 1,
    requiredLevel = 33,
    image = "/images/farming/hunting/net_trap.png",
    align = "bottom",
    experience = 200,
    time = 2700,
    fixedSize = true
  },
  ["4504"] = {
    type = "trap",
    height = 1,
    width = 2,
    requiredLevel = 50,
    image = "/images/farming/hunting/metal_trap.png",
    align = "bottom",
    experience = 650,
    time = 3600,
    fixedSize = true
  },
  ["4505"] = {
    type = "totem",
    height = 1,
    width = 1,
    requiredLevel = 50,
    image = "/images/farming/totem/water_totem_mj_v2.png",
    align = "bottom",
    experience = 10000,
    time = 604800
  },
  ["4506"] = {
    type = "totem",
    height = 1,
    width = 1,
    requiredLevel = 50,
    image = "/images/farming/totem/nature_orb.png",
    align = "bottom",
    experience = 10000,
    time = 604800
  },
  ["4507"] = {
    type = "totem",
    height = 1,
    width = 1,
    requiredLevel = 50,
    image = "/images/farming/totem/earth_orb.png",
    align = "bottom",
    experience = 10000,
    time = 604800
  },
  ["4508"] = {
    type = "totem",
    height = 1,
    width = 1,
    requiredLevel = 50,
    image = "/images/farming/totem/condensed_orb.png",
    align = "bottom",
    experience = 10000,
    time = 604800
  },
  ["4509"] = {
    type = "trap",
    height = 2,
    width = 2,
    requiredLevel = 60,
    image = "/images/farming/hunting/metal_trap.png",
    align = "bottom",
    experience = 2250,
    time = 5400,
    fixedSize = true
  },
  ["4510"] = {
    type = "trap",
    height = 1,
    width = 1,
    requiredLevel = 6,
    image = "/images/farming/worm_bin.png",
    align = "bottom",
    experience = 60,
    time = 1800,
    fixedSize = true
  },
  ["4511"] = {
    type = "totem",
    height = 1,
    width = 1,
    requiredLevel = 80,
    image = "/images/farming/totem/unstable_water_totem_mj_v2.png",
    align = "bottom",
    experience = 10000,
    time = 86400
  },
  ["4512"] = {
    type = "totem",
    height = 1,
    width = 1,
    requiredLevel = 80,
    image = "/images/farming/totem/unstable_nature_orb.png",
    align = "bottom",
    experience = 10000,
    time = 86400
  },
  ["4513"] = {
    type = "totem",
    height = 1,
    width = 1,
    requiredLevel = 80,
    image = "/images/farming/totem/unstable_earth_orb.png",
    align = "bottom",
    experience = 10000,
    time = 86400
  },
  ["4514"] = {
    type = "totem",
    height = 1,
    width = 1,
    requiredLevel = 80,
    image = "/images/farming/totem/unstable_condensed_orb.png",
    align = "bottom",
    experience = 10000,
    time = 86400
  },
  ["4515"] = {
    type = "totem",
    height = 2,
    width = 2,
    requiredLevel = 90,
    image = "/images/farming/totem/corrupted_totem.png",
    align = "bottom",
    experience = 10000,
    time = 86400,
    fixedSize = true
  },
  ["9031"] = {
    type = "tree",
    requiredLevel = 70,
    experience = 225000,
    height = 5,
    width = 5,
    time = 86400,
    image = "/images/farming/elder_oak_plant.png",
    align = "bottom"
  }
}