Painkillers: Difference between revisions

From PZwiki
mNo edit summary
m (Remove lines))
(25 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{languages|Painkillers}}
{{Header|Project Zomboid|Items|Medical items}}
{{header|The Game World|Items|Consumables|Medical Items|type=Medical|version=Version 39|incver=67.5}}{{Infobox drainable
{{Page version|41.50}}
|display_name=Painkillers
{{Infobox item
|name_colour=Medical
|name=Painkillers
|name_text_colour=Medical
|model=PillsPainkiller_Model.png
|image = PillsPainkiller_120px.png
|icon=PillsPainkiller.png
|weight = 0.2
|icon_name=Painkillers
|primary_use = Reduce [[Moodles#Pain|pain]]
|weight=0.2
|max_units = 10
|primary_use=Reduce [[Pain|pain]]
|class_name = Base.Pills
|max_units=10
}}{{quote|text=Reduce feelings of pain|author=In-game tooltip.}}'''Painkillers''' are a drainable [[item]] used in [[First Aid|first aid]].
|item_id=Base.Pills
}}
{{Quote|text=Reduce feelings of pain|author=In-game tooltip.}}
'''Painkillers''' are a drainable [[Items|item]] used in [[First Aid|first aid]].


==Usage==
==Usage==
Painkillers are used to remove [[Moodles#Pain|pain]] caused by [[Health|injuries]], while also reversing the effects associated with it. Severe pain can prevent the player from [[sleep|sleeping]] and decrease weapon accuracy, therefore making painkillers a handy accessory.  
Painkillers are used to remove [[Pain|pain]] caused by [[Health|injuries]], while also reversing the effects associated with it. Severe pain can prevent the player from [[sleep]]ing and decrease weapon accuracy, therefore making painkillers a handy accessory.


A full painkiller packet can be used 10 times before being exhausted. Taking multiple painkillers will not impose any negative effects upon the player, and will even improve its effect.
A full painkiller packet can be used 10 times before being exhausted. Taking multiple painkillers will not impose any negative effects upon the player, and will even improve its effect.


==Distribution==
==Distribution==
Painkillers are usually found within [[Containers#Cabinets|medicine cabinets]] in bathrooms, in several places within a pharmacy and can also occur as a rare drop on [[zombie]] [[Containers#Corpses|corpses]].
The loot distributions can be found in the table(s) below.


== Code ==
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
! colspan="4" | Containers
{{Retrieved|version=39|incver=67.5}}
|-
<pre> item Pills
! Building/Room
Weight = 0.2,
! Container
Type = Drainable,
! style="width: 3.2em;" | Rolls
        UseDelta = 0.1,
! style="width: 3.2em;" | Chance
UseWhileEquipped = FALSE,
|-
DisplayName = Painkillers,
|rowspan="2"|MedicalCache1
Icon = PillsPainkiller,
|[[MedicalBox]]
Tooltip = Tooltip_Painkillers,</pre>
|4
|1
|-
|[[MedicalBox]]
|4
|2
|-
|rowspan="4"|all
|[[militarycrate]]
|4
|1
|-
|[[militarycrate]]
|4
|1
|-
|[[militarycrate]]
|4
|2
|-
|[[militarycrate]]
|4
|2
|-
|rowspan="3"|bathroom
|[[counter]]
|4
|4
|-
|[[medicine]]
|4
|4
|-
|[[shelves]]
|4
|4
|-
|rowspan="3"|bedroom
|[[desk]]
|4
|0.5
|-
|[[dresser]]
|4
|0.5
|-
|[[sidetable]]
|4
|0.5
|-
|rowspan="2"|conveniencestore
|[[shelves]]
|4
|1
|-
|[[shelves]]
|4
|2
|-
|rowspan="5"|dentiststorage
|[[metal_shelves]]
|4
|1
|-
|[[metal_shelves]]
|4
|1
|-
|[[metal_shelves]]
|4
|2
|-
|[[metal_shelves]]
|4
|2
|-
|[[metal_shelves]]
|4
|5
|-
|rowspan="2"|druglab
|[[counter]]
|4
|1
|-
|[[counter]]
|4
|2
|-
|rowspan="2"|drugshack
|[[counter]]
|4
|1
|-
|[[counter]]
|4
|2
|-
|rowspan="6"|kennels
|[[counter]]
|4
|1
|-
|[[counter]]
|4
|1
|-
|[[counter]]
|4
|2
|-
|[[counter]]
|4
|2
|-
|[[counter]]
|4
|1
|-
|[[counter]]
|4
|2
|-
|laboratory
|[[crate]]
|4
|1
|-
|prisoncells
|[[wardrobe]]
|4
|0.5
|}


== See also ==
==Code==
[[First_Aid|General First Aid]]
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 1147
  | source = items.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Pills
{
    DisplayCategory = FirstAid,
Weight = 0.2,
Type = Drainable,
        UseDelta = 0.1,
UseWhileEquipped = FALSE,
DisplayName = Painkillers,
Icon = PillsPainkiller,
Tooltip = Tooltip_Painkillers,
StaticModel = PillBottle,
WorldStaticModel = PainKillers_Ground,
Medical = TRUE,
}
}}
}}


{{Navbox/Consumables}}
==See also==
*[[First Aid]]
 
{{Navbox items|medical}}

Revision as of 07:14, 15 April 2024

Spiffo controlyourself.png
This page was last updated for an older version (41.50).
The current stable version is 41.78.16, released 2022-12-12, so information on this page may be inaccurate. Help get this page updated by adding any missing content. [edit]
Please update the version after updating the page.
Painkillers
PillsPainkiller Model.png
General
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Function
Reduce pain
Properties
Capacity
10 units
Technical
Item ID
Base.Pills
Reduce feelings of pain
— In-game tooltip.

Painkillers are a drainable item used in first aid.

Usage

Painkillers are used to remove pain caused by injuries, while also reversing the effects associated with it. Severe pain can prevent the player from sleeping and decrease weapon accuracy, therefore making painkillers a handy accessory.

A full painkiller packet can be used 10 times before being exhausted. Taking multiple painkillers will not impose any negative effects upon the player, and will even improve its effect.

Distribution

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

Containers
Building/Room Container Rolls Chance
MedicalCache1 MedicalBox 4 1
MedicalBox 4 2
all militarycrate 4 1
militarycrate 4 1
militarycrate 4 2
militarycrate 4 2
bathroom counter 4 4
medicine 4 4
shelves 4 4
bedroom desk 4 0.5
dresser 4 0.5
sidetable 4 0.5
conveniencestore shelves 4 1
shelves 4 2
dentiststorage metal_shelves 4 1
metal_shelves 4 1
metal_shelves 4 2
metal_shelves 4 2
metal_shelves 4 5
druglab counter 4 1
counter 4 2
drugshack counter 4 1
counter 4 2
kennels counter 4 1
counter 4 1
counter 4 2
counter 4 2
counter 4 1
counter 4 2
laboratory crate 4 1
prisoncells wardrobe 4 0.5

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 Pills
	{
	    DisplayCategory = FirstAid,
		Weight	=	0.2,
		Type	=	Drainable,
        UseDelta	=	0.1,
		UseWhileEquipped	=	FALSE,
		DisplayName	=	Painkillers,
		Icon	=	PillsPainkiller,
		Tooltip = Tooltip_Painkillers,
		StaticModel = PillBottle,
		WorldStaticModel = PainKillers_Ground,
		Medical = TRUE,
	}

See also