Letter Opener: Difference between revisions

From PZwiki
m (→‎top: Category update: "Melee weapons")
(added CodeBox, infobox params, Condition)
Line 1: Line 1:
{{languages}}
{{languages}}
{{Header|The Game World|Items|Weapons|Melee weapons|version=Version 41|incver=53}}
{{Header|The Game World|Items|Weapons|Melee weapons|version=Version 41|incver=78.16}}
{{Infobox weapon
{{Infobox weapon
|display_name=Letter Opener
|display_name=Letter Opener
Line 8: Line 8:
|image_width=150px
|image_width=150px
|alternate_image=LetterOpener.png
|alternate_image=LetterOpener.png
|alternate_name=
|alternate_name=Letter Opener
|alternate_link=
<!--GENERAL-->
|category=Weapon
|category=Household
|weight=0.3
|weight=0.3
|equipped=One-handed
|equipped=One-handed
|type=Blade
|condition_max=5
|attachment_type=Screwdriver
|skill_type=SmallBlade
<!--DAMAGE-->
|type=Slash
|damage_make_hole=true
|base_speed=N/A
|min_range=0.61
|min_range=0.61
|max_range=0.8
|max_range=0.8
|swing_time=2
|condition_max=5
|min_damage=0.1
|min_damage=0.1
|max_damage=0.1
|max_damage=0.1
|push_back=0.3
|push_back=0.3
|kill_move=Jaw stab
|kill_move=Jaw stab
<!--TECHNICAL-->
|class_name=Base.LetterOpener
|class_name=Base.LetterOpener
}}
}}
Line 28: Line 33:
==Usage==
==Usage==
===Weapon===
===Weapon===
The letter opener is light, and in terms of durability, is worse than than the [[Kitchen Knife]], the [[Ice Pick]] and the [[Hunting Knife]]. As the letter opener is one of the weapons with the 'Jaw Stab' attack, it can kill a zombie instantly if close enough and timed correctly. It does, however, have a low maximum durability, allowing for few attacks before breaking.  
The letter opener is light, and in terms of durability, is worse than the [[Kitchen Knife|kitchen knife]], [[Ice Pick|ice pick]] and [[Hunting Knife|hunting knife]]. As the letter opener is one of the weapons with the 'Jaw Stab' attack, it can kill a zombie instantly if close enough and timed correctly. It does, however, have a low maximum durability, allowing for few attacks before breaking.  


It is a single attack weapon, so it is best if used in single combat or if zombies are relatively spread out when attacking.
It is a single attack weapon, so it is best if used in single combat or if zombies are relatively spread out when attacking.
===distribution===
can be found impaled on zombies from the early days of the game.


===Breaking doors===
===Breaking doors===
Line 40: Line 42:
===Chopping trees===
===Chopping trees===
The letter opener is a weapon that deals minimal damage (1) to trees. For comparison, an [[axe]] deals 35 damage.
The letter opener is a weapon that deals minimal damage (1) to trees. For comparison, an [[axe]] deals 35 damage.
==Condition==
The letter opener has a maximum condition of 5. Its rate of degradation is influenced by the [[Skills|short blade]] and [[Skills|maintenance]] skills. The chance of losing [[durability]] can be simplified to the following formula: <code>1 in (1 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the short blade and maintenance skills.<br>
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|short blade]] skills.
{{Durability weapon|1}}
===Repairing===
The letter opener cannot be repaired.


==Crafting==
==Crafting==
The letter opener can be attached to the end of a [[Crafted Spear|spear]]. The condition of the letter opener will be carried over to the spear.
{{Crafting header|ing=3}}
{{Crafting header|ing=3}}
{{Crafting survivalist|105|ing=3}}
{{Crafting survivalist|105|ing=3}}
{{Crafting survivalist|118|ing=3}}
{{Crafting survivalist|118|ing=3}}
|}
|}
===Distribution===
Can be found impaled on zombies from the early days of the game.


== Code ==
== Code ==
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|
{{Retrieved|version=41|incver=53}}
{{CodeSnip
<pre>    item LetterOpener
  | lang = java
  | line = true
  | start = 3519
  | source = items_weapons.txt
  | retrieved = true
  | version = 41
  | incver = 78.16
  | code =
    item LetterOpener
{
{
MaxRange = 0.8,
    DisplayCategory = Household,
WeaponSprite = LetterOpener,
MaxRange = 0.8,
MinAngle = 0.65,
WeaponSprite = LetterOpener,
Type = Weapon,
MinAngle = 0.65,
MinimumSwingTime = 2,
Type = Weapon,
KnockBackOnNoDeath = FALSE,
MinimumSwingTime = 2,
SwingAmountBeforeImpact = 0.02,
KnockBackOnNoDeath = FALSE,
Categories = SmallBlade,
SwingAmountBeforeImpact = 0.02,
ConditionLowerChanceOneIn = 1,
Categories = SmallBlade,
Weight = 0.3,
ConditionLowerChanceOneIn = 1,
SplatNumber = 2,
Weight = 0.3,
PushBackMod = 0.3,
SplatNumber = 2,
SubCategory = Stab,
PushBackMod = 0.3,
AimingMod = 0.8,
SubCategory = Stab,
ConditionMax = 5,
AimingMod = 0.8,
MaxHitCount = 1,
ConditionMax = 5,
IsAimedHandWeapon = TRUE,
MaxHitCount = 1,
DoorDamage = 1,
IsAimedHandWeapon = TRUE,
SwingAnim = Stab,
DoorDamage = 1,
DisplayName = Letter Opener,
SwingAnim = Stab,
MinRange = 0.61,
DisplayName = Letter Opener,
CloseKillMove = Jaw_Stab,
MinRange = 0.61,
SwingTime = 2,
CloseKillMove = Jaw_Stab,
KnockdownMod = 0,
SwingTime = 2,
SplatBloodOnNoDeath = TRUE,
KnockdownMod = 0,
Icon = LetterOpener,
SplatBloodOnNoDeath = TRUE,
RunAnim = Run_Weapon2,
Icon = LetterOpener,
RunAnim = Run_Weapon2,
         IdleAnim = Idle_Weapon2,
         IdleAnim = Idle_Weapon2,
         TreeDamage  =  2,
         TreeDamage  =  2,
         EnduranceMod = 0.5,
         EnduranceMod = 0.5,
         BreakSound  =  BreakMetalItem,
         BreakSound  =  LetterOpenerBreak,
         MetalValue = 15,
         MetalValue = 15,
         CriticalChance = 5,
         CriticalChance = 5,
Line 88: Line 111:
         MinDamage = 0.1,
         MinDamage = 0.1,
         MaxDamage = 0.1,
         MaxDamage = 0.1,
WeaponLength = 0.25,
WeaponLength = 0.25,
         DamageCategory = Slash,
         DamageCategory = Slash,
         DamageMakeHole = TRUE,
         DamageMakeHole = TRUE,
         HitFloorSound = BladeHit,
         HitFloorSound = LetterOpenerHit,
         ImpactSound = BladeHit,
         ImpactSound = LetterOpenerHit,
HitSound = BladeHit,
        DoorHitSound = LetterOpenerHit,
AttachmentType = Screwdriver,
HitSound = LetterOpenerHit,
   }</pre>
SwingSound = LetterOpenerSwing,
AttachmentType = Screwdriver,
   }
}}
}}


== See Also ==
== See Also ==

Revision as of 13:38, 2 January 2024

Letter Opener
Letter Opener
Letter Opener
General
Category Household
Encumbrance
Heavy Load
0.3
Equipped One-handed
Condition max. 5
Skill Short Blade
Attachment Belt
Damage
Type Slash
Attack speed N/A
Range 0.61–0.8 tiles
Damage 0.1–0.1
Knockback 0.3
Execution Jaw stab
Technical details
Base ID Base.LetterOpener

A letter opener is a common early game melee weapon.

Usage

Weapon

The letter opener is light, and in terms of durability, is worse than the kitchen knife, ice pick and hunting knife. As the letter opener is one of the weapons with the 'Jaw Stab' attack, it can kill a zombie instantly if close enough and timed correctly. It does, however, have a low maximum durability, allowing for few attacks before breaking.

It is a single attack weapon, so it is best if used in single combat or if zombies are relatively spread out when attacking.

Breaking doors

The letter opener is a weapon that deals minimal damage (2) to doors. For comparison, an axe deals 35 damage.

Chopping trees

The letter opener is a weapon that deals minimal damage (1) to trees. For comparison, an axe deals 35 damage.

Condition

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

For how this is calculated, see: Condition
Maintenance skill Weapon skill Condition lower chance
0 0 1/1 (100%)
0 4 1/3 (33%)
0 8 1/5 (20%)
4 0 1/5 (20%)
8 0 1/9 (11%)
4 4 1/7 (14%)
4 8 1/9 (11%)
8 8 1/13 (8%)
10 10 1/15 (7%)

Repairing

The letter opener cannot be repaired.

Crafting

The letter opener can be attached to the end of a spear. The condition of the letter opener will be carried over to the spear.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3
SpearKnife.png
Spear with Letter Opener
0 XP none SpearStick.png
Crafted Spear
(consumed)
LetterOpener.png
Letter Opener
(consumed)
DuctTape.png
Duct Tape (2 units)
(consumed)
LetterOpener.png
Letter Opener
0 XP none SpearKnife.png
Spear with Letter Opener
(consumed)


Distribution

Can be found impaled on zombies from the early days of the game.

Code

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

Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item LetterOpener
	{
	    DisplayCategory = Household,
		MaxRange	=	0.8,
		WeaponSprite	=	LetterOpener,
		MinAngle	=	0.65,
		Type	=	Weapon,
		MinimumSwingTime	=	2,
		KnockBackOnNoDeath	=	FALSE,
		SwingAmountBeforeImpact	=	0.02,
		Categories	=	SmallBlade,
		ConditionLowerChanceOneIn	=	1,
		Weight	=	0.3,
		SplatNumber	=	2,
		PushBackMod	=	0.3,
		SubCategory	=	Stab,
		AimingMod	=	0.8,
		ConditionMax	=	5,
		MaxHitCount	=	1,
		IsAimedHandWeapon	=	TRUE,
		DoorDamage	=	1,
		SwingAnim	=	Stab,
		DisplayName	=	Letter Opener,
		MinRange	=	0.61,
		CloseKillMove = Jaw_Stab,
		SwingTime	=	2,
		KnockdownMod	=	0,
		SplatBloodOnNoDeath	=	TRUE,
		Icon	=	LetterOpener,
		RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        TreeDamage  =   2,
        EnduranceMod = 0.5,
        BreakSound  =   LetterOpenerBreak,
        MetalValue = 15,
        CriticalChance	=	5,
        CritDmgMultiplier = 10,
        MinDamage	=	0.1,
        MaxDamage	=	0.1,
 		WeaponLength = 0.25,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        HitFloorSound	=	LetterOpenerHit,
        ImpactSound	=	LetterOpenerHit,
        DoorHitSound = LetterOpenerHit,
		HitSound	=	LetterOpenerHit,
		SwingSound = LetterOpenerSwing,
		AttachmentType = Screwdriver,
  	}

See Also