Razor: Difference between revisions

From PZwiki
(Update to version 40.43)
m (Automated CodeBox update)
(30 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{languages|Razor}}
{{Header|Project Zomboid|Items|Miscellaneous items|Appearance}}
{{header|The Game World|Items|version=Version 40|incver=43}}{{Infobox normal
{{Page version|41.78.16}}
| display_name = Razor
{{Infobox item
| name_colour =  
|name=Razor
| name_text_colour =  
|model=Razor_Model.png
| image = Razor.png
|icon=Razor.png
| image_width = 120px
|icon_name=Razor
| weight = 0.2
|category=Junk
| function = ''None''
|weight=0.2
| class_name = Base.Razor}}A '''razor''' is currently a useless {{T|item}}, and often considered as ''junk''.
|function=[[Appearance|Shave hair or beard]]
|material=Metal
|material_value=5
|tags=Razor
|item_id=Base.Razor
}}


==Usage==
'''Razor''' can modify the type of beard of the [[player]] or used to shave hair. In all cases, to modify beard or shaving hair, razor can be replaced by [[scissors]].
A razor has no use, being added purely for the purpose of clutter, creating more realism for the {{T|player}} when looting. Facial hair cannot be shaved with this item.


==Distribution==
==Distribution==
Razors are most often found in [[Containers#Medicine Cabinet|medicine cabinets]] and [[Containers#Counters|bathroom counters]], though they very rarely spawn as loot on the [[corpse]]s of [[zombie]]s.
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 newitems.txt (Project Zomboid directory/media/scripts/)'''''
! colspan="4" | Containers
{{Retrieved|version=40|incver=43}}
|-
<pre> item Razor
! Building/Room
Weight = 0.2,
! Container
Type = Normal,
! style="width: 3.2em;" | Rolls
DisplayName = Razor,
! style="width: 3.2em;" | Chance
Icon = Razor,
|-
MetalValue = 5,
|aesthetic
</pre>
|[[counter]]
|4
|4
|-
|rowspan="3"|bathroom
|[[counter]]
|4
|4
|-
|[[medicine]]
|4
|4
|-
|[[shelves]]
|4
|4
|-
|pharmacy
|[[shelves]]
|4
|4
|}Razors are most often found in [[Containers#Medicine Cabinet|medicine cabinets]] and [[Containers#Counters|bathroom counters]], though they very rarely spawn as loot on the [[corpse]]s of [[zombie]]s.
 
==Code==
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 1832
  | source = newitems.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Razor
{
    DisplayCategory = Junk,
Weight = 0.2,
Type = Normal,
DisplayName = Razor,
Icon = Razor,
MetalValue = 5,
StaticModel = DisposableRazor,
WorldStaticModel = Razor_Ground,
Tags = Razor,
}
}}
}}


==See also==
==See also==
* [[Comb]]
*[[Scissors]]
* [[Toothbrush]]
 
{{Navbox equipment|household}}
 
[[Category:Junk]]
 
{{Navbox miscellaneous items|junk}}
{{Navbox miscellaneous items|appearance}}

Revision as of 11:22, 26 March 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Razor
Razor Model.png
General
Category
Junk
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Properties
Material
Metal
Metal quantity
5
Technical
Tags
Razor
Item ID
Base.Razor

Razor can modify the type of beard of the player or used to shave hair. In all cases, to modify beard or shaving hair, razor can be replaced by scissors.

Distribution

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

Containers
Building/Room Container Rolls Chance
aesthetic counter 4 4
bathroom counter 4 4
medicine 4 4
shelves 4 4
pharmacy shelves 4 4

Razors are most often found in medicine cabinets and bathroom counters, though they very rarely spawn as loot on the corpses of zombies.

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 Razor
	{
	    DisplayCategory = Junk,
		Weight	=	0.2,
		Type	=	Normal,
		DisplayName	=	Razor,
		Icon	=	Razor,
		MetalValue = 5,
		StaticModel = DisposableRazor,
		WorldStaticModel = Razor_Ground,
		Tags = Razor,
	}

See also

Template:Navbox miscellaneous items Template:Navbox miscellaneous items