Gas Can: Difference between revisions

From PZwiki
m (→‎Recipes: clean up, replaced: wikitable → pztable)
m (Distribution table update)
(35 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{languages|Gas Can}}
{{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=Petrol_120px.png
|icon=Petrol.png
|weight=5 <small>(0.3 empty)</small>
|icon_name=Gas Can
|primary_use=Refuel [[vehicles]] and [[generator]]s
|weight=5 <small>(Full)</small><br>1.6 <small>(Empty)</small>
|secondary_use=Start [[fire]]s
|primary_use=Refuel [[vehicles|vehicle]] and [[generator]]
|secondary_use=Start [[fire]]
|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
}}
}}
The '''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|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|PetrolCan|41.78.16-->
{{Retrieved|version=39|incver=67.5}}
{{clear}}
<nowiki>
<div class="togglebox theme-red">
item PetrolCan
    <div>PetrolCan distribution
Weight = 5,
        <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>
Type = Drainable,
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-PetrolCan">
UseWhileEquipped = FALSE,
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
UseDelta = 0.125,
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
DisplayName = Gas Can,
    |+ {{ll|Containers}}
Icon = Petrol,
    ! Building / Room
ReplaceOnDeplete = EmptyPetrolCan,
    ! Container
</nowiki>
    ! Rolls
    ! Chance
    |-
    | garagestorage
    | {{ll|counter}}
    | 4
    | 0.5
    |}
</div>
<div style="float:left;">
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
    |+ {{ll|Vehicles}}
    ! Vehicle Type/Location
    ! Rolls
    ! Chance
    |-
    | FossoilTruckBed
    | 4
    | 4
    |}
</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-->


'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
==Code==
{{CodeBox|[[File:Petrol.png|link=]] {{ID|PetrolCan}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 1086
  | source = items.txt
  | retrieved = true
  | 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,
}
}}


''Empty Gas Can'' [[File:Petrol.png|link=]]
[[File:Petrol.png|link=]] {{ID|EmptyPetrolCan}}<br>
{{Retrieved|version=39|incver=67.5}}
{{CodeSnip
<nowiki>
  | lang = java
item EmptyPetrolCan
  | line = true
Weight = 0.3,
  | start = 47
Type = Normal,
  | source = newitems.txt
DisplayName = Empty Gas Can,
  | retrieved = true
Icon = Petrol,
  | version = 41.78.16
</nowiki>
  | 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 69: Line 131:
*[[Fire]]
*[[Fire]]


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

Revision as of 15:36, 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]
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.

PetrolCan distribution Show / Hide
Containers
Building / Room Container Rolls Chance
garagestorage counter 4 0.5
Vehicles
Vehicle Type/Location Rolls Chance
FossoilTruckBed 4 4

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