Glasses: Difference between revisions
(→Code: code box update) |
m (→Trivia: link Short Sighter) |
||
(24 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Items|Clothing|Accessories}} | ||
{{Page version|41.65}} | |||
{{Infobox | {{Reupload|Missing 3D variants}} | ||
| | {{Infobox item | ||
| | |name=Glasses | ||
| | |model=GlassesAviator_Model.png | ||
|icon=GlassesAviator.png | |||
| | |icon_name=Aviator Glasses | ||
| | |icon2=GlassesBlack.png | ||
|icon_name2=Glasses | |||
| | |icon3=GlassesReading.png | ||
| | |icon_name3=Reading Glasses | ||
|icon4=ShootingGlasses.png | |||
| | |icon_name4=Reflective Ski Sunglasses | ||
| | |icon5=ShootingGlasses_Reflective.png | ||
|icon_name5=Shooting Glasses | |||
| | |icon6=GlassesSun.png | ||
| | |icon_name6=Sunglasses | ||
| | |||
| | |||
| | |||
<!-- General --> | <!-- General --> | ||
| category = Clothing | |category=Clothing | ||
| weight = 0.1 | |weight=0.1 | ||
| | |equipped=Eyes | ||
<!-- Technical details --> | <!-- Technical details --> | ||
| | |item_id=See ''[[#Variants|Variants]]'' | ||
}} | }} | ||
'''Glasses''' are simple eyewear commonly found around the map. | '''Glasses''' are simple eyewear commonly found around the map. | ||
==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. | ||
Line 50: | Line 35: | ||
==Variants== | ==Variants== | ||
{| class="wikitable theme-red" style="text-align:center;" | {| class="wikitable theme-red" style="text-align: center;" | ||
! Icon | ! Icon | ||
! Name | ! Name | ||
! | ! Item ID | ||
|- | |- | ||
| [[File:GlassesAviator.png|Aviator Glasses]] | | [[File:GlassesAviator.png|Aviator Glasses]] | ||
Line 78: | Line 63: | ||
| Sunglasses | | Sunglasses | ||
| {{ID|Base.Glasses_Sun}} | | {{ID|Base.Glasses_Sun}} | ||
|} | |} | ||
==Trivia== | ==Trivia== | ||
Glasses negate Short Sighted trait. | *Glasses negate [[Short Sighted]] trait malus in [[foraging]]. This only applies to reading glasses and regular glasses, not the rest. | ||
== Code == | ==Code== | ||
[[File:GlassesAviator.png | {{CodeBox|[[File:GlassesAviator.png]] {{ID|Base.Glasses_Aviators}}<br> | ||
{{ | {{CodeSnip | ||
| lang = java | | lang = java | ||
| line = true | | line = true | ||
| start = | | start = 112 | ||
| source = | | source = clothing_others.txt | ||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | | code = | ||
item Glasses_Aviators | item Glasses_Aviators | ||
{ | { | ||
DisplayCategory = Accessory, | |||
Type = Clothing, | |||
DisplayName = Aviator Glasses, | |||
ClothingItem = Glasses_Aviators, | |||
BodyLocation = Eyes, | |||
Icon = GlassesAviator, | |||
Weight = 0.1, | |||
Cosmetic = TRUE, | |||
ChanceToFall = 50, | |||
} | |||
}} | }} | ||
[[File:GlassesBlack.png | [[File:GlassesBlack.png]] {{ID|Base.Glasses_Normal}}<br> | ||
{{ | {{CodeSnip | ||
| lang = java | | lang = java | ||
| line = true | | line = true | ||
| start = | | start = 124 | ||
| source = | | source = clothing_others.txt | ||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | | code = | ||
item Glasses_Normal | 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, | |||
} | |||
}} | }} | ||
[[File:GlassesReading.png | [[File:GlassesReading.png]] {{ID|Base.Glasses_Reading}}<br> | ||
{{ | {{CodeSnip | ||
| lang = java | | lang = java | ||
| line = true | | line = true | ||
| start = | | start = 136 | ||
| source = | | source = clothing_others.txt | ||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | | code = | ||
item Glasses_Reading | 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 | [[File:ShootingGlasses.png]] {{ID|Base.Glasses}}<br> | ||
{{ | {{CodeSnip | ||
| lang = java | | lang = java | ||
| line = true | | line = true | ||
| start = | | start = 99 | ||
| source = | | source = clothing_others.txt | ||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | | code = | ||
item Glasses | 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 | [[File:ShootingGlasses_Reflective.png]] {{ID|Base.Glasses_Shooting}}<br> | ||
{{ | {{CodeSnip | ||
| lang = java | | lang = java | ||
| line = true | | line = true | ||
| start = | | start = 160 | ||
| source = | | source = clothing_others.txt | ||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | | code = | ||
item Glasses_Shooting | 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 | [[File:GlassesSun.png]] {{ID|Base.Glasses_Aviators}}<br> | ||
{{ | {{CodeSnip | ||
| lang = java | | lang = java | ||
| line = true | | line = true | ||
| start = | | start = 185 | ||
| source = | | source = clothing_others.txt | ||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | | code = | ||
item Glasses_Sun | item Glasses_Sun | ||
{ | { | ||
DisplayCategory = Accessory, | |||
Type = Clothing, | |||
DisplayName = Sunglasses, | |||
ClothingItem = Glasses_Sun, | |||
BodyLocation = Eyes, | |||
Icon = GlassesSun, | |||
Weight = 0.1, | |||
Cosmetic = TRUE, | |||
ChanceToFall = 50, | |||
} | } | ||
}} | |||
}} | }} | ||
{{Navbox | ==See also== | ||
{{Navbox items|accessories}} |
Revision as of 00:00, 15 April 2024
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
Trivia
- Glasses negate Short Sighted trait malus in foraging. This only applies to reading glasses and regular glasses, not the rest.
Code
Base.Glasses_Aviators
Source: ProjectZomboid\media\scripts\clothing\clothing_others.txt
item Glasses_Aviators
{
DisplayCategory = Accessory,
Type = Clothing,
DisplayName = Aviator Glasses,
ClothingItem = Glasses_Aviators,
BodyLocation = Eyes,
Icon = GlassesAviator,
Weight = 0.1,
Cosmetic = TRUE,
ChanceToFall = 50,
}
Base.Glasses_Normal
Source: ProjectZomboid\media\scripts\clothing\clothing_others.txt
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,
}
Base.Glasses_Reading
Source: ProjectZomboid\media\scripts\clothing\clothing_others.txt
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,
}
Base.Glasses
Source: ProjectZomboid\media\scripts\clothing\clothing_others.txt
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,
}
Base.Glasses_Shooting
Source: ProjectZomboid\media\scripts\clothing\clothing_others.txt
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,
}
Base.Glasses_Aviators
Source: ProjectZomboid\media\scripts\clothing\clothing_others.txt
item Glasses_Sun
{
DisplayCategory = Accessory,
Type = Clothing,
DisplayName = Sunglasses,
ClothingItem = Glasses_Sun,
BodyLocation = Eyes,
Icon = GlassesSun,
Weight = 0.1,
Cosmetic = TRUE,
ChanceToFall = 50,
}