Glasses: Difference between revisions

From PZwiki
mNo edit summary
m (→‎Trivia: link Short Sighter)
(32 intermediate revisions by 9 users not shown)
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.
{{Header|Project Zomboid|Items|Clothing|Accessories}}
-->{{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 -->
{{Page version|41.65}}
{{header|The Game World|Items|Clothing|version=Version 41|incver=56}}
{{Reupload|Missing 3D variants}}
<!-- 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 item
-->{{Infobox clothing
|name=Glasses
| display_name = Glasses
|model=GlassesAviator_Model.png
| name_colour = Clothing
|icon=GlassesAviator.png
| name_text_colour = Clothing
|icon_name=Aviator Glasses
| image =  
|icon2=GlassesBlack.png
| image_width = 300px
|icon_name2=Glasses
| alternate_image = GlassesBlack.png
|icon3=GlassesReading.png
| alternate_name = Black Glasses
|icon_name3=Reading Glasses
| alternate_link =  
|icon4=ShootingGlasses.png
| alternate_image2 = GlassesBlue.png
|icon_name4=Reflective Ski Sunglasses
| alternate_name2 = Blue Glasses
|icon5=ShootingGlasses_Reflective.png
| alternate_link2 =
|icon_name5=Shooting Glasses
| alternate_image3 = GlassesRed.png
|icon6=GlassesSun.png
| alternate_name3 = Red Glasses
|icon_name6=Sunglasses
| alternate_link3 =  
| alternate_image4 =  
| alternate_name4 =
| alternate_link4 =
| alternate_image5 =
| alternate_name5 =
| alternate_link5 =
| alternate_image6 =
| alternate_name6 =
| alternate_link6 =
| alternate_image7 =
| alternate_name7 =  
| alternate_link7 =  
<!-- General -->
<!-- General -->
| category = Clothing
|category=Clothing
| weight = 0.1
|weight=0.1
| body_location = Eyes
|equipped=Eyes
| condition =
| capacity =
| weight_reduction =
| attachments_provided =
<!-- Technical details -->
<!-- Technical details -->
| class_name = Base.Glasses_Normal
|item_id=See ''[[#Variants|Variants]]''
}}<!--
}}
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__
==Distribution==
<!--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. -->


===Buildings===
===Buildings===
Line 54: Line 32:


===NPCs===
===NPCs===
Glasses are frequently found on zombie civilians.
Glasses are frequently found on [[zombie]] civilians.
 
==Variants==
{| class="wikitable theme-red" style="text-align: center;"
! Icon
! Name
! Item ID
|-
| [[File:GlassesAviator.png|Aviator Glasses]]
| Aviator Glasses
| {{ID|Base.Glasses_Aviators}}
|-
| [[File:GlassesBlack.png|Glasses (Black)]][[File:GlassesBlue.png|Glasses (Blue)]][[File:GlassesRed.png|Glasses (Red)]]
| Glasses
| {{ID|Base.Glasses_Normal}}
|-
| [[File:GlassesReading.png|Reading Glasses]]
| Reading Glasses
| {{ID|Base.Glasses_Reading}}
|-
| [[File:ShootingGlasses.png|Reflective Ski Sunglasses]]
| Reflective Ski Sunglasses
| {{ID|Base.Glasses}}
|-
| [[File:ShootingGlasses_Reflective.png|Shooting Glasses]]
| Shooting Glasses
| {{ID|Base.Glasses_Shooting}}
|-
| [[File:GlassesSun.png|Sunglasses]]
| Sunglasses
| {{ID|Base.Glasses_Sun}}
|}


==Trivia==
==Trivia==
*Glasses do not actually improve a player's vision, and act only as cosmetic items.
*Glasses negate [[Short Sighted]] trait malus in [[foraging]]. This only applies to reading glasses and regular glasses, not the rest.


== Code ==
==Code==
<!--Comment: all the code related to the item found in txt files should be placed here-->
{{CodeBox|[[File:GlassesAviator.png]] {{ID|Base.Glasses_Aviators}}<br>
<!--COMMENT: Current location of Code in directory for updating purposes. Example below shows how to lay it out. ''''' is for bold italic.-->
{{CodeSnip
'''''From clothing_shirts.txt (Project Zomboid directory/media/scripts/clothing)'''''
  | lang = java
  | line = true
  | start = 112
  | source = clothing_others.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Glasses_Aviators
{
    DisplayCategory = Accessory,
Type = Clothing,
DisplayName = Aviator Glasses,
ClothingItem = Glasses_Aviators,
BodyLocation = Eyes,
Icon = GlassesAviator,
Weight = 0.1,
Cosmetic = TRUE,
ChanceToFall = 50,
}
}}


<!--COMMENT: Be sure to include this "Retrieved" template, filling in the version of the game the code was retrieved.-->
[[File:GlassesBlack.png]] {{ID|Base.Glasses_Normal}}<br>
{{Retrieved|version=41|incver=56}}
{{CodeSnip
<pre>  item Glasses_Normal
  | lang = java
  | line = true
  | start = 124
  | source = clothing_others.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Glasses_Normal
{
{
    DisplayCategory = Accessory,
Type = Clothing,
Type = Clothing,
DisplayName = Glasses,
DisplayName = Glasses,
Line 76: Line 112:
Cosmetic = TRUE,
Cosmetic = TRUE,
ChanceToFall = 50,
ChanceToFall = 50,
</pre>
}
}}
 
[[File:GlassesReading.png]] {{ID|Base.Glasses_Reading}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 136
  | source = clothing_others.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Glasses_Reading
{
    DisplayCategory = Accessory,
Type = Clothing,
DisplayName = Reading Glasses,
ClothingItem = Glasses_Reading,
BodyLocation = Eyes,
IconsForTexture = GlassesReading;GlassesReading;GlassesReading,
Weight = 0.1,
Cosmetic = TRUE,
ChanceToFall = 50,
}
}}
 
[[File:ShootingGlasses.png]] {{ID|Base.Glasses}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 99
  | source = clothing_others.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Glasses
{
    DisplayCategory = Accessory,
Type = Clothing,
DisplayName = Reflective Ski Sunglasses,
ClothingItem = Glasses,
BodyLocation = Eyes,
/*Icon = ShootingGlasses,*/
Icon = ShootingGlasses_Reflective,
Weight = 0.1,
Cosmetic = TRUE,
ChanceToFall = 20,
}
}}
 
[[File:ShootingGlasses_Reflective.png]] {{ID|Base.Glasses_Shooting}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 160
  | source = clothing_others.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Glasses_Shooting
{
    DisplayCategory = Accessory,
Type = Clothing,
DisplayName = Shooting Glasses,
ClothingItem = Glasses_Shooting,
BodyLocation = Eyes,
/*Icon = ShootingGlasses_Reflective,*/
Icon = ShootingGlasses,
Weight = 0.1,
Cosmetic = TRUE,
ChanceToFall = 20,
}
}}
 
[[File:GlassesSun.png]] {{ID|Base.Glasses_Aviators}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 185
  | source = clothing_others.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Glasses_Sun
{
    DisplayCategory = Accessory,
Type = Clothing,
DisplayName = Sunglasses,
ClothingItem = Glasses_Sun,
BodyLocation = Eyes,
Icon = GlassesSun,
Weight = 0.1,
Cosmetic = TRUE,
ChanceToFall = 50,
}
}}
}}


==See also==
==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. -->
{{Navbox items|accessories}}
*[[Reading Glasses]]
{{Navbox clothing}}
 
<!--COMMENT: Categories that aren't mentioned in the header should go here. E.g. Welder Mask uses [[Category:Construction]] -->

Revision as of 00:00, 15 April 2024

Spiffo controlyourself.png
This page was last updated for an older version (41.65).
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.
Frame.png
This article contains outdated/low-quality images.
Reason: Missing 3D variants
Please help the PZwiki by uploading an improved/updated version of the image(s) found on this page.
Glasses
GlassesAviator Model.png
Glasses
Reading Glasses
Reflective Ski Sunglasses
Shooting Glasses
Sunglasses
General
Category
Clothing
Encumbrance
Moodle Icon HeavyLoad.png
0.1
Equipped
Eyes
Technical
Item ID

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.

Variants

Icon Name Item ID
Aviator Glasses Aviator Glasses Base.Glasses_Aviators
Glasses (Black)Glasses (Blue)Glasses (Red) Glasses Base.Glasses_Normal
Reading Glasses Reading Glasses Base.Glasses_Reading
Reflective Ski Sunglasses Reflective Ski Sunglasses Base.Glasses
Shooting Glasses Shooting Glasses Base.Glasses_Shooting
Sunglasses Sunglasses Base.Glasses_Sun

Trivia

  • Glasses negate Short Sighted trait malus in foraging. This only applies to reading glasses and regular glasses, not the rest.

Code

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

GlassesAviator.png Base.Glasses_Aviators
Source: ProjectZomboid\media\scripts\clothing\clothing_others.txt

Retrieved: Build 41.78.16
item Glasses_Aviators
	{
	    DisplayCategory = Accessory,
		Type = Clothing,
		DisplayName = Aviator Glasses,
		ClothingItem = Glasses_Aviators,
		BodyLocation = Eyes,
		Icon = GlassesAviator,
		Weight = 0.1,
		Cosmetic = TRUE,
		ChanceToFall = 50,
	}

GlassesBlack.png Base.Glasses_Normal
Source: ProjectZomboid\media\scripts\clothing\clothing_others.txt

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

GlassesReading.png Base.Glasses_Reading
Source: ProjectZomboid\media\scripts\clothing\clothing_others.txt

Retrieved: Build 41.78.16
item Glasses_Reading
	{
	    DisplayCategory = Accessory,
		Type = Clothing,
		DisplayName = Reading Glasses,
		ClothingItem = Glasses_Reading,
		BodyLocation = Eyes,
		IconsForTexture = GlassesReading;GlassesReading;GlassesReading,
		Weight = 0.1,
		Cosmetic = TRUE,
		ChanceToFall = 50,
	}

ShootingGlasses.png Base.Glasses
Source: ProjectZomboid\media\scripts\clothing\clothing_others.txt

Retrieved: Build 41.78.16
item Glasses
	{
	    DisplayCategory = Accessory,
		Type = Clothing,
		DisplayName = Reflective Ski Sunglasses,
		ClothingItem = Glasses,
		BodyLocation = Eyes,
		/*Icon = ShootingGlasses,*/
		Icon = ShootingGlasses_Reflective,
		Weight = 0.1,
		Cosmetic = TRUE,
		ChanceToFall = 20,
	}

ShootingGlasses Reflective.png Base.Glasses_Shooting
Source: ProjectZomboid\media\scripts\clothing\clothing_others.txt

Retrieved: Build 41.78.16
item Glasses_Shooting
	{
	    DisplayCategory = Accessory,
		Type = Clothing,
		DisplayName = Shooting Glasses,
		ClothingItem = Glasses_Shooting,
		BodyLocation = Eyes,
		/*Icon = ShootingGlasses_Reflective,*/
		Icon = ShootingGlasses,
		Weight = 0.1,
		Cosmetic = TRUE,
		ChanceToFall = 20,
	}

GlassesSun.png Base.Glasses_Aviators
Source: ProjectZomboid\media\scripts\clothing\clothing_others.txt

Retrieved: Build 41.78.16
item Glasses_Sun
	{
	    DisplayCategory = Accessory,
		Type = Clothing,
		DisplayName = Sunglasses,
		ClothingItem = Glasses_Sun,
		BodyLocation = Eyes,
		Icon = GlassesSun,
		Weight = 0.1,
		Cosmetic = TRUE,
		ChanceToFall = 50,
	}

See also