Lunchbox: Difference between revisions

From PZwiki
m (Added gallery, removed duplicate trivia section and added it to the original section)
m (Distribution table update)
(27 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Languages}}{{Header|The Game World|Items|Baggage|type=Baggage|version=Version 41|incver=78.16}}{{Infobox container
{{Header|Project Zomboid|Items|Equipment|Container items|Handheld containers|type=Baggage}}
| display_name=Lunchbox
{{Page version|41.78.16}}
| name_colour=Container
{{Infobox item
| name_text_colour=Container
|name=Lunchbox
| image = Lunchbox_01_Model.png
|model=Lunchbox_01_Model.png
| alternate_image = Lunchbox01.png
|icon=Lunchbox01.png
| alternate_name = Lunchbox (blue)
|icon_name=Lunchbox (blue)
| alternate_image2 = Lunchbox02.png
|model2=Lunchbox_02_Model.png
| alternate_name2 = Lunchbox (pink)
|icon2=Lunchbox02.png
| category = Container
|icon_name2=Lunchbox (pink)
| weight = 1
|category=Container
| equipped = One-handed
|weight=1
| capacity = 5
|equipped=One-handed
| weight_reduction = 5
|capacity=5
| class_name = Base.Lunchbox Base.Lunchbox2
|weight_reduction=5
}}A '''lunchbox''' is a container [[item]]. The lunchbox has blue and pink colour variants.
|item_id=Base.Lunchbox Base.Lunchbox2
}}
A '''lunchbox''' is a container [[Items|item]]. The lunchbox has blue and pink color variants.


==Usage==
==Usage==
Line 47: Line 49:


==Distribution==
==Distribution==
The loot distributions can be found in the table(s) below.
<!--BOT FLAG|Lunchbox|41.78.16-->
{{clear}}
<div class="togglebox theme-red">
    <div>Lunchbox distribution
        <span class="mw-customtoggle-togglebox-Lunchbox" title="{{int:show}} / {{int:hide}}" style="float:right; padding-right:30px; padding-top:4px; font-size:0.7em; font-weight:normal;">{{int:show}} / {{int:hide}}</span></div>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Lunchbox">
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
    |+ {{ll|Containers}}
    ! Building / Room
    ! Container
    ! Rolls
    ! Chance
    |-
    | Not referenced
    | {{ll|FridgeOffice}}
    | 4
    | 10.0
    |-
    | bathroom
    | {{ll|locker}}
    | 4
    | 1.0
    |-
    | breakroom
    | {{ll|fridge}}
    | 4
    | 10.0
    |-
    | gasstorage
    | {{ll|counter}}
    | 4
    | 10.0
    |-
    | hall
    | {{ll|locker}}
    | 4
    | 2.0
    |}
</div>
    </div><div style="clear:both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Lunchbox" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Lunchbox|41.78.16-->


===Buildings===
===Buildings===
{| class="pztable" style="text-align:center;"
{| class="wikitable theme-red" style="text-align:center;"
|-
|-
!Building/Room
!Building/Room
Line 62: Line 109:
|-
|-
|Break Room
|Break Room
|[[Tiles/Appliances#Refrigerators|Fridge]]
|[[Appliances#Refrigerators|Fridge]]
|4
|4
|10
|10
|-
|-
|Office
|Office
|[[Tiles/Appliances#Refrigerators|Fridge]]
|[[Appliances#Refrigerators|Fridge]]
|4
|4
|10
|10
Line 98: Line 145:
|}
|}
It is worth noting that the pink variant is significantly rarer, with a chance of 0.001 in all possible spawn locations
It is worth noting that the pink variant is significantly rarer, with a chance of 0.001 in all possible spawn locations
==Gallery==
<gallery>
File:Lunchbox_01_Model.png|The blue variant of the lunchbox when placed in the game world.
File:Lunchbox_02_Model.png|The pink variant of the lunchbox when placed in the game world.
</gallery>


==Trivia==
==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.
*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.
*The blue lunchbox model is a based on the logo from [[Wikipedia:Teenage Mutant Ninja Turtles (1987 TV series)|1987 TV series Teenage Mutant Ninja Turtles]].
*The blue lunchbox model is a based on the logo from [[Wikipedia:Teenage Mutant Ninja Turtles (1987 TV series)|1987 TV series Teenage Mutant Ninja Turtles]].
*The pink lunchbox model is an image of [[Will Porter]], a member of [[The Indie Stone]].
==Code==
==Code==
<div class="mw-collapsible-content">'''''From clothing_bags.txt (Project Zomboid directory/media/scripts/clothing)'''''
{{CodeBox|[[File:Lunchbox01.png]] {{ID|Base.Lunchbox}}<br>
[[File:Lunchbox01.png|Lunchbox (blue)]] ''Lunchbox (blue)''
{{CodeSnip
{{Retrieved|version=41|incver=78.16}}
  | lang = java
<pre>     item Lunchbox
  | line = true
  | start = 427
  | source = clothing_bags.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Lunchbox
     {
     {
         DisplayCategory = Container,
         DisplayCategory = Container,
         WeightReduction   =   5,
         WeightReduction = 5,
         Weight   =   1,
         Weight = 1,
         Type   =   Container,
         Type = Container,
         Capacity   =   4,
         Capacity = 4,
         DisplayName   =   Lunchbox,
         DisplayName = Lunchbox,
         Icon   =   Lunchbox01,
         Icon = Lunchbox01,
         OpenSound  =  OpenBag,
         OpenSound  =  OpenBag,
         CloseSound  =  CloseBag,
         CloseSound  =  CloseBag,
Line 129: Line 178:
         WorldStaticModel = LunchBox_Ground,
         WorldStaticModel = LunchBox_Ground,
     }
     }
</pre>
}}
[[File:Lunchbox02.png|Lunchbox (pink)]] ''Lunchbox (pink)''
 
{{Retrieved|version=41|incver=78.16}}
[[File:Lunchbox02.png]] {{ID|Base.Lunchbox2}}<br>
<pre>         item Lunchbox2
{{CodeSnip
  | lang = java
  | line = true
  | start = 444
  | source = clothing_bags.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Lunchbox2
     {
     {
         DisplayCategory = Container,
         DisplayCategory = Container,
         WeightReduction   =   5,
         WeightReduction = 5,
         Weight   =   1,
         Weight = 1,
         Type   =   Container,
         Type = Container,
         Capacity   =   4,
         Capacity = 4,
         DisplayName   =   Lunchbox,
         DisplayName = Lunchbox,
         Icon   =   Lunchbox02,
         Icon = Lunchbox02,
         MetalValue = 15,
         MetalValue = 15,
         ReplaceInSecondHand = Bag_Lunchbox2_LHand holdingbagleft,
         ReplaceInSecondHand = Bag_Lunchbox2_LHand holdingbagleft,
Line 146: Line 203:
         WorldStaticModel = LunchBox2_Ground,
         WorldStaticModel = LunchBox2_Ground,
     }
     }
</pre>
}}
}}


==See also==
==See also==
*[[Bags]]
*[[Bags]]


{{Navbox equipment}}
{{Navbox items|containers}}

Revision as of 15:57, 24 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Lunchbox
Lunchbox 01 Model.png
Lunchbox 02 Model.png
General
Category
Container
Encumbrance
Moodle Icon HeavyLoad.png
1 (empty)
5.05 (full)
Equipped
One-handed
Properties
Capacity
5
Technical
Item ID
Base.Lunchbox Base.Lunchbox2

A lunchbox is a container item. The lunchbox has blue and pink color 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

The loot distributions can be found in the table(s) below.

Lunchbox distribution Show / Hide
Containers
Building / Room Container Rolls Chance
Not referenced FridgeOffice 4 10.0
bathroom locker 4 1.0
breakroom fridge 4 10.0
gasstorage counter 4 10.0
hall locker 4 2.0

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

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Lunchbox01.png Base.Lunchbox
Source: ProjectZomboid\media\scripts\clothing\clothing_bags.txt

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,
    }

Lunchbox02.png Base.Lunchbox2
Source: ProjectZomboid\media\scripts\clothing\clothing_bags.txt

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,
    }

See also