Vitamins: Difference between revisions

From PZwiki
(→‎Code: code box update)
m (Remove lines))
(19 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Languages}}{{Header|The Game World|Items|Consumables|Medical Items|type=Medical|version=Version 41|incver=50}}{{Infobox drainable
{{Header|Project Zomboid|Items|Medical items}}
|display_name=Vitamins
{{Page version|41.78.16}}
|name_colour=Medical
{{Infobox item
|name_text_colour=Medical
|name=Vitamins
|image=Vitamins.png
|model=Vitamins_Model.png
|icon=Vitamins.png
|icon_name=Vitamins
|weight=0.2
|weight=0.2
|primary_use=Reduce [[Moodles#Tired|tiredness]]
|primary_use=Reduce [[Tired|tiredness]]
|content=Vitamins
|content=Vitamins
|max_units=10
|max_units=10
|fatigue_change=-2
|fatigue_change=-2
|class_name=Base.PillsVitamins
|item_id=Base.PillsVitamins
}}{{quote|text=Provides a burst of energy when taken. Reduces fatigue.|author=In-game tooltip}}'''Vitamins''' are a drainable [[item]] used in [[First Aid|first aid]].
}}
{{Quote|text=Provides a burst of energy when taken. Reduces fatigue.|author=In-game tooltip}}
'''Vitamins''' are a drainable [[Items|item]] used in [[First Aid|first aid]].


==Usage==
==Usage==
Vitamins are used to reduce fatigue, which is commonly known as [[moodles#Tired|tiredness]] and not to be confused with [[moodles#Endurance|exhaustion/endurance]]. However, fatigue does have a direct correlation with endurance as the more tired the character is, the harder it is for them to regain their stamina. Taking vitamins is ideal when the player is running a long distance or fighting a large amount of [[zombie]]s, which will exhaust them quickly, slowing down movement, weakening their attacks, and reducing weapon accuracy.
Vitamins are used to reduce fatigue, which is commonly known as [[Tired|tiredness]] and not to be confused with [[Endurance|exhaustion/endurance]]. However, fatigue does have a direct correlation with endurance as the more tired the character is, the harder it is for them to regain their stamina. Taking vitamins is ideal when the player is running a long distance or fighting a large amount of [[zombie]]s, which will exhaust them quickly, slowing down movement, weakening their attacks, and reducing weapon accuracy.


==Distribution==
==Distribution==
They are usually found in [[Containers#Cabinets|medicine cabinets]], in medical buildings, such as [[Cortman Medical]] and occur as a rare drop on zombie [[Containers#Corpses|corpses]].
The loot distributions can be found in the table(s) below.
 
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
! colspan="4" | Containers
|-
! Building/Room
! Container
! style="width: 3.2em;" | Rolls
! style="width: 3.2em;" | Chance
|-
|rowspan="3"|bathroom
|[[counter]]
|4
|4
|-
|[[medicine]]
|4
|4
|-
|[[shelves]]
|4
|4
|-
|rowspan="4"|bedroom
|[[desk]]
|4
|1
|-
|[[desk]]
|4
|1
|-
|[[dresser]]
|4
|1
|-
|[[sidetable]]
|4
|1
|-
|closet
|[[crate]]
|4
|1
|-
|rowspan="4"|conveniencestore
|[[shelves]]
|4
|1
|-
|[[shelves]]
|4
|1
|-
|[[shelves]]
|4
|2
|-
|[[shelves]]
|4
|2
|-
|office
|[[desk]]
|4
|1
|}


==Code==
==Code==
{{CodeBox
{{CodeBox
| {{CodeSnip
| {{CodeSnip
   | lang = java
   | lang = java
   | line = true
   | line = true
   | start = 0
   | start = 1865
   | source = newitems.txt
   | source = newitems.txt
   | retrieved = true
   | retrieved = true
   | version = 41
   | version = 41.78.16
  | incver = 50
   | code =
   | code =
item PillsVitamins
item PillsVitamins
{
{
    FatigueChange = -2,
    DisplayCategory = FirstAid,
    Weight = 0.2,
        FatigueChange = -2,
    UseDelta = 0.1,
Weight = 0.2,
    Type = Drainable,
        UseDelta = 0.1,
    UseWhileEquipped = FALSE,
Type = Drainable,
    DisplayName = Vitamins,
UseWhileEquipped = FALSE,
    Icon = Vitamins,
DisplayName = Vitamins,
    Tooltip = Tooltip_Vitamins,
Icon = Vitamins,
    StaticModel = PillBottle,
Tooltip = Tooltip_Vitamins,
    Medical = TRUE,
StaticModel = PillBottle,
}
WorldStaticModel = Vitamins_Ground,
  }}
Medical = TRUE,
}
}}
}}
}}


Line 49: Line 119:
*[[First Aid]]
*[[First Aid]]


{{Navbox medical}}
{{Navbox items|medical}}

Revision as of 07:38, 15 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Vitamins
Vitamins Model.png
General
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Function
Reduce tiredness
Properties
Capacity
10 units
Effect
FatigueMoodle Icon Tired.png
-2
Technical
Item ID
Base.PillsVitamins
Provides a burst of energy when taken. Reduces fatigue.
— In-game tooltip

Vitamins are a drainable item used in first aid.

Usage

Vitamins are used to reduce fatigue, which is commonly known as tiredness and not to be confused with exhaustion/endurance. However, fatigue does have a direct correlation with endurance as the more tired the character is, the harder it is for them to regain their stamina. Taking vitamins is ideal when the player is running a long distance or fighting a large amount of zombies, which will exhaust them quickly, slowing down movement, weakening their attacks, and reducing weapon accuracy.

Distribution

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

Containers
Building/Room Container Rolls Chance
bathroom counter 4 4
medicine 4 4
shelves 4 4
bedroom desk 4 1
desk 4 1
dresser 4 1
sidetable 4 1
closet crate 4 1
conveniencestore shelves 4 1
shelves 4 1
shelves 4 2
shelves 4 2
office desk 4 1

Code

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

Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item PillsVitamins
	{
	    DisplayCategory = FirstAid,
        FatigueChange	=	-2,
		Weight	=	0.2,
        UseDelta	=	0.1,
		Type	=	Drainable,
		UseWhileEquipped	=	FALSE,
		DisplayName	=	Vitamins,
		Icon	=	Vitamins,
		Tooltip = Tooltip_Vitamins,
		StaticModel = PillBottle,
		WorldStaticModel = Vitamins_Ground,
		Medical = TRUE,
	}

See also