Gas Can: Difference between revisions
(added model to infobox) |
(Add distribution table) |
||
(39 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Items|Equipment|Tools|Mechanic tools}} | ||
{{ | {{Page version|41.78.16}} | ||
| | {{Infobox item | ||
| | |name=Gas Can | ||
|model=GasCan_Model.png | |||
|icon=Petrol.png | |||
| | |icon_name=Gas Can | ||
|weight=5 <small>(Full)</small><br>1.6 <small>(Empty)</small> | |||
| | |primary_use=Refuel [[vehicles|vehicle]] and [[generator]] | ||
|secondary_use=Start [[fire]] | |||
|weight=5 <small>( | |||
|primary_use=Refuel [[vehicles]] and [[generator]] | |||
|secondary_use=Start [[fire]] | |||
|max_units=8 | |max_units=8 | ||
|contents=Gasoline | |contents=Gasoline | ||
| | |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== | ||
===Fuel=== | ===Fuel=== | ||
A gas can | 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 | 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| | 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]]. | ||
{ | {{Crafting/sandbox2 | ||
| | |molotov_cocktail_gas | ||
|fire_bomb | |||
}} | |||
== | ==Distribution== | ||
The loot distributions can be found in the table(s) below. | |||
<!--BOT FLAG|EmptyPetrolCan|41.78.16--> | |||
{{ | {{Clear}} | ||
<div class="togglebox theme-red"> | |||
<div>EmptyPetrolCan distribution | |||
<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> | |||
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-EmptyPetrolCan"> | |||
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 sortable" style="margin-right: 15px; width: 95%;" | |||
|+ {{ll|Containers}} | |||
< | ! 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--> | |||
<!--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--> | |||
==Code== | |||
{{ | {{CodeBox|[[File:Petrol.png|link=]] {{ID|PetrolCan}}<br> | ||
{{CodeSnip | |||
| lang = java | |||
Weight | | line = true | ||
Type | | start = 1086 | ||
DisplayName = Empty Gas Can, | | source = items.txt | ||
Icon | | 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, | |||
} | |||
}} | |||
[[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 | {{Navbox items|equipment}} | ||
[[Category:Tools]] | [[Category:Tools]] |
Latest revision as of 04:43, 5 May 2024
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 Cocktail |
One of: Empty Bottle (disambiguation) ×1 Empty Bottle (disambiguation) ×1 Empty Bottle (disambiguation) ×1 One of: Ripped Sheets ×1 Dirty Rag ×1 |
Gas Can |
none | none | none |
Fire Bomb |
Empty Bottle ×1 Gas Can ×4 unit(s) Ripped Sheets ×1 |
none | Engineer occupation |
none | none |
Distribution
The loot distributions can be found in the table(s) below.
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% |
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% |
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 | - | - |
Building/Room | Container | Effective chance |
---|---|---|
garagestorage | counter | 2.81% |
garagestorage | metal_shelves | 2.81% |
Code
PetrolCan
Source: ProjectZomboid\media\scripts\items.txt
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,
}
EmptyPetrolCan
Source: ProjectZomboid\media\scripts\newitems.txt
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,
}