Battery

From PZwiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Battery
Battery Model.png
General
Encumbrance
Moodle Icon HeavyLoad.png
0.6
Function
Power small appliances
Properties
Contents
Capacity
100,000
Technical
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 Ingredients Tools Requirements Workstation XP
Battery.png
Battery
One of:
Flashlight.png Flashlight ×1
Flashlight2.png Hand Torch ×1
Rubberducky.png Rubber Duck ×1
none none none none
Flashlight.png
Flashlight
Flashlight.png Flashlight ×1
Battery.png Battery ×1
none none none none
Flashlight2.png
Hand Torch
Flashlight2.png Hand Torch ×1
Battery.png Battery ×1
none none none none
Rubberducky.png
Rubber Duck
Rubberducky.png Rubber Duck ×1
Battery.png Battery ×1
none none none none

Distribution

The loot distributions can be found in the table(s) below.

Containers
Building/Room Container Rolls Chance
all other 1 2
armyhanger counter 4 2
batteryfactory crate 4 1
crate 4 1
crate 4 2
crate 4 2
crate 4 5
closet crate 4 1
metal_shelves 4 8
controlroom counter 4 1
counter 4 2
departmentstorage metal_shelves 4 1
metal_shelves 4 2
electronicsstorage shelves 4 1
shelves 4 1
shelves 4 2
shelves 4 2
kitchen counter 4 2
radiofactory crate 4 1
toolstore counter 4 1

Disposal

Much like most batteries in 1993, batteries in Project Zomboid are non-rechargeable (i.e., alkaline) batteries. In the event the player finds a battery with 0% charge, the only thing that can be done with these is disposing of them. Either in any Garbage Bin with the ability to delete items not disabled in settings, or via leaving in the inventory of a Zombie corpse as it decays unless the server is set to remove items laying on the ground.

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\items.txt

Retrieved: Build 41.78.16
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