Letter Opener: Difference between revisions
(Corrected incorrect code (oops), and somewhat standardized the page.) |
m (Distribution table update) |
||
(29 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Items|Weapons|Melee weapons|Short blade weapons}} | ||
{{Page version|41.78.16}} | |||
{{Infobox | {{Infobox item | ||
| | |name=Letter Opener | ||
| | |model=LetterOpener_Model.png | ||
| | |icon=LetterOpener.png | ||
|icon_name=Letter Opener | |||
| | <!--GENERAL--> | ||
|category= | |category=Household | ||
|weight=0.3 | |weight=0.3 | ||
|equipped=One-handed | |equipped=One-handed | ||
|type= | |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 | ||
|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--> | ||
|item_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|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. | ||
Its | ===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 [[Skills|short blade]] and [[Skills|maintenance]] skills. The chance of losing [[durability]] can be simplified to the following formula: <code>1 in (1 + maintenanceMod × 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== | |||
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/sandbox2 | |||
|spear_with_letter_opener | |||
|letter_opener | |||
}} | |||
==Distribution== | |||
The loot distributions can be found in the table(s) below. | |||
<!--BOT FLAG|LetterOpener|41.78.16--> | |||
{{clear}} | |||
<div class="togglebox theme-red"> | |||
<div>LetterOpener distribution | |||
<span class="mw-customtoggle-togglebox-LetterOpener" 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-LetterOpener"> | |||
<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 | |||
|- | |||
| all | |||
| {{ll|officedrawers}} | |||
| 4 | |||
| 1.0 | |||
|- | |||
| office | |||
| {{ll|desk}} | |||
| 4 | |||
| 1.0 | |||
|} | |||
</div> | |||
</div><div style="clear:both;"></div> | |||
</div></div><div class="toggle large mw-customtoggle-togglebox-LetterOpener" title="{{int:show}}/{{int:hide}}"></div></div> | |||
<!--END BOT FLAG|LetterOpener|41.78.16--> | |||
== Code == | == Code == | ||
{{CodeBox| | |||
{{CodeSnip | |||
| lang = java | |||
MaxRange | | line = true | ||
WeaponSprite | | start = 3519 | ||
MinAngle | | source = items_weapons.txt | ||
Type | | retrieved = true | ||
MinimumSwingTime = 2, | | version = 41.78.16 | ||
KnockBackOnNoDeath = FALSE, | | code = | ||
SwingAmountBeforeImpact = 0.02, | item LetterOpener | ||
Categories | { | ||
ConditionLowerChanceOneIn = 1, | DisplayCategory = Household, | ||
Weight | MaxRange = 0.8, | ||
SplatNumber | WeaponSprite = LetterOpener, | ||
PushBackMod | MinAngle = 0.65, | ||
SubCategory | Type = Weapon, | ||
AimingMod | MinimumSwingTime = 2, | ||
ConditionMax | KnockBackOnNoDeath = FALSE, | ||
MaxHitCount | SwingAmountBeforeImpact = 0.02, | ||
IsAimedHandWeapon = TRUE, | Categories = SmallBlade, | ||
DoorDamage | ConditionLowerChanceOneIn = 1, | ||
SwingAnim | Weight = 0.3, | ||
DisplayName | SplatNumber = 2, | ||
MinRange | PushBackMod = 0.3, | ||
CloseKillMove | SubCategory = Stab, | ||
SwingTime | AimingMod = 0.8, | ||
KnockdownMod | ConditionMax = 5, | ||
SplatBloodOnNoDeath = TRUE, | MaxHitCount = 1, | ||
Icon | IsAimedHandWeapon = TRUE, | ||
RunAnim | DoorDamage = 1, | ||
SwingAnim = Stab, | |||
DisplayName = Letter Opener, | |||
MinRange = 0.61, | |||
CloseKillMove = Jaw_Stab, | |||
SwingTime = 2, | |||
KnockdownMod = 0, | |||
SplatBloodOnNoDeath = TRUE, | |||
Icon = LetterOpener, | |||
RunAnim = Run_Weapon2, | |||
WeaponLength | IdleAnim = Idle_Weapon2, | ||
TreeDamage = 2, | |||
EnduranceMod = 0.5, | |||
BreakSound = LetterOpenerBreak, | |||
MetalValue = 15, | |||
HitSound | CriticalChance = 5, | ||
AttachmentType | 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== | |||
*[[Ice Pick]] | |||
*[[Scissors]] | |||
{{Navbox items|blade}} | |||
[[Category:Household]] |
Revision as of 15:54, 24 April 2024
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.
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 | Ingredients | Tools | Requirements | Workstation | XP |
---|---|---|---|---|---|
Spear with Letter Opener |
Crafted Spear ×1 Letter Opener ×1 Duct Tape ×2 unit(s) |
none | none | none | none |
Letter Opener |
Spear with Letter Opener ×1 | none | none | none | none |
Distribution
The loot distributions can be found in the table(s) below.
Building / Room | Container | Rolls | Chance |
---|---|---|---|
all | officedrawers | 4 | 1.0 |
office | desk | 4 | 1.0 |
Code
Source: ProjectZomboid\media\scripts\items_weapons.txt
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,
}