Battery: Difference between revisions

From PZwiki
m (Remove 120px)
(Cleanup)
Line 1: Line 1:
{{languages}}
{{Languages}}{{Header|The Game World|Items|Electricity and Engineering|type=Electric|version=Version 39|incver=67.5}}{{Infobox drainable
{{header|The Game World|Items|Electricity and Engineering|type=Electric|version=Version 39|incver=67.5}}{{Infobox drainable
|display_name=Battery
|display_name=Battery
|name_colour = Electric
|name_colour = Electric
Line 19: Line 18:


==Crafting==
==Crafting==
<!-- Automatically generated by ReLookup. Subject RecipeLookup: 4036 -->
{{Crafting header|ing=1}}
{{Crafting/core|ing=1
| product_image = [[File:Battery.png|link=Battery|Battery]] | product_name = [[Battery]] | product_quantity = x1
| xp = <!-- Not present in the old template. Please fill in manually. -->
| sl = ''none''
| req =
| f1 = [[File:Flashlight.png|link=Flashlight|Flashlight]] | i1 = [[Flashlight]] | q1 = x1
}}
|}
<!-- Automatically generated by ReLookup. Subject RecipeLookup: 4037 -->
{{Crafting header|ing=2}}
{{Crafting header|ing=2}}
{{Crafting/core|ing=2
{{Crafting general|003|ing=2}}
| product_image = [[File:Flashlight.png|link=Flashlight|Flashlight]] | product_name = [[Flashlight]] | product_quantity = x1
{{Crafting general|002|ing=2}}
| xp = <!-- Not present in the old template. Please fill in manually. -->
{{Crafting general|030|ing=2}}
| sl = ''none''
{{Crafting general|029|ing=2}}
| req =
| f1 = [[File:Flashlight.png|link=Flashlight|Flashlight]] | i1 = [[Flashlight]] | q1 = x1
| f2 = [[File:Battery.png|link=Battery|Battery]] | i2 = [[Battery]] | q2 = x1 | tag2 = (consumed)
}}
|}
|}
==Distribution==
==Distribution==
Batteries can be found in various places throughout the world, such as in [[Containers#Bins|garbage cans]], [[Containers#Wooden Crate|wooden crates]], [[Containers#Counters|counters]] and many other places. They can also be found inside [[radio]]s and [[flashlight]]s, so long as they haven't been left on.
Batteries can be found in various places throughout the world, such as in [[Containers#Bins|garbage cans]], [[Containers#Wooden Crate|wooden crates]], [[Containers#Counters|counters]] and many other places. They can also be found inside [[radio]]s and [[flashlight]]s, so long as they haven't been left on.
It can also be found in very large amounts in the Egenerex Battery Factory, in the North East corner of LV.
It can also be found in very large amounts in the Egenerex Battery Factory, in the North East corner of LV.
<br>
<br>If [[Zombie]] spawn Walkie Talkie as loot, you can take one full battery from it.


== Code ==
If [[Zombie]] spawn Walkie Talkie as loot, you can take one full battery from it.
 
==Code==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=41|incver=71}}
{{Retrieved|version=41|incver=71}}
<nowiki> item Battery
<pre>
item Battery
DisplayCategory  = Electronics,
DisplayCategory  = Electronics,
Weight         = 0.1,
Weight         = 0.1,
Line 59: Line 45:
MetalValue      = 1,
MetalValue      = 1,
cantBeConsolided = TRUE,
cantBeConsolided = TRUE,
WorldStaticModel = Battery,</nowiki>
WorldStaticModel = Battery,
</pre>


== History ==
==History==
{| class="pztable" width="550" style="text-align:center;"
{| class="pztable" width="550" style="text-align:center;"
|-
|-
Line 86: Line 73:
*[[Electrical]]
*[[Electrical]]


{{Navbox/Electricity and Engineering}}
{{Navbox equipment}}


[[Category:Illumination]]
[[Category:Illumination]]
[[Category:Electricals and Transmission (Project)]]
[[Category:Electricals and Transmission (Project)]]

Revision as of 16:44, 8 April 2023

Battery
Battery
General
Category Item
Encumbrance
Heavy Load
0.6
Function Power small appliances
Capacity 100,000 units
Contents Electricity
Technical details
item ID Base.Battery
PlushSpiffo.pngThis article is about batteries required to power small appliances. For batteries that power vehicles, see Car Battery.

A battery is a source of power for small household items.

Usage

Batteries are used to power the flashlight, radio, ham radio, walkie talkie and lamp on pillar.

Batteries will begin to drain when the device they're powering is on, until it eventually dies, upon which it is destroyed/consumed. When used to power a flashlight, the player can tell when the battery is getting low, as the light will begin to flicker rapidly.

Crafting

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2
Battery.png
Battery
0 XP none
(keep)

Flashlight.png
Flashlight
0 XP none Flashlight.png
Flashlight
(consumed)
Battery.png
Battery
(consumed)
Flashlight2.png
Hand Torch
0 XP none Flashlight2.png
Hand Torch
(consumed)
Battery.png
Battery
(consumed)
Rubber Duck
Rubber Duck
0 XP none Rubber Duck
Rubber Duck
(consumed)
Battery.png
Battery
(consumed)

Distribution

Batteries can be found in various places throughout the world, such as in garbage cans, wooden crates, counters and many other places. They can also be found inside radios and flashlights, so long as they haven't been left on. It can also be found in very large amounts in the Egenerex Battery Factory, in the North East corner of LV.

If Zombie spawn Walkie Talkie as loot, you can take one full battery from it.

Code

From items.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 41.71

	item Battery
		DisplayCategory  = Electronics,
		Weight	         = 0.1,
		Type      	 = Drainable,
		UseDelta	 = 0.00001,
		UseWhileEquipped = FALSE,
		DisplayName	 = Battery,
		Icon	         = Battery,
		MetalValue       = 1,
		cantBeConsolided = TRUE,
		WorldStaticModel = Battery,

History

Alpha
0.2.0f Batteries fittable / removable for flashlights.
RC 2.9 Slowly drain and is consumed automatically by Flashlights.
2.9.9.16 Flashlight can flicker, especially when they're almost out of batteries
2.9.9.17 You can now build light sources, requiring batteries
Build 31 Fixed infinite batteries from "Remove Battery > All" action.
Build 33 Radios will have battery that can be removed.
Build 35 Can't consolidate batteries, candle and torch.

See also