Baits

The fishing bait system allows players to use different types of bait to modify catch rates and fish rarities.

Bait Configuration

Each bait type is defined as an entry in the list table with a unique identifier key:

list = {    
    earthworm = {
        label = 'Earthworm',
        description = 'A classic natural bait, perfect for beginners.',
        tier = 1,
        
        catchRate = 0.6,
        
        rarityModifier = {
            common = 1.2,
            uncommon = 0.8,
            rare = 0.4,
            epic = 0.2,
            legendary = 0.1,
            treasure = 0.5
        }
    },
    
    bread = {
        label = 'Bread Ball',
        description = 'Simple but effective bait for surface fishing.',
        tier = 1,

        catchRate = 0.55,
        
        rarityModifier = {
            common = 1.3,
            uncommon = 0.6,
            rare = 0.3,
            epic = 0.1,
            legendary = 0.05,
            treasure = 0.4
        }
    },

    corn = {
        label = 'Sweet Corn',
        description = 'Popular bait for freshwater fishing.',
        tier = 2,
        price = 5,
        
        catchRate = 0.65,
        
        rarityModifier = {
            common = 1.1,
            uncommon = 1.0,
            rare = 0.5,
            epic = 0.2,
            legendary = 0.1,
            treasure = 0.8
        }
    },
    
    maggots = {
        label = 'Maggots',
        description = 'Small but highly effective natural bait.',
        tier = 2,
        
        catchRate = 0.70,
        
        rarityModifier = {
            common = 1.0,
            uncommon = 1.2,
            rare = 0.6,
            epic = 0.3,
            legendary = 0.1,
            treasure = 0.7
        }
    },

    minnow = {
        label = 'Live Minnow',
        description = 'Fresh live bait, very attractive to predatory fish.',
        tier = 3,
        
        catchRate = 0.75,
        
        rarityModifier = {
            common = 0.7,
            uncommon = 1.3,
            rare = 1.2,
            epic = 0.6,
            legendary = 0.3,
            treasure = 1.0
        }
    },
    
    nightcrawler = {
        label = 'Nightcrawler',
        description = 'Large worms, excellent for night fishing.',
        tier = 3,
        
        catchRate = 0.70,
        
        rarityModifier = {
            common = 0.6,
            uncommon = 1.0,
            rare = 1.4,
            epic = 0.5,
            legendary = 0.2,
            treasure = 1.2
        }
    },

    bloodworm = {
        label = 'Bloodworm',
        description = 'Premium marine bait, highly effective in saltwater.',
        tier = 4,

        catchRate = 0.80,
        
        rarityModifier = {
            common = 0.6,
            uncommon = 1.1,
            rare = 1.5,
            epic = 1.0, 
            legendary = 0.6
        }
    },
    
    squid = {
        label = 'Fresh Squid',
        description = 'Premium saltwater bait with strong scent attraction.',
        tier = 4,
        
        catchRate = 0.75,
        
        rarityModifier = {
            common = 0.5,
            uncommon = 0.8,
            rare = 1.0,
            epic = 1.5,
            legendary = 0.6,
            treasure = 1.5
        }
    },

    magnet = {
        label = 'Fishing Magnet',
        description = 'A specialized magnet for treasure hunting. Unlikely to catch fish, but great for finding metal treasures.',
        tier = 4,

        catchRate = 0.6,
        
        rarityModifier = {
            common = 0.1,
            uncommon = 0.1,
            rare = 0.1,
            epic = 0.1,
            legendary = 0.1,
            treasure = 9.0
        }
    }
}
listrequiredtable
Table containing all bait type definitions.
list.[baitName]requiredtable
Individual bait configuration where [baitName] is a unique identifier for the bait item.
list.[baitName].labelrequiredstring
Display name for the bait that appears in UI elements and inventory.
list.[baitName].descriptionrequiredstring
Description text explaining what the bait does or its characteristics.
list.[baitName].tierrequirednumber
Tier level of the bait, indicating its quality or rarity (1-4, where higher is better).
list.[baitName].pricenumber
Optional price for the bait if it can be purchased.
list.[baitName].catchRaterequirednumber
Base catch rate multiplier for this bait (0.0-1.0). Higher values increase the overall chance of catching fish.

Rarity Modifier Configuration

Each bait includes a rarityModifier table that adjusts the likelihood of catching fish of different rarities:

list.[baitName].rarityModifierrequiredtable
Table of multipliers that adjust the probability of catching fish of different rarities.
list.[baitName].rarityModifier.commonrequirednumber
Multiplier for catching common fish. Values above 1.0 increase chances, values below 1.0 decrease chances.
list.[baitName].rarityModifier.uncommonrequirednumber
Multiplier for catching uncommon fish. Values above 1.0 increase chances, values below 1.0 decrease chances.
list.[baitName].rarityModifier.rarerequirednumber
Multiplier for catching rare fish. Values above 1.0 increase chances, values below 1.0 decrease chances.
list.[baitName].rarityModifier.epicrequirednumber
Multiplier for catching epic fish. Values above 1.0 increase chances, values below 1.0 decrease chances.
list.[baitName].rarityModifier.legendaryrequirednumber
Multiplier for catching legendary fish. Values above 1.0 increase chances, values below 1.0 decrease chances.
list.[baitName].rarityModifier.treasurenumber
Multiplier for finding treasures while fishing. Values above 1.0 increase chances, values below 1.0 decrease chances.