Quick actions

cmd+k|ctrl+k

Navigation

Languages

Plant HP Checker

Snippet info

Language

Lua

Visibility

public

Author

leonkraska.l

Created

2026-03-05T00:53:54.374932Z

Updated

2026-03-11T23:51:46.896171Z

local DesiredLevel = 1 -- Change level if wanted
-- At Level -18 it shows the increment of each Plant

local Plants = {
    ["Blarg Bean"] = 150,
    ["Giggle Chili"] = 250,
    ["Star Bloom"] = 400,
    ["Moon Lily"] = 600,
    ["Mango Snap"] = 850,
    ["Cash Chomp"] = 1250,
    ["Electro Berries"] = 1500,
    ["Dragonfroot"] = 2100,
    ["Spore Shooter"] = 2200
}
local Modifiers = {
    ["Normal"] = 1,
    ["Chrome"] = 1.5,
    ["Ink"] = 2,
    ["Ghost"] = 3,
    ["Slime"] = 3.5,
    ["Blossom"] = 3.8,
    ["Classic"] = 4,
    ["Rainbow"] = 5
}
local All = {}
for Plant,HP in pairs(Plants) do
    for Modifier,Multiplier in pairs(Modifiers) do
        table.insert(All,{Name = Modifier .. " " .. Plant,HP = HP * Multiplier})
    end
end
table.sort(All, function(a, b)
    return a.HP > b.HP
end)
print("note: The ranking of the plants dont change depending on the Level")
for i = 1,3 do print("") end
print("HP at Level " .. DesiredLevel)
for i,v in ipairs(All) do
    print(string.format("%-26s HP: %d", v.Name, v.HP+v.HP/20*(DesiredLevel-1)))
end
INFO