Lunchbox: Difference between revisions

From PZwiki
m (Automated spelling changes)
m (Distribution table update)
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Languages}}
{{Header|Project Zomboid|Items|Equipment|Container items|Handheld containers|type=Baggage}}
{{Header/sandbox2|Project Zomboid|Items|Equipment|Container items|Handheld containers|type=Baggage|version=Version 41|incver=78.16}}
{{Page version|41.78.16}}
{{Infobox item
{{Infobox item
| name=Lunchbox
|name=Lunchbox
| name_colour=Container
|model=Lunchbox_01_Model.png
| name_text_colour=Container
|icon=Lunchbox01.png
| model = Lunchbox_01_Model.png
|icon_name=Lunchbox (blue)
| icon = Lunchbox01.png
|model2=Lunchbox_02_Model.png
| icon_name = Lunchbox (blue)
|icon2=Lunchbox02.png
| icon2 = Lunchbox02.png
|icon_name2=Lunchbox (pink)
| icon_name2 = Lunchbox (pink)
|category=Container
| category = Container
|weight=1
| weight = 1
|equipped=One-handed
| equipped = One-handed
|capacity=5
| capacity = 5
|weight_reduction=5
| weight_reduction = 5
|item_id=Base.Lunchbox Base.Lunchbox2
| item_id = Base.Lunchbox Base.Lunchbox2
}}
}}A '''lunchbox''' is a container [[item]]. The lunchbox has blue and pink color variants.
A '''lunchbox''' is a container [[Items|item]]. The lunchbox has blue and pink color variants.


==Usage==
==Usage==
Line 48: Line 48:
|}
|}


{{clear}}
==Distribution==
==Distribution==
The loot distributions can be found in the table(s) below.
The loot distributions can be found in the table(s) below.


{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
<!--BOT FLAG|Lunchbox|41.78.16-->
! colspan="4" | Containers
{{clear}}
|-
<div class="togglebox theme-red">
!Building/Room
    <div>Lunchbox distribution
!Container
        <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>
! style="width: 3.2em;" |Rolls
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Lunchbox">
! style="width: 3.2em;" |Chance
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
|-
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
| rowspan="4"|bathroom
    |+ {{ll|Containers}}
| [[locker]]
    ! Building / Room
| 4
    ! Container
| 1
    ! Rolls
|-
    ! Chance
|[[locker]]
    |-
|4
    | Not referenced
|1
    | {{ll|FridgeOffice}}
|-
    | 4
|[[locker]]
    | 10.0
|4
    |-
|1
    | bathroom
|-
    | {{ll|locker}}
|[[locker]]
    | 4
|4
    | 1.0
|1
    |-
|-
    | breakroom
| breakroom  
    | {{ll|fridge}}
| [[fridge]]
    | 4
| 4  
    | 10.0
| 1
    |-
|-
    | gasstorage
| gasstorage  
    | {{ll|counter}}
| [[counter]]
    | 4
| 4  
    | 10.0
| 1
    |-
|-
    | hall
| hall  
    | {{ll|locker}}
| [[locker]]
    | 4
| 4  
    | 2.0
| 2
    |}
|}
</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===
Line 143: 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==
Line 156: Line 152:


==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 176: 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 193: 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