Glasses: Difference between revisions

From PZwiki
mNo edit summary
m (Minor fixes, removed comments, updated code)
Line 1: Line 1:
<!-- COMMENT: This section is for the language bar. The language bar is used for linking translations of the same page into different languages.
{{languages}}
-->{{languages}}<!-- COMMENT: The header format can be seen in the header template with a working explanation. The header connects categories and Version no. PLEASE ENTER THE VERSION AND INCREMENT No. WHEN YOU MAKE A PAGE. It helps everyone else know how old the page is versionwise -->
{{header|The Game World|Items|Clothing|version=Version 41|incver=65}}
{{header|The Game World|Items|Clothing|version=Version 41|incver=56}}
{{Infobox clothing
<!-- COMMENT: Here is the infobox for the clothing. This is a quick lookup for the item's stats. For more information, see: https://pzwiki.net/wiki/Template:Infobox_clothing
-->{{Infobox clothing
| display_name = Glasses
| display_name = Glasses
| name_colour = Clothing
| name_colour = Clothing
Line 40: Line 38:
<!-- Technical details -->
<!-- Technical details -->
| class_name = Base.Glasses_Normal
| class_name = Base.Glasses_Normal
}}<!--
}}
COMMENT: include a very brief introduction to the item
'''Glasses''' are simple eyewear commonly found around the map.
-->The Glasses are simple eyewear commonly found around the map.        


__TOC__
__TOC__
<!--Comment: This is where the 'Table Of Contents' will go if it is needed-->
== Item Distribution ==
<!--Comment: The locations this item can be found should be placed here. Spawn locations can be found in the distribution.lua, ProceduralDistributions.lua and vehicledistribution.lua files. -->


==Distribution==
===Buildings===
===Buildings===
The glasses are common around [[Knox Country]], often stored in houses.
The glasses are common around [[Knox Country]], often stored in houses.


===NPCs===
===NPCs===
Glasses are frequently found on zombie civilians.
Glasses are frequently found on [[zombie]] civilians.


==Trivia==
==Trivia==
Line 60: Line 54:


== Code ==
== Code ==
<!--Comment: all the code related to the item found in txt files should be placed here-->
'''''From clothing_others.txt (Project Zomboid directory/media/scripts/clothing)'''''
<!--COMMENT: Current location of Code in directory for updating purposes. Example below shows how to lay it out. ''''' is for bold italic.-->
'''''From clothing_shirts.txt (Project Zomboid directory/media/scripts/clothing)'''''


<!--COMMENT: Be sure to include this "Retrieved" template, filling in the version of the game the code was retrieved.-->
{{Retrieved|version=41|incver=65}}
{{Retrieved|version=41|incver=56}}
<pre> item Glasses_Normal
<pre> item Glasses_Normal
DisplayCategory = Accessory,
{
Type = Clothing,
Type = Clothing,
DisplayName = Glasses,
DisplayName = Glasses,
ClothingItem = Glasses_Normal,
ClothingItem = Glasses_Normal,
BodyLocation = Eyes,
BodyLocation = Eyes,
IconsForTexture = GlassesBlack;GlassesBlue;GlassesRed,
IconsForTexture = GlassesBlack;GlassesBlue;GlassesRed,
Weight = 0.1,
Weight = 0.1,
Cosmetic = TRUE,
Cosmetic = TRUE,
ChanceToFall = 50,
ChanceToFall = 50,
</pre>
</pre>


==See also==
<!--COMMENT: Location of links to relevant guides or other pages that may not have been mentioned on this page but still relate to the item in some way. -->
*[[Reading Glasses]]
{{Navbox clothing}}
{{Navbox clothing}}
<!--COMMENT: Categories that aren't mentioned in the header should go here. E.g. Welder Mask uses [[Category:Construction]] -->

Revision as of 03:19, 20 January 2022

Glasses
Black Glasses Blue Glasses Red Glasses
General
Category Clothing
Encumbrance
Heavy Load
0.1
Body location Eyes
Technical details
Item ID Base.Glasses_Normal

Glasses are simple eyewear commonly found around the map.

Distribution

Buildings

The glasses are common around Knox Country, often stored in houses.

NPCs

Glasses are frequently found on zombie civilians.

Trivia

  • Glasses do not actually improve a player's vision, and act only as cosmetic items.

Code

From clothing_others.txt (Project Zomboid directory/media/scripts/clothing)

Retrieved: Build 41.65

	item Glasses_Normal
		DisplayCategory	= Accessory,
		Type		= Clothing,
		DisplayName	= Glasses,
		ClothingItem	= Glasses_Normal,
		BodyLocation	= Eyes,
		IconsForTexture	= GlassesBlack;GlassesBlue;GlassesRed,
		Weight		= 0.1,
		Cosmetic	= TRUE,
		ChanceToFall	= 50,