Gas Can: Difference between revisions

From PZwiki
(A recent update changed percent at which a generator tank is filled)
(Added boilerplate, code, crafting, see also. Changed icon. Rewrote description, including the use with vehicles.)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{languages|Gas Can}}
{{languages|Gas Can}}
{{header|The Game World|Items|version=Version 39|incver=52}}
{{Tools
| primaryuse = Carry Petrol
| otheruses = Start Fires
| image = Petrol_120px.png
| weight = 5<br>'''Weight Empty:''' 0.3
}}
The '''gas can''' is a ''drainable'' item that has an empty variant. A gas can is full of petroleum which can be poured into [[vehicles]], filling their 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. 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.
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.
An empty gas can ''cannot'' be filled with water.
== Crafting ==
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="wikitable sortable" style="text-align:center;"
|-
! Output
! class="unsortable" | Ingredients
! class="unsortable" | Description
! Skill Level
{{RecipeLookup|3007}}
{{RecipeLookup|7013}}
|}


{{Items
| image = Petrol.png
| weight = 5
}}


==Description==
== Code ==
A gas can is a can full of petroleum. Currently, gas cans can be found in [[crate]]s in the various storage buildings, sheds and garages, and rarely in trash cans. They can be found full or empty. Can be used to craft a [[Molotov cocktail]] by combining it with an empty [[Empty_Bottle_(Whiskey)|whiskey bottle]] and adding a [[bandage]], a pair of [[socks]], or a [[dish towel]]. Also used to light [[Campfire|campfires]].
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
 
''Gas Can'' [[File:Petrol.png|link=]]
<nowiki>
item PetrolCan
Weight = 5,
Type = Drainable,
UseWhileEquipped = FALSE,
UseDelta = 0.125,
DisplayName = Gas Can,
Icon = Petrol,
ReplaceOnDeplete = EmptyPetrolCan,
</nowiki>


Gas cans can be used to fuel [[Generator|generators]]. One full gas can refills 80% of a generator's fuel tank as of version 37.13.


Empty gas cans can be refilled at any gas station before Electricity Shutoff happens. It is not possible to power gas pumps from that point on, even when using a generator to power a gas station.
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''


Empty gas cans cannot be used for water.
''Empty Gas Can'' [[File:Petrol.png|link=]]
<nowiki>
item EmptyPetrolCan
Weight = 0.3,
Type = Normal,
DisplayName = Empty Gas Can,
Icon = Petrol,
</nowiki>


==Code==
<nowiki>item PetrolCan
{
Weight = 5,
Type = Drainable,
UseWhileEquipped = FALSE,
UseDelta = 0.125,
DisplayName = Gas Can,
Icon = Petrol,
}</nowiki>


==History==
==History==
{| class="wikitable" width="550" style="text-align:center;"
{| class="wikitable" width="550" style="text-align:center;"
|-
|-
! Alpha ||  
! colspan="2" | Alpha   
|-
|-
| RC 2.9 || Serves no purpose with Fire removed in this version.  
| RC 2.9 || Serves no purpose with Fire removed in this version.  
|-
|}
|}


==See Also==
*[[Vehicles]]
*[[Generator]]
*[[Fire]]


{{Navbox/Tools}}
{{Navbox/Tools}}

Revision as of 16:05, 2 May 2018


Template:Tools The gas can is a drainable item that has an empty variant. A gas can is full of petroleum 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. 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.

A gas can can be used in place of kindling when starting a fire, along with being added as a source of fuel to a fire. 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.

An empty gas can cannot be filled with water.


Crafting

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

Output Ingredients Description Skill Level

























Code

From items.txt (Project Zomboid directory/media/scripts/)

Gas Can Petrol.png

	item PetrolCan
		Weight			= 5,
		Type			= Drainable,
		UseWhileEquipped	= FALSE,
		UseDelta		= 0.125,
		DisplayName		= Gas Can,
		Icon			= Petrol,
		ReplaceOnDeplete	= EmptyPetrolCan,


From newitems.txt (Project Zomboid directory/media/scripts/)

Empty Gas Can Petrol.png

	item EmptyPetrolCan
		Weight		= 0.3,
		Type		= Normal,
		DisplayName	= Empty Gas Can,
		Icon		= Petrol,


History

Alpha
RC 2.9 Serves no purpose with Fire removed in this version.


See Also

Template:Navbox/Tools