Gas Can: Difference between revisions

From PZwiki
No edit summary
(Updated to build 41.51)
Line 1: Line 1:
{{languages}}
{{languages}}
{{header|The Game World|Items|type=Tool|version=Version 40|incver=43}}{{Infobox drainable
{{header|The Game World|Items|type=Tool|version=Version 41|incver=51}}{{Infobox drainable
|display_name=Gas Can
|display_name=Gas Can
|name_colour=Tool
|name_colour=Tool
Line 9: Line 9:
|alternate_name=Gas Can
|alternate_name=Gas Can
|alternate_link=
|alternate_link=
|weight=5 <small>(0.3 empty)</small>
|weight=5 <small>(Full)</small><br>1.6 <small>(Empty)</small>
|primary_use=Refuel [[vehicles]] and [[generator]]s
|primary_use=&bull;Refuel [[vehicles|vehicle]] and [[generator]]
|secondary_use=Start [[fire]]s
|secondary_use=&bull;Start [[fire]]
|max_units=8
|max_units=8
|contents=Gasoline
|contents=Gasoline
|class_name=Base.PetrolCan<br><small>(Empty: Base.EmptyPetrolCan)</small>
|class_name=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.  
Line 30: Line 30:
===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 header|ing=3}}
|-
{{Crafting general|008|ing=3}}
! Output
{{Crafting electrical|302|ing=3}}
! class="unsortable" | Ingredients
! class="unsortable" | Description
! Skill Level
{{RecipeLookup|3007}}
{{RecipeLookup|7013}}
|}
|}


== Code ==
== Code ==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''<br>
 
''Gas Can'' [[File:Petrol.png|link=]]
''Gas Can'' [[File:Petrol.png|link=]]
{{Retrieved|version=39|incver=67.5}}
{{Retrieved|version=41|incver=51}}
<nowiki>
<pre> item PetrolCan
item PetrolCan
{
Weight = 5,
Weight = 5,
Type = Drainable,
Type = Drainable,
UseWhileEquipped = FALSE,
UseWhileEquipped = FALSE,
UseDelta = 0.125,
UseDelta = 0.125,
DisplayName = Gas Can,
DisplayName = Gas Can,
Icon = Petrol,
Icon = Petrol,
ReplaceOnDeplete = EmptyPetrolCan,
ReplaceOnDeplete = EmptyPetrolCan,
</nowiki>
StaticModel = GasCan,
 
ReplaceInSecondHand = Bag_GasCan_LHand holdingbagleft,
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
ReplaceInPrimaryHand = Bag_GasCan_RHand holdingbagright,
}</pre>


'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''<br>
''Empty Gas Can'' [[File:Petrol.png|link=]]
''Empty Gas Can'' [[File:Petrol.png|link=]]
{{Retrieved|version=39|incver=67.5}}
{{Retrieved|version=41|incver=51}}
<nowiki>
<pre> item EmptyPetrolCan
item EmptyPetrolCan
{
Weight = 0.3,
Weight = 1.6,
Type = Normal,
Type = Normal,
DisplayName = Empty Gas Can,
DisplayName = Empty Gas Can,
Icon = Petrol,
Icon = Petrol,
</nowiki>
StaticModel = GasCan,
SurvivalGear = TRUE,
ReplaceInSecondHand = Bag_GasCan_LHand holdingbagleft,
ReplaceInPrimaryHand = Bag_GasCan_RHand holdingbagright,
}</pre>


==See also==
==See also==

Revision as of 11:50, 22 July 2021

Gas Can
Gas Can
Gas Can
General
Category Item
Encumbrance
Heavy Load
5 (Full)
1.6 (Empty)
Function •Refuel vehicle and generator
•Start fire
Capacity 8 units
Contents Gasoline
Technical details
item ID Base.PetrolCan
Base.EmptyPetrolCan

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

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. It should be noted that without a source of power, a gas pump will not function.

Fuel

A gas can contains 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 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.

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 XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3
Molotov.png
Molotov Cocktail
0 XP none
(consumed)
Petrol.png
Gas Can
(1 unit)

(consumed)

(consumed)
BottleWithGas.png
Fire Bomb
0 XP none Engineer Empty Bottle
Empty Bottle
(consumed)
Petrol.png
Gas Can
(4 units)

(consumed)
Rag.png
Ripped Sheets
(consumed)

Code

From items.txt (Project Zomboid directory/media/scripts/)
Gas Can Petrol.png Retrieved: Build 41.51

	item PetrolCan
	{
	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,
	}

From newitems.txt (Project Zomboid directory/media/scripts/)
Empty Gas Can Petrol.png Retrieved: Build 41.51

	item EmptyPetrolCan
	{
	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,
	}

See also

Template:Navbox/Tools