Battery: Difference between revisions

From PZwiki
m (added header type)
(adjustments to layout. Added new infobox and header. Removed "tools" navbox)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{languages|Battery}}
{{languages|Battery}}
{{header|The Game World|Items|Electricity and Engineering|type=Electric|version=Version 39|incver=53}}
{{header|The Game World|Items|Electricity and Engineering|type=Electric|version=Version 39|incver=67.5}}{{Infobox drainable
{{items
|display_name=Battery
|image = Battery_120px.png
|name_colour = Electric
|weight = 0.6
|name_text_colour = Electric
}}
|image=Battery_120px.png
'''Batteries''' are a source of power for small household items. They are used to power the [[flashlight]], [[radio]]s, [[Radio|HAM radio]], [[Radio|walkie talkies]] and [[Lamp on Pillar|lamp on pillar]]. When the device it is powering is turned ''on'', the battery will begin to drain, until it eventually dies, upon which it will be 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.  
|weight=0.6
|primary_use=Power small appliances
|max_units=100,000
|contents=[[Electricity]]
|class_name=Base.Battery
}}A '''battery''' is a source of power for small household items.


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.  
==Usage==
Batteries are used to power the [[flashlight]], [[radio]], [[Radio|ham radio]], [[Radio|walkie talkie]] and [[Lamp on Pillar|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.


==Recipes==
==Crafting==
{| class="wikitable sortable" style="text-align:center;"
{{Crafting table header}}
|-
! Name
! class="unsortable" | Recipe
! class="unsortable" | Description
! Level
{{RecipeLookup|4036}}
{{RecipeLookup|4036}}
{{RecipeLookup|4037}}
{{RecipeLookup|4037}}
|}
{{Crafting table footer}}


==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.


== Code ==
== Code ==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
  <nowiki>
{{Retrieved|version=39|incver=67.5}}
item Battery
  <nowiki> item Battery
Weight = 0.6,
Weight = 0.6,
Type = Drainable,
Type = Drainable,
Line 34: Line 38:
Icon = Battery,
Icon = Battery,
MetalValue = 1,
MetalValue = 1,
cantBeConsolided = TRUE,
cantBeConsolided = TRUE,</nowiki>
</nowiki>
 


== History ==
== History ==
Line 58: Line 60:
|}
|}


 
==See also==
==See Also==
*[[Car Battery]]
*[[Car Battery]]
*[[Generator]]
*[[Generator]]
*[[Electrical]]
*[[Electrical]]


{{Navbox/Tools}}
{{Navbox/Electricity and Engineering}}
{{Navbox/Electricity and Engineering}}


[[Category:Illumination]]
[[Category:Illumination]]

Revision as of 13:00, 23 July 2018


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

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

Template:Crafting table header |- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
Template:Crafting table footer

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.

Code

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

	item Battery
		Weight			= 0.6,
		Type			= Drainable,
		UseDelta		= 0.00001,
		UseWhileEquipped	= FALSE,
		DisplayName		= Battery,
		Icon			= Battery,
		MetalValue 		= 1,
		cantBeConsolided 	= TRUE,

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

Template:Navbox/Electricity and Engineering