Gas Can: Difference between revisions

From PZwiki
(added model to infobox)
(Add distribution table)
 
(39 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{languages}}
{{Header|Project Zomboid|Items|Equipment|Tools|Mechanic tools}}
{{header|The Game World|Items|type=Tool|version=Version 39|incver=67.5}}{{Infobox drainable
{{Page version|41.78.16}}
|display_name=Gas Can
{{Infobox item
|name_colour=Tool
|name=Gas Can
|name_text_colour=Tool
|model=GasCan_Model.png
|image=GasCan_Model.png
|icon=Petrol.png
|image_width=300px
|icon_name=Gas Can
|alternate_image=Petrol.png
|weight=5 <small>(Full)</small><br>1.6 <small>(Empty)</small>
|alternate_name=Gas Can
|primary_use=Refuel [[vehicles|vehicle]] and [[generator]]
|alternate_link=
|secondary_use=Start [[fire]]
|weight=5 <small>(0.3 empty)</small>
|primary_use=Refuel [[vehicles]] and [[generator]]s
|secondary_use=Start [[fire]]s
|max_units=8
|max_units=8
|contents=Gasoline
|contents=Gasoline
|class_name=Base.PetrolCan<br><small>(Empty: Base.EmptyPetrolCan)</small>
|item_id=Base.PetrolCan<br>Base.EmptyPetrolCan
}}
}}
A '''gas can''' is a ''drainable'' item that becomes an '''empty gas can''' once used.  
A '''gas can''' is a ''drainable'' item that becomes an '''empty gas can''' once used.


==Usage==
==Usage==
===Refilling===
An empty gas can ''only'' be filled with gasoline and therefore ''cannot'' be filled with water. It is possible to refill a gas can by either siphoning gas from a vehicle, or at a [[Gas Pump|gas pump]]. It should be noted that without a source of power, a gas pump will not function.
===Fuel===
===Fuel===
A gas can contains gasoline which can be poured into [[vehicles]], filling their [[Gas Tank|gas tank]]. Along with vehicles, it is also the primary source of fuel for [[generator]]s. One full gas can will refill 80% of a generator's fuel tank.  
A gas can contain gasoline which can be poured into [[vehicles]], filling their [[Gas Tank|gas tank]]. Along with vehicles, it is also the primary source of fuel for [[generator]]s. One full gas can will refill 80% of a generator's fuel tank.


===Fire starting===
===Fire starting===
A gas can can be used in place of [[Items#Kindling|kindling]] when starting a fire, along with being added as a source of [[Items#Fuel|fuel]] to a fire. Having a gas can in the secondary slot, with a [[lighter]] in the primary, it is possible to burn [[corpse]]s, removing any negative [[moodles]] that are caused by their presence.  
A gas can be used as a kindling when starting a [[campfire]]. Having a gas can in the secondary slot, with a [[lighter]] in the primary, it is possible to burn [[corpse]]s, removing any negative [[moodles]] that are caused by their presence.
 
===Refilling===
It is possible to refill a gas can by either siphoning gas from a vehicle, or at a [[gas pump]]. It should be noted that without a source of power, a gas pump will not function. An empty gas can can only be filled with gasoline, and cannot be used to store water.


===Recipes===
===Recipes===
A full gas can is used in crafting [[Molotov Cocktail|molotov cocktails]] and [[Flame Trap|flame traps]]. Note that the flame trap can only be crafted by those with the [[Occupation#Engineer|engineer occupation]], and cannot be learnt with a [[Recipe Magazines|recipe magazine]].
A full gas can is used in crafting [[Molotov Cocktail|Molotov cocktails]] and [[Flame Trap|flame traps]]. Note that the flame trap can only be crafted by those with the [[Occupation#Engineer|engineer occupation]], and cannot be learnt with a [[Recipe magazines|recipe magazine]].
{| class="pztable sortable" style="text-align:center;"
{{Crafting/sandbox2
|-
|molotov_cocktail_gas
! Output
|fire_bomb
! class="unsortable" | Ingredients
}}
! class="unsortable" | Description
! Skill Level
{{RecipeLookup|3007}}
{{RecipeLookup|7013}}
|}


== Code ==
==Distribution==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
The loot distributions can be found in the table(s) below.


''Gas Can'' [[File:Petrol.png|link=]]
<!--BOT FLAG|EmptyPetrolCan|41.78.16-->
{{Retrieved|version=39|incver=67.5}}
{{Clear}}
<nowiki>
<div class="togglebox theme-red">
item PetrolCan
    <div>EmptyPetrolCan distribution
Weight = 5,
        <span class="mw-customtoggle-togglebox-EmptyPetrolCan" 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>
Type = Drainable,
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-EmptyPetrolCan">
UseWhileEquipped = FALSE,
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
UseDelta = 0.125,
<div class="pz-container">
DisplayName = Gas Can,
<div id="containers" style="flex-basis: 30%;">
Icon = Petrol,
    {| class="wikitable theme-red sortable" style="margin-right: 15px; width: 95%;"
ReplaceOnDeplete = EmptyPetrolCan,
    |+ {{ll|Containers}}
</nowiki>
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | all
    | {{ll|toolcabinet}}
    | 23.28%
    |-
    | carsupply
    | {{ll|counter}}
    | 23.28%
    |-
    | carsupply
    | {{ll|counter}}
    | 41.14%
    |-
    | carsupply
    | {{ll|shelves}}
    | 23.28%
    |-
    | carsupply
    | {{ll|shelves}}
    | 41.14%
    |-
    | closet
    | {{ll|crate}}
    | 23.28%
    |-
    | conveniencestore
    | {{ll|shelves}}
    | 23.28%
    |-
    | cornerstore
    | {{ll|shelves}}
    | 23.28%
    |-
    | fossoil
    | {{ll|shelves}}
    | 23.28%
    |-
    | garagestorage
    | {{ll|counter}}
    | 23.28%
    |-
    | garagestorage
    | {{ll|counter}}
    | 41.14%
    |-
    | garagestorage
    | {{ll|crate}}
    | 23.28%
    |-
    | garagestorage
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | garagestorage
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | gasstorage
    | {{ll|crate}}
    | 23.28%
    |-
    | gasstorage
    | {{ll|crate}}
    | 41.14%
    |-
    | gasstorage
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | gasstorage
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | gasstore
    | {{ll|shelves}}
    | 23.28%
    |-
    | generalstore
    | {{ll|shelves}}
    | 23.28%
    |-
    | generalstorestorage
    | {{ll|shelves}}
    | 23.28%
    |-
    | storageunit
    | {{ll|crate}}
    | 23.28%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | zippeestore
    | {{ll|shelves}}
    | 23.28%
    |}
</div>
<div id="vehicles" style="flex-basis: 30%;">
    {| class="wikitable theme-red sortable" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Vehicles}}
    ! Type
    ! Container
    ! Effective chance
    |-
    | Ambulance
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Carpenter
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Clothing
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Construction Worker
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Distillery
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Doctor
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Electrician
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Farmer
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Fire
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Fisherman
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Fossoil
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Fossoil
    | {{ll|Truck Bed}}
    | 41.14%
    |-
    | Fossoil
    | {{ll|Truck Bed}}
    | 76.55%
    |-
    | Golf
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Groceries
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Heralds
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Mass Gen Fac
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | McCoy
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Metal Welder
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Painter
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Police
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Postal
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Radio
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Ranger
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Survivalist
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Taxi
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Transit
    | {{ll|Truck Bed}}
    | 23.28%
    |-
    | Heavy
    | {{ll|Trunk}}
    | 23.28%
    |-
    | Sports
    | {{ll|Trunk}}
    | 23.28%
    |-
    | Standard
    | {{ll|Trunk}}
    | 23.28%
    |}
</div>
    </div><div style="clear: both;"></div>
    {| class="wikitable theme-red" style="width: 98%;"
    |+ {{ll|Foraging}}
    ! rowspan="2" | Amount
    ! rowspan="2" | Skill level
    ! rowspan="2" | Biomes
    ! colspan="4" style="text-align: center;" | Weather modifiers
    ! colspan="3" style="text-align: center;" | Month modifiers
    |-
    ! Snow
    ! Rain
    ! Day
    ! Night
    ! Months available
    ! Bonus months
    ! Malus months
    |-
    | 1
    | 0
    | all with 1 chance
    | -
    | -
    | -
    | -
    | all
    | -
    | -
    |}
    </div></div><div class="toggle large mw-customtoggle-togglebox-EmptyPetrolCan" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|EmptyPetrolCan|41.78.16-->


'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
<!--BOT FLAG|PetrolCan|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>PetrolCan distribution
        <span class="mw-customtoggle-togglebox-PetrolCan" 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-PetrolCan">
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
<div class="pz-container">
<div id="containers" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | garagestorage
    | {{ll|counter}}
    | 2.81%
    |-
    | garagestorage
    | {{ll|metal_shelves}}
    | 2.81%
    |}
</div>
<div id="vehicles" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Vehicles}}
    ! Type
    ! Container
    ! Effective chance
    |-
    | Fossoil
    | {{ll|Truck Bed}}
    | 10.78%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-PetrolCan" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|PetrolCan|41.78.16-->


''Empty Gas Can'' [[File:Petrol.png|link=]]
==Code==
{{Retrieved|version=39|incver=67.5}}
{{CodeBox|[[File:Petrol.png|link=]] {{ID|PetrolCan}}<br>
<nowiki>
{{CodeSnip
item EmptyPetrolCan
  | lang = java
Weight = 0.3,
  | line = true
Type = Normal,
  | start = 1086
DisplayName = Empty Gas Can,
  | source = items.txt
Icon = Petrol,
  | retrieved = true
</nowiki>
  | version = 41.78.16
  | code =
item PetrolCan
{
    DisplayCategory = VehicleMaintenance,
Weight = 5,
Type = Drainable,
UseWhileEquipped = FALSE,
UseDelta = 0.125,
DisplayName = Gas Can,
Icon = Petrol,
ReplaceOnDeplete = EmptyPetrolCan,
StaticModel = GasCan,
ReplaceInSecondHand = Bag_GasCan_LHand holdingbagleft,
        ReplaceInPrimaryHand = Bag_GasCan_RHand holdingbagright,
        WorldStaticModel = GasCan_Ground,
Tags = Petrol,
}
}}
 
[[File:Petrol.png|link=]] {{ID|EmptyPetrolCan}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 47
  | source = newitems.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item EmptyPetrolCan
{
    DisplayCategory = VehicleMaintenance,
Weight = 1.6,
Type = Normal,
DisplayName = Empty Gas Can,
Icon = Petrol,
StaticModel = GasCan,
SurvivalGear = TRUE,
ReplaceInSecondHand = Bag_GasCan_LHand holdingbagleft,
        ReplaceInPrimaryHand = Bag_GasCan_RHand holdingbagright,
        WorldStaticModel = GasCan_Ground,
        Tags = EmptyPetrol,
        ReplaceTypes = PetrolSource PetrolCan,
}
}}
}}


==See also==
==See also==
Line 73: Line 406:
*[[Fire]]
*[[Fire]]


{{Navbox/Tools}}
{{Navbox items|equipment}}
 
[[Category:Tools]]
[[Category:Tools]]

Latest revision as of 04:43, 5 May 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Gas Can
GasCan Model.png
General
Encumbrance
Moodle Icon HeavyLoad.png
5 (Full)
1.6 (Empty)
Function
Refuel vehicle and generator
Start fire
Properties
Contents
Gasoline
Capacity
8 units
Technical
Item ID
Base.PetrolCan
Base.EmptyPetrolCan

A gas can is a drainable item that becomes an empty gas can once used.

Usage

Fuel

A gas can contain gasoline which can be poured into vehicles, filling their gas tank. Along with vehicles, it is also the primary source of fuel for generators. One full gas can will refill 80% of a generator's fuel tank.

Fire starting

A gas can be used as a kindling when starting a campfire. Having a gas can in the secondary slot, with a lighter in the primary, it is possible to burn corpses, removing any negative moodles that are caused by their presence.

Refilling

It is possible to refill a gas can by either siphoning gas from a vehicle, or at a gas pump. It should be noted that without a source of power, a gas pump will not function. An empty gas can can only be filled with gasoline, and cannot be used to store water.

Recipes

A full gas can is used in crafting Molotov cocktails and flame traps. Note that the flame trap can only be crafted by those with the engineer occupation, and cannot be learnt with a recipe magazine.

Product Ingredients Tools Requirements Workstation XP
Molotov.png
Molotov Cocktail
One of:
WhiskeyEmpty.png Empty Bottle (disambiguation) ×1
WineEmpty.png Empty Bottle (disambiguation) ×1
Wine2Empty.png Empty Bottle (disambiguation) ×1
One of:
Rag.png Ripped Sheets ×1
RagDirty.png Dirty Rag ×1
Petrol.png
Gas Can
none none none
BottleWithGas.png
Fire Bomb
WaterBottle Empty.png Empty Bottle ×1
Petrol.png Gas Can ×4 unit(s)
Rag.png Ripped Sheets ×1
none
Profession engineer.png
Engineer occupation
none none

Distribution

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

EmptyPetrolCan distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
all toolcabinet 23.28%
carsupply counter 23.28%
carsupply counter 41.14%
carsupply shelves 23.28%
carsupply shelves 41.14%
closet crate 23.28%
conveniencestore shelves 23.28%
cornerstore shelves 23.28%
fossoil shelves 23.28%
garagestorage counter 23.28%
garagestorage counter 41.14%
garagestorage crate 23.28%
garagestorage metal_shelves 23.28%
garagestorage metal_shelves 41.14%
gasstorage crate 23.28%
gasstorage crate 41.14%
gasstorage metal_shelves 23.28%
gasstorage metal_shelves 41.14%
gasstore shelves 23.28%
generalstore shelves 23.28%
generalstorestorage shelves 23.28%
storageunit crate 23.28%
storageunit metal_shelves 23.28%
zippeestore shelves 23.28%
Vehicles
Type Container Effective chance
Ambulance Trunk 23.28%
Carpenter Trunk 23.28%
Clothing Trunk 23.28%
Construction Worker Trunk 23.28%
Distillery Trunk 23.28%
Doctor Trunk 23.28%
Electrician Trunk 23.28%
Farmer Trunk 23.28%
Fire Trunk 23.28%
Fisherman Trunk 23.28%
Fossoil Trunk 23.28%
Fossoil Trunk 41.14%
Fossoil Trunk 76.55%
Golf Trunk 23.28%
Groceries Trunk 23.28%
Heralds Trunk 23.28%
Mass Gen Fac Trunk 23.28%
McCoy Trunk 23.28%
Metal Welder Trunk 23.28%
Painter Trunk 23.28%
Police Trunk 23.28%
Postal Trunk 23.28%
Radio Trunk 23.28%
Ranger Trunk 23.28%
Survivalist Trunk 23.28%
Taxi Trunk 23.28%
Transit Trunk 23.28%
Heavy Trunk 23.28%
Sports Trunk 23.28%
Standard Trunk 23.28%
Foraging
Amount Skill level Biomes Weather modifiers Month modifiers
Snow Rain Day Night Months available Bonus months Malus months
1 0 all with 1 chance - - - - all - -
PetrolCan distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
garagestorage counter 2.81%
garagestorage metal_shelves 2.81%
Vehicles
Type Container Effective chance
Fossoil Trunk 10.78%

Code

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

Petrol.png PetrolCan
Source: ProjectZomboid\media\scripts\items.txt

Retrieved: Build 41.78.16
item PetrolCan
	{
	    DisplayCategory = VehicleMaintenance,
		Weight	=	5,
		Type	=	Drainable,
		UseWhileEquipped	=	FALSE,
		UseDelta	=	0.125,
		DisplayName	=	Gas Can,
		Icon	=	Petrol,
		ReplaceOnDeplete	=	EmptyPetrolCan,
		StaticModel = GasCan,
		ReplaceInSecondHand = Bag_GasCan_LHand holdingbagleft,
        ReplaceInPrimaryHand = Bag_GasCan_RHand holdingbagright,
        WorldStaticModel = GasCan_Ground,
		Tags = Petrol,
	}

Petrol.png EmptyPetrolCan
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item EmptyPetrolCan
	{
	    DisplayCategory = VehicleMaintenance,
		Weight	=	1.6,
		Type	=	Normal,
		DisplayName	=	Empty Gas Can,
		Icon	=	Petrol,
		StaticModel = GasCan,
		SurvivalGear = TRUE,
		ReplaceInSecondHand = Bag_GasCan_LHand holdingbagleft,
        ReplaceInPrimaryHand = Bag_GasCan_RHand holdingbagright,
        WorldStaticModel = GasCan_Ground,
        Tags = EmptyPetrol,
        ReplaceTypes = PetrolSource PetrolCan,
	}

See also