Soap: Difference between revisions

From PZwiki
(→‎Code: CodeBox update)
m (Distribution table update)
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Languages}}
{{Header|Project Zomboid|Items|Miscellaneous items|Household}}
{{header/sandbox2|Project Zomboid|Items|Miscellaneous items|Household items}}
{{Page version|41.78.16}}
{{page version|40.43}}
{{Infobox item
{{Infobox drainable
|name=Soap
|display_name=Soap
|model=Soap_Model.png
|name_colour=Tool
|icon=Soap.png
|name_text_colour=Tool
|icon_name=Soap
|image=Soap_Model.png
|alternate_image=Soap.png
|alternate_name=Soap
|weight=0.1
|weight=0.1
|primary_use=Clean [[clothing]]
|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 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.  
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}}
{{Crafting/sandbox2
{{Crafting general|024|ing=3}}
|clothing_(clean)
|}
}}


==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">
    <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==
Line 31: Line 83:
| {{CodeSnip
| {{CodeSnip
   | lang = java
   | lang = java
   | line = false
   | line = true
  | start = 1496
   | source = newitems.txt
   | source = newitems.txt
   | retrieved = true
   | retrieved = true
   | version = 41
   | version = 41.78.16
  | incver = 65
   | code =
   | code =
item Soap2
item Soap2
{
    {
  DisplayCategory     = Household,
        DisplayCategory = Household,
  Type               = Drainable,
        Type             =         Drainable,
  UseDelta           = 0.05,
        UseDelta         =         0.05,
  UseWhileEquipped   = FALSE,
        UseWhileEquipped =           FALSE,
  DisplayName         = Soap,
        DisplayName =     Soap,
  Icon               = Soap,
        Icon = Soap,
  Weight             = 0.1,
        Weight = 0.1,
  cantBeConsolided    = TRUE,
        cantBeConsolided    =           TRUE,
  WorldStaticModel   = Soap,
        WorldStaticModel = Soap,
}
    }
  }}
}}
}}
}}


Line 57: Line 109:
*[[Health]]
*[[Health]]


{{Navbox equipment}}
{{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