Frying Pan: Difference between revisions

From PZwiki
m (→‎top: Category update: "Melee weapons")
(added CodeBox, Condition and other fixes/updates/adjustments)
Line 1: Line 1:
{{Languages}}{{Header|Project Zomboid|Items|Weapons|Melee weapons|type=Weapon|version=Version 40|incver=9}}{{Infobox weapon
{{Languages}}
{{Header|Project Zomboid|Items|Weapons|Melee weapons|type=Weapon|version=Version 41|incver=78.16}}
{{Infobox weapon
|display_name=Frying Pan
|display_name=Frying Pan
|name_colour=Weapon
|name_colour=Weapon
Line 8: Line 10:
|alternate_name=Frying Pan
|alternate_name=Frying Pan
|alternate_link=
|alternate_link=
<!--GENERAL-->
|category=Cooking
|category=Cooking
|skill_type=Short Blunt
|skill_type=Short Blunt
Line 13: Line 16:
|function=[[Cooking]]
|function=[[Cooking]]
|equipped=One-handed
|equipped=One-handed
|skill_type=SmallBlunt
|attachment_type=Pan
<!--DAMAGE-->
|type=Blunt
|type=Blunt
|min_range=0.61
|min_range=0.61
|max_range=1.1
|max_range=1.1
|swing_time=3
|base_speed=1
|condition_max=10
|condition_max=10
|min_damage=0.3
|min_damage=0.3
Line 26: Line 32:
|push_back=0.5
|push_back=0.5
|knockdown=1.3
|knockdown=1.3
<!--TECHNICAL-->
|class_name=Base.Pan
|class_name=Base.Pan
}}A '''frying pan''' is a blunt melee [[weapon]] used in [[cooking]].
}}A '''frying pan''' is a blunt melee [[weapon]] used in [[cooking]].
Line 32: Line 39:


===Weapon===
===Weapon===
The frying pan has a short range and can only hit one opponent per swing, making it difficult to fight multiple zombies at once.
The frying pan has a short range and can only hit one opponent per swing, making it difficult to fight multiple zombies at once. Using the frying pan as a weapon increases the rate of [[Moodles#Endurance|exhaustion]] more than most other weapons.  


===Breaking doors===
===Breaking doors===
Line 41: Line 48:


==Condition==
==Condition==
The frying pan is a [[Skills#Blunt|blunt]] weapon, therefore being influenced by the blunt skills: accuracy, guard and maintenance. It has a maximum condition of 10 and will be damaged depending on the player's maintenance skill. The chance of losing durability is: <code>1 in (12 + maintenance x 2)</code>
The frying pan has a maximum condition of 10. Its rate of degradation is influenced by the [[Skills|short blunt]] and [[Skills|maintenance]] skills. The chance of losing [[durability]] can be simplified to the following formula: <code>1 in (12 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the short blunt and maintenance skills.<br>
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|short blunt]] skills.
{{Durability weapon|12}}


===Repairing===
===Repairing===
Line 60: Line 69:
It should be noted that repairing the frying pan makes following repairs less likely to succeed and can, if repaired numerous times, cause reduced durability instead of increased.
It should be noted that repairing the frying pan makes following repairs less likely to succeed and can, if repaired numerous times, cause reduced durability instead of increased.


==Cooking==
==Crafting==
===Cooking===
{{Main|Cooking}}
Frying pans can be used to cook a [[Recipe Ingredients#Stir Fry & Roasted Vegetables Ingredients|stir fry]] using ingredients including, but not limited to, [[Bacon|bacon]], [[Dry Ramen Noodles|ramen]], [[Corn|corn]] and [[Onion|onions]].
Frying pans can be used to cook a [[Recipe Ingredients#Stir Fry & Roasted Vegetables Ingredients|stir fry]] using ingredients including, but not limited to, [[Bacon|bacon]], [[Dry Ramen Noodles|ramen]], [[Corn|corn]] and [[Onion|onions]].
{{Crafting header|2}}
{{Crafting cooking|311|ing=2}}
|}


==Distribution==
==Distribution==
Line 67: Line 81:


==Code==
==Code==
 
{{CodeBox|
===Item===
===Item===
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeSnip
{{Retrieved|version=41|incver=78.16}}
  | lang = java
<pre>
  | line = true
        item Pan
  | start = 1236
  | source = items_weapons.txt
  | retrieved = true
  | version = 41
  | incver = 78.16
  | code =
item Pan
     {
     {
         DisplayCategory = Cooking,
         DisplayCategory = Cooking,
         MaxRange       =       1.1,
         MaxRange = 1.1,
         WeaponSprite   =       FryingPan,
         WeaponSprite = FryingPan,
         MinAngle       =       0.67,
         MinAngle = 0.67,
         Type   =       Weapon,
         Type = Weapon,
         MinimumSwingTime       =       3,
         MinimumSwingTime = 3,
         KnockBackOnNoDeath     =       True,
         KnockBackOnNoDeath = True,
         SwingAmountBeforeImpact =       0.02,
         SwingAmountBeforeImpact = 0.02,
         Categories     =       Improvised;SmallBlunt,
         Categories = Improvised;SmallBlunt,
         ConditionLowerChanceOneIn       =       12,
         ConditionLowerChanceOneIn = 12,
         Weight =       1,
         Weight = 1,
         SplatNumber     =       1,
         SplatNumber = 1,
         PushBackMod     =       0.5,
         PushBackMod = 0.5,
         SubCategory     =       Swinging,
         SubCategory = Swinging,
         ConditionMax   =       10,
         ConditionMax = 10,
         MaxHitCount     =       1,
         MaxHitCount = 1,
         DoorDamage     =       3,
         DoorDamage = 3,
         SwingAnim       =       Bat,
         SwingAnim = Bat,
         DisplayName     =       Frying Pan,
         DisplayName = Frying Pan,
         MinRange       =       0.61,
         MinRange = 0.61,
         SwingTime       =       3,
         SwingTime = 3,
         KnockdownMod   =       1.3,
         KnockdownMod = 1.3,
         SplatBloodOnNoDeath     =       FALSE,
         SplatBloodOnNoDeath = FALSE,
         Icon   =       Pan,
         Icon = Pan,
         RunAnim =       Run_Weapon2,
         RunAnim = Run_Weapon2,
         IdleAnim       =       Idle_Weapon2,
         IdleAnim = Idle_Weapon2,
         TreeDamage  =  0,
         TreeDamage  =  0,
         EnduranceMod = 1.3,
         EnduranceMod = 1.3,
         MetalValue = 20,
         MetalValue = 20,
         MinDamage       =       0.3,
         MinDamage = 0.3,
         MaxDamage       =       0.5,
         MaxDamage = 0.5,
         CriticalChance =       30,
         CriticalChance = 30,
         CritDmgMultiplier = 2,
         CritDmgMultiplier = 2,
         BaseSpeed = 1,
         BaseSpeed = 1,
        WeaponLength = 0.21,
    WeaponLength = 0.21,
        AttachmentType = Pan,
    AttachmentType = Pan,
         BreakSound     =       FryingPanBreak,
         BreakSound = FryingPanBreak,
         DoorHitSound = FryingPanHit,
         DoorHitSound = FryingPanHit,
                HitSound = FryingPanHit,
HitSound = FryingPanHit,
                HitFloorSound = FryingPanHit,
HitFloorSound = FryingPanHit,
                SwingSound = FryingPanSwing,
SwingSound = FryingPanSwing,
     }
     }
</pre>
}}


===Repair===
===Repair===
'''''From fixing.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeSnip
{{Retrieved|version=41|incver=78.16}}
  | lang = java
<pre>
  | line = true
  | start = 489
  | source = fixing.txt
  | retrieved = true
  | version = 41
  | incver = 78.16
  | code =
     fixing Fix Pan
     fixing Fix Pan
     {
     {
Line 130: Line 156:
       Fixer : Scotchtape=3,
       Fixer : Scotchtape=3,
     }
     }
</pre>
}}
}}


==See also==
==See also==

Revision as of 06:34, 1 January 2024

Frying Pan
Frying Pan
Frying Pan
General
Category Cooking
Encumbrance
Heavy Load
1
Function Cooking
Equipped One-handed
Condition max. 10
Skill Short Blunt
Attachment Back
Damage
Type Blunt
Attack speed 1
Range 0.61–1.1 tiles
Damage 0.3–0.5
Crit chance 30%
Tree damage 0
Door damage 3
Knockback 0.5
Knockdown 1.3
Technical details
Base ID Base.Pan

A frying pan is a blunt melee weapon used in cooking.

Usage

Weapon

The frying pan has a short range and can only hit one opponent per swing, making it difficult to fight multiple zombies at once. Using the frying pan as a weapon increases the rate of exhaustion more than most other weapons.

Breaking doors

It is mostly ineffective at bashing down doors, dealing just 3 damage per hit. For comparison, an axe deals 35 damage.

Chopping trees

It cannot be used to chop trees, dealing 0 damage per hit. For comparison, an axe deals 35 damage.

Condition

The frying pan has a maximum condition of 10. Its rate of degradation is influenced by the short blunt and maintenance skills. The chance of losing durability can be simplified to the following formula: 1 in (12 + maintenanceMod × 2). Where "maintenanceMod" is calculated using the short blunt and maintenance skills.
Below is an example of the chance of losing durability at varying levels of the maintenance and short blunt skills.

For how this is calculated, see: Condition
Maintenance skill Weapon skill Durability lower chance
0 0 1/12 (8%)
0 4 1/14 (7%)
0 8 1/16 (6%)
4 0 1/16 (6%)
8 0 1/20 (5%)
4 4 1/18 (6%)
4 8 1/20 (5%)
8 8 1/24 (4%)
10 10 1/26 (4%)

Repairing

Materials that can be used to repair the frying pan, based on first time repairing.

Repair Frying Pan
DuctTape.png
Potentially repairs: 50%
Chance of success: 95%
Glue.png
Potentially repairs: 20%
Chance of success: 95%
Scotchtape.png
Potentially repairs: 10%
Chance of success: 95%

It should be noted that repairing the frying pan makes following repairs less likely to succeed and can, if repaired numerous times, cause reduced durability instead of increased.

Crafting

Cooking

Main article: Cooking

Frying pans can be used to cook a stir fry using ingredients including, but not limited to, bacon, ramen, corn and onions.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2
Stir fry
Stir fry
0.75 Cooking none Pan.png
Frying Pan
(Base item)
Stir fry Ingredients
Stir fry Ingredients (1−6)
(consumed)

Distribution

Frying pans are often found in kitchen counters.

Code

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

Item

Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item Pan
    {
        DisplayCategory = Cooking,
        MaxRange	=	1.1,
        WeaponSprite	=	FryingPan,
        MinAngle	=	0.67,
        Type	=	Weapon,
        MinimumSwingTime	=	3,
        KnockBackOnNoDeath	=	True,
        SwingAmountBeforeImpact	=	0.02,
        Categories	=	Improvised;SmallBlunt,
        ConditionLowerChanceOneIn	=	12,
        Weight	=	1,
        SplatNumber	=	1,
        PushBackMod	=	0.5,
        SubCategory	=	Swinging,
        ConditionMax	=	10,
        MaxHitCount	=	1,
        DoorDamage	=	3,
        SwingAnim	=	Bat,
        DisplayName	=	Frying Pan,
        MinRange	=	0.61,
        SwingTime	=	3,
        KnockdownMod	=	1.3,
        SplatBloodOnNoDeath	=	FALSE,
        Icon	=	Pan,
        RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        TreeDamage  =   0,
        EnduranceMod = 1.3,
        MetalValue = 20,
        MinDamage	=	0.3,
        MaxDamage	=	0.5,
        CriticalChance	=	30,
        CritDmgMultiplier = 2,
        BaseSpeed = 1,
    	WeaponLength = 0.21,
    	AttachmentType = Pan,
        BreakSound	=	FryingPanBreak,
        DoorHitSound = FryingPanHit,
		HitSound = FryingPanHit,
		HitFloorSound = FryingPanHit,
		SwingSound = FryingPanSwing,
    }

Repair

Source: ProjectZomboid\media\scripts\fixing.txt

Retrieved: Build 41.78.16
fixing Fix Pan
    {
       Require : Pan,

       Fixer : DuctTape,
       Fixer : Glue=2,
       Fixer : Scotchtape=3,
    }

See also