Saucepan: Difference between revisions

From PZwiki
m (→‎top: category project: "The Game World")
(→‎{{Translation|Code}}: Code Box Update)
Line 74: Line 74:


=={{Translation|Code}}==
=={{Translation|Code}}==
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
''{{Translation|Saucepan}}'' {{Img_item|item=Saucepan}}
''{{Translation|Saucepan}}'' {{Img_item|item=Saucepan}}
{{Retrieved|version=41|incver=53}}
{{CodeBox
<pre>
| {{CodeSnip
item Saucepan
  | lang = java
  | line = true
  | start = 0
  | source = items_weapons.txt
  | retrieved = true
  | version = 41
  | incver = 53
  | code =
item Saucepan
{
{
Weight = 0.7,
  Weight               = 0.7,
CanStoreWater = TRUE,
  CanStoreWater         = TRUE,
DisplayName = Saucepan,
  DisplayName           = Saucepan,
ReplaceOnUseOn = WaterSource-WaterSaucepan,
  ReplaceOnUseOn       = WaterSource-WaterSaucepan,
Icon = SaucepanEmpty,
  Icon                 = SaucepanEmpty,
MetalValue = 30,
  MetalValue           = 30,
RainFactor = 0.8,
  RainFactor           = 0.8,
StaticModel = SaucePan,
  StaticModel           = SaucePan,
Tooltip = Tooltip_item_RainFromGround,
  Tooltip               = Tooltip_item_RainFromGround,
MaxRange = 1,
  MaxRange             = 1,
WeaponSprite = SaucePan,
  WeaponSprite         = SaucePan,
MinAngle = 0.65,
  MinAngle             = 0.65,
Type = Weapon,
  Type                 = Weapon,
MinimumSwingTime = 2,
  MinimumSwingTime     = 2,
KnockBackOnNoDeath = FALSE,
  KnockBackOnNoDeath   = FALSE,
SwingAmountBeforeImpact = 0.02,
  SwingAmountBeforeImpact = 0.02,
Categories = Improvised;SmallBlunt,
  Categories           = Improvised;SmallBlunt,
ConditionLowerChanceOneIn = 10,
  ConditionLowerChanceOneIn = 10,
SplatNumber = 1,
  SplatNumber           = 1,
PushBackMod = 0.3,
  PushBackMod           = 0.3,
SubCategory = Swinging,
  SubCategory           = Swinging,
ConditionMax = 5,
  ConditionMax         = 5,
MaxHitCount = 2,
  MaxHitCount           = 2,
DoorDamage = 1,
  DoorDamage           = 1,
SwingAnim = Bat,
  SwingAnim             = Bat,
MinRange = 0.61,
  MinRange             = 0.61,
SwingTime = 2,
  SwingTime             = 2,
KnockdownMod = 0,
  KnockdownMod         = 0,
SplatBloodOnNoDeath = FALSE,
  SplatBloodOnNoDeath   = FALSE,
BreakSound = BreakMetalItem,
  BreakSound           = BreakMetalItem,
TreeDamage = 0,
  TreeDamage           = 0,
CriticalChance = 30,
  CriticalChance       = 30,
CritDmgMultiplier = 2,
  CritDmgMultiplier     = 2,
MinDamage = 0.2,
  MinDamage             = 0.2,
MaxDamage = 0.7,
  MaxDamage             = 0.7,
BaseSpeed = 1,
  BaseSpeed             = 1,
WeaponLength = 0.2,
  WeaponLength         = 0.2,
AttachmentType = Saucepan,
  AttachmentType       = Saucepan,
}
}
</pre>
  }}
 
}}
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''


''{{Translation|Saucepan with Water}}'' {{Img_item|item=WaterSaucepan}}
''{{Translation|Saucepan with Water}}'' {{Img_item|item=WaterSaucepan}}
{{Retrieved|version=41|incver=78.16}}
{{CodeBox
<pre>
| {{CodeSnip
item WaterSaucepan
  | lang = java
  | line = true
  | start = 0
  | source = items.txt
  | retrieved = true
  | version = 41
  | incver = 78.16
  | code =
item WaterSaucepan
{
{
DisplayName = Saucepan with Water,
  DisplayName           = Saucepan with Water,
DisplayCategory = Water,
  DisplayCategory       = Water,
Type = Drainable,
  Type                   = Drainable,
Weight = 2,
  Weight                 = 2,
Icon = SaucepanEmpty,
  Icon                   = SaucepanEmpty,
CanStoreWater = TRUE,
  CanStoreWater         = TRUE,
ConditionMax = 5,
  ConditionMax           = 5,
EatType = Kettle,
  EatType               = Kettle,
FillFromDispenserSound = GetWaterFromDispenserMetalMedium,
  FillFromDispenserSound = GetWaterFromDispenserMetalMedium,
FillFromTapSound = GetWaterFromTapMetalMedium,
  FillFromTapSound       = GetWaterFromTapMetalMedium,
IsCookable = TRUE,
  IsCookable             = TRUE,
IsWaterSource = TRUE,
  IsWaterSource         = TRUE,
RainFactor = 0.8,
  RainFactor             = 0.8,
ReplaceOnDeplete = Saucepan,
  ReplaceOnDeplete       = Saucepan,
ReplaceOnUseOn = WaterSource-WaterSaucepan,
  ReplaceOnUseOn         = WaterSource-WaterSaucepan,
Tooltip = Tooltip_item_RainFromGround,
  Tooltip               = Tooltip_item_RainFromGround,
UseDelta = 0.05,
  UseDelta               = 0.05,
UseWhileEquipped = FALSE,
  UseWhileEquipped       = FALSE,
StaticModel = SaucePan,
  StaticModel           = SaucePan,
WorldStaticModel = WaterSaucepan,
  WorldStaticModel       = WaterSaucepan,
Tags = HasMetal,
  Tags                   = HasMetal,
}
}
</pre>
  }}
}}


=={{Translation|See also}}==
=={{Translation|See also}}==

Revision as of 04:41, 13 January 2024

Saucepan
Saucepan
Saucepan Filled Saucepan
General
Category Weapon
Encumbrance
Heavy Load

(Empty)
0.7
Encumbrance
Heavy Load

(Full)
2
Function Cooking utensil
Capacity 20 units
Contents Water
Can boil water True
Rain factor 0.8
Condition max. 5
Skill Short Blunt
Attachment Back
Damage
Type SmallBlunt
Attack speed 2
Range 0.61–1 tiles
Damage 0.2–0.7
Knockback 0.3
Technical details
Base ID (Empty) Base.Saucepan
Base ID (Full) Base.WaterSaucepan
Can be used to collect rainwater when placed on the ground outside
— In-game tooltip

A saucepan is a weapon and water container used in cooking.

Usage

Weapon

As of build 41 the saucepan can be used as a weapon. It can only be used as a weapon when empty.

Water storage

A saucepan can be filled with water from a water source, producing a saucepan with water. To fill a saucepan: Right-click on a water source and "Refill Saucepan". It can hold the equivalent of 20 mugs of water. It is an alternative storage space for water to water bottles, and is automatically drunk by the player to satiate thirst. However, saucepans are significantly heavier than standard water bottles.

A saucepan can be used to purify tainted water, which is dirty water found in unsanitary sources, such as a lake or rain.

Condition

The condition of the saucepan is influenced by the maintenance skill. It has a maximum condition of just 5 and will be damaged depending on the player's maintenance skill. The chance of losing durability is: 1 in (10 + maintenance x 2)

Crafting

Cooking

Main article: Cooking

A full saucepan can be used to cook rice and pasta, which can be used to prepare custom-made meals.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3
SaucepanFilled.png
Recipe ingredients
0 XP none SaucepanEmpty.png
Saucepan
(consumed)
WaterDrop.png
Water
(25 units)

(consumed)
SpagettiRaw.png
Pasta
(10 units)

(consumed)
SaucepanFilled.png
Recipe ingredients
0 XP none SaucepanEmpty.png
Saucepan
(consumed)
WaterDrop.png
Water
(25 units)

(consumed)
RiceRaw.png
Rice
(10 units)

(consumed)

First Aid

Main article: First Aid

Water can be heated in a saucepan, by placing it in a heat source, which can then be used to sterilize bandages. This is an alternative to using disinfectant or alcohol.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2
Bandage.png
Sterilized Bandage
0 XP none Bandage.png
Bandage
(consumed)
One of:
Alcohol.png Bottle of Disinfectant (3 units)
WhiskeyFull.png Bourbon (10 units)
Pot Water.png Cooking Pot (5 units) (Heat: -0.22)
SaucepanEmpty.png Saucepan (10 units) (Heat: -0.22)

(consumed)
Sterilized Rag
Sterilized Rag
0 XP none Rag.png
Ripped Sheets
(consumed)
One of:
Alcohol.png Bottle of Disinfectant (3 units)
WhiskeyFull.png Bourbon (10 units)
Pot Water.png Cooking Pot (5 units) (Heat: -0.22)
SaucepanEmpty.png Saucepan (10 units) (Heat: -0.22)

(consumed)

Distribution

Saucepans can be found in kitchen counters of many houses and restaurants.

Code

Saucepan Saucepan

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.53
item Saucepan
{
  Weight                = 0.7,
  CanStoreWater         = TRUE,
  DisplayName           = Saucepan,
  ReplaceOnUseOn        = WaterSource-WaterSaucepan,
  Icon                  = SaucepanEmpty,
  MetalValue            = 30,
  RainFactor            = 0.8,
  StaticModel           = SaucePan,
  Tooltip               = Tooltip_item_RainFromGround,
  MaxRange              = 1,
  WeaponSprite          = SaucePan,
  MinAngle              = 0.65,
  Type                  = Weapon,
  MinimumSwingTime      = 2,
  KnockBackOnNoDeath    = FALSE,
  SwingAmountBeforeImpact = 0.02,
  Categories            = Improvised;SmallBlunt,
  ConditionLowerChanceOneIn = 10,
  SplatNumber           = 1,
  PushBackMod           = 0.3,
  SubCategory           = Swinging,
  ConditionMax          = 5,
  MaxHitCount           = 2,
  DoorDamage            = 1,
  SwingAnim             = Bat,
  MinRange              = 0.61,
  SwingTime             = 2,
  KnockdownMod          = 0,
  SplatBloodOnNoDeath   = FALSE,
  BreakSound            = BreakMetalItem,
  TreeDamage            = 0,
  CriticalChance        = 30,
  CritDmgMultiplier     = 2,
  MinDamage             = 0.2,
  MaxDamage             = 0.7,
  BaseSpeed             = 1,
  WeaponLength          = 0.2,
  AttachmentType        = Saucepan,
}

Saucepan with Water Saucepan with Water

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\items.txt

Retrieved: Build 41.78.16
item WaterSaucepan
{
  DisplayName            = Saucepan with Water,
  DisplayCategory        = Water,
  Type                   = Drainable,
  Weight                 = 2,
  Icon                   = SaucepanEmpty,
  CanStoreWater          = TRUE,
  ConditionMax           = 5,
  EatType                = Kettle,
  FillFromDispenserSound = GetWaterFromDispenserMetalMedium,
  FillFromTapSound       = GetWaterFromTapMetalMedium,
  IsCookable             = TRUE,
  IsWaterSource          = TRUE,
  RainFactor             = 0.8,
  ReplaceOnDeplete       = Saucepan,
  ReplaceOnUseOn         = WaterSource-WaterSaucepan,
  Tooltip                = Tooltip_item_RainFromGround,
  UseDelta               = 0.05,
  UseWhileEquipped       = FALSE,
  StaticModel            = SaucePan,
  WorldStaticModel       = WaterSaucepan,
  Tags                   = HasMetal,
}

See also