Soap: Difference between revisions

From PZwiki
(added the new infobox and layout)
(Update distribution file)
 
(35 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{languages|Soap}}
{{Header|Project Zomboid|Items|Miscellaneous items|Household}}
{{header|The Game World|Items|type=Tool|version=Version 39|incver=67.5}}{{Infobox drainable
{{Page version|41.78.16}}
|display_name = Soap
{{Infobox item
|name_colour = Tool
|name=Soap
|name_text_colour = Tool
|model=Soap_Model.png
|image = Soap_120px.png
|icon=Soap.png
|weight = 0.1
|icon_name=Soap
|primary_use = Clean [[clothing]]
|weight=0.1
|primary_use=Clean [[clothing]]
|max_units=20
|max_units=20
|contents=Soap
|contents=Soap
|class_name = Base.Soap2
|item_id=Base.Soap2
}}'''Soap''' is a drainable miscellaneous [[item]].
}}
'''Soap''' is a drainable miscellaneous [[Items|item]].


==Usage==
==Usage==
Soap, along with [[water]], can be used to clean dirty or bloody [[clothing]]. Over the course of the zombie apocalypse, clothing will become dirty and bloody, which is dependant on the player's activities. If the player is wearing dirty or bloody clothing over an open wound, the chance of [[Health#Types of Injuries|infection]] will increase.  
Soap, along with [[water]], can be used to clean dirty or bloody [[clothing]]. Over the course of the zombie apocalypse, clothing will become dirty and bloody, which is dependent on the player's activities. If the player is wearing dirty or bloody clothing over an open wound, the chance of [[Health#Types of Injuries|infection]] will increase.


== Crafting ==
==Crafting==
{{Crafting table header}}
{{Crafting/sandbox2
{{RecipeLookup|4033}}
|clothing_(clean)
{{Crafting table footer}}
}}


==Distribution==
==Distribution==
Soap can generally be found in bathroom [[Containers#Counters|counters]] and [[Containers#Medicine Cabinet|medicine cabinets]].
The loot distributions can be found in the table(s) below.
 
<!--BOT FLAG|Soap2|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>Soap2 distribution
        <span class="mw-customtoggle-togglebox-Soap2" title="{{int:show}} / {{int:hide}}" style="float: right; padding-right: 30px; padding-top: 4px; font-size: 0.7em; font-weight: normal;">{{int:show}} / {{int:hide}}</span></div>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Soap2">
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
<div class="pz-container">
<div id="containers" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | bathroom
    | {{ll|counter}}
    | 23.28%
    |-
    | bathroom
    | {{ll|shelves}}
    | 23.28%
    |-
    | changeroom
    | {{ll|counter}}
    | 23.28%
    |-
    | classroom
    | {{ll|counter}}
    | 23.28%
    |-
    | daycare
    | {{ll|counter}}
    | 23.28%
    |-
    | pharmacy
    | {{ll|shelves}}
    | 10.78%
    |-
    | prisoncells
    | {{ll|wardrobe}}
    | 23.28%
    |-
    | schoolstorage
    | {{ll|metal_shelves}}
    | 23.28%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Soap2" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Soap2|41.78.16-->


==Code==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=39|incver=67.5}}
| {{CodeSnip
<pre> item Soap2
  | lang = java
Type = Drainable,
  | line = true
UseDelta = 0.05,
  | start = 1496
UseWhileEquipped = FALSE,
  | source = newitems.txt
DisplayName = Soap,
  | retrieved = true
Icon = Soap,
  | version = 41.78.16
Weight = 0.1,
  | code =
cantBeConsolided = TRUE,</pre>
item Soap2
    {
        DisplayCategory = Household,
        Type             =         Drainable,
        UseDelta         =         0.05,
        UseWhileEquipped =           FALSE,
        DisplayName =     Soap,
        Icon = Soap,
        Weight = 0.1,
        cantBeConsolided   =           TRUE,
        WorldStaticModel = Soap,
    }
}}
}}


==See also==
==See also==
*[[Bleach]]
*[[Bleach]]
*[[Health|Player Health]]
*[[Cleaning Liquid]]
*[[Health]]
 
{{Navbox items|household_equipment}}

Latest revision as of 13:55, 30 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]
Soap
Soap Model.png
General
Encumbrance
Moodle Icon HeavyLoad.png
0.1
Function
Clean clothing
Properties
Contents
Soap
Capacity
20 units
Technical
Item ID
Base.Soap2

Soap is a drainable miscellaneous item.

Usage

Soap, along with water, can be used to clean dirty or bloody clothing. Over the course of the zombie apocalypse, clothing will become dirty and bloody, which is dependent on the player's activities. If the player is wearing dirty or bloody clothing over an open wound, the chance of infection will increase.

Crafting

Product Ingredients Tools Requirements Workstation XP
Vest White.png
Clothing (clean)
One of:
Soap.png Soap ×1 unit(s)
CleaningLiquid.png Cleaning Liquid ×1
Each of:
Vest White.png Clothing ×1
WaterDrop.png Water ×3 unit(s)
none none none none

Distribution

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

Soap2 distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
bathroom counter 23.28%
bathroom shelves 23.28%
changeroom counter 23.28%
classroom counter 23.28%
daycare counter 23.28%
pharmacy shelves 10.78%
prisoncells wardrobe 23.28%
schoolstorage metal_shelves 23.28%

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 Soap2
    {
        DisplayCategory = Household,
        Type	            =	        Drainable,
        UseDelta	        =	        0.05,
        UseWhileEquipped	=           FALSE,
        DisplayName			=		    Soap,
        Icon				=			Soap,
        Weight				=			0.1,
        cantBeConsolided    =           TRUE,
        WorldStaticModel = Soap,
    }

See also