Soap: Difference between revisions

From PZwiki
m (Fix typo: Updated item properties from newitems.txt)
m (Distribution table update)
(29 intermediate revisions by 5 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 40|incver=43}}{{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 header|ing=3}}<!-- Automatically generated by ReLookup. Subject RecipeLookup: 4033 -->
{{Crafting/sandbox2
{{Crafting/core|ing=3
|clothing_(clean)
| product_image = [[File:ClothingAnim.gif]] | product_name = [[Clothing|Clean Clothing]] | product_quantity = x1
| xp = <!-- Not present in the old template. Please fill in manually. -->
| sl = ''none''
| req =
| f1 = [[File:ClothingAnim.gif]] | i1 = [[Clothing|Dirty Clothing]]<br>or<br>[[Clothing|Bloody Clothing]] | q1 = x1 | tag1 = (consumed)
| f2 = [[File:Soap.png]] | i2 = [[Soap]]<br>or<br>[[Cleaning Liquid]] | q2 = (1 unit)
| f3 = [[File:Water drop.png|link=Water|Water]] | i3 = [[Water]] | q3 = (3 units) | tag3 = (consumed)
}}
}}
|}


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


==Distribution==
<!--BOT FLAG|Soap2|41.78.16-->
Soap can generally be found in bathroom [[Containers#Counters|counters]] and [[Containers#Medicine Cabinet|medicine cabinets]].
{{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">
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
    |+ {{ll|Containers}}
    ! Building / Room
    ! Container
    ! Rolls
    ! Chance
    |-
    | bathroom
    | {{ll|counter}}
    | 4
    | 10.0
    |-
    | bathroom
    | {{ll|shelves}}
    | 4
    | 10.0
    |-
    | changeroom
    | {{ll|counter}}
    | 4
    | 10.0
    |-
    | classroom
    | {{ll|counter}}
    | 4
    | 10.0
    |-
    | daycare
    | {{ll|counter}}
    | 4
    | 10.0
    |-
    | pharmacy
    | {{ll|shelves}}
    | 4
    | 4.0
    |-
    | prisoncells
    | {{ll|wardrobe}}
    | 4
    | 10.0
    |}
</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=41|incver=65}}
| {{CodeSnip
<nowiki> item Soap2
  | lang = java
DisplayCategory = Household,
  | line = true
Type = Drainable,
  | start = 1496
UseDelta = 0.05,
  | source = newitems.txt
UseWhileEquipped = FALSE,
  | retrieved = true
DisplayName = Soap,
  | version = 41.78.16
Icon = Soap,
  | code =
Weight = 0.1,
item Soap2
cantBeConsolided = TRUE,
    {
WorldStaticModel = Soap,</nowiki>
        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]]
*[[Cleaning Liquid]]
*[[Cleaning Liquid]]
*[[Health|Player Health]]
*[[Health]]
 
{{Navbox items|household_equipment}}

Revision as of 16:39, 24 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
Containers
Building / Room Container Rolls Chance
bathroom counter 4 10.0
bathroom shelves 4 10.0
changeroom counter 4 10.0
classroom counter 4 10.0
daycare counter 4 10.0
pharmacy shelves 4 4.0
prisoncells wardrobe 4 10.0

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