Lunchbox

From PZwiki
Revision as of 15:28, 29 April 2023 by Faalagorn (talk | contribs) (Bump to .16, add trivia)

Template:Infobox containerA lunchbox is a container item. The lunchbox has blue and pink colour variants.

Usage

A lunchbox cannot be equipped on the player's back. It has the same capacity and weight reduction as the First Aid Kit. It must be equipped in one of the player's hands to be accessed.

Lunchboxes can spawn with (build 41):

Apple.png Apple Banana.png Banana
BeefJerky.png Beef Jerky Burrito.png Burrito
Sandwich cheese.png Cheese Sandwich Sandwich peanut.png Peanut Butter Sandwich
Chocolate.png Chocolate CinnamonRoll.png Cinnamon Roll
CookieChocolateChip.png Chocolate Chip Cookie DehydratedMeatStick.png Dehydrated Meat Stick
DoughnutPlain.png Doughnut GranolaBar.png Granola Bar
MuffinFruit.png Fruit Muffin Orange.png Orange
Pretzel.png Pretzel Yoghurt.png Yogurt

Distribution

Buildings

Building/Room Container Rolls Chance
Fire Department Locker 4 1
Break Room Fridge 4 10
Office Fridge 4 10
Hospital Locker 4 1
Janitorial Room Other 4 10
Police Department Locker 4 1
Prison Locker 4 1
School Locker 4 2

It is worth noting that the pink variant is significantly rarer, with a chance of 0.001 in all possible spawn locations

Trivia

Interestingly, the pink variant of the lunchbox appears to not make any sound when accessed, unlike the blue variant, which plays the generic bag sound.

Code

From clothing_bags.txt (Project Zomboid directory/media/scripts/clothing)

Lunchbox (blue) Lunchbox (blue) Retrieved: Build 41.78.16

	    item Lunchbox
    {
        DisplayCategory = Container,
        WeightReduction    =    5,
        Weight    =    1,
        Type    =    Container,
        Capacity    =    4,
        DisplayName    =    Lunchbox,
        Icon    =    Lunchbox01,
        OpenSound   =   OpenBag,
        CloseSound   =   CloseBag,
        PutInSound   =   PutItemInBag,
        MetalValue = 15,
        ReplaceInSecondHand = Bag_Lunchbox_LHand holdingbagleft,
        ReplaceInPrimaryHand = Bag_Lunchbox_RHand holdingbagright,
        WorldStaticModel = LunchBox_Ground,
    }

Lunchbox (pink) Lunchbox (pink) Retrieved: Build 41.78.16

	        item Lunchbox2
    {
        DisplayCategory = Container,
        WeightReduction    =    5,
        Weight    =    1,
        Type    =    Container,
        Capacity    =    4,
        DisplayName    =    Lunchbox,
        Icon    =    Lunchbox02,
        MetalValue = 15,
        ReplaceInSecondHand = Bag_Lunchbox2_LHand holdingbagleft,
        ReplaceInPrimaryHand = Bag_Lunchbox2_RHand holdingbagright,
        WorldStaticModel = LunchBox2_Ground,
    }

Trivia

See also