Katana: Difference between revisions

From PZwiki
(added more minor info and the heading tabs for doors and trees)
m (Automated Formatting)
(41 intermediate revisions by 14 users not shown)
Line 1: Line 1:
{{languages|Katana}}
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Long blade weapons}}
{{header|The Game World|Items|Weapons|Melee Weapons|type=Weapon|version=Version 41|incver=50}}{{Infobox weapon
{{Page version|41.78.16}}
|display_name=Katana
{{Infobox item
|name_colour=Weapon
|name=Katana
|name_text_colour=Weapon
|model=Katana_Model.png
|image=Katana.png
|icon=Katana.png
|icon_name=Katana
|category=Weapon
|category=Weapon
|weight=2
|weight=2
|weapon_type=LongBlade
|primary_use=Weapon
|primary_use=Weapon
|equipped=Two-handed
|equipped=Two-handed
|condition_max=10
|condition_max=10
|type=Blade
|skill_type=LongBlade
|swing_time=3
<!--DAMAGE-->
|type=Slash
|base_speed=1
|min_range=0.61
|min_range=0.61
|max_range=1.4
|max_range=1.4
|min_damage=8
|min_damage=8
|max_damage=8
|max_damage=8
|tree_damage=1
|door_damage=8
|push_back=0.5
|push_back=0.5
|knockdown=2
<!--TECHNICAL-->
|class_name=Base.Katana
|item_id=Base.Katana
}}
}}
The '''Katana''' is a two-handed blade melee [[Weapons|weapon]]
A '''katana''' is a two-handed long blade [[Weapons|weapon]].


==Usage==
==Usage==
===Weapon===
{{Pros-cons
The katana is the highest damage weapon in the game, as displayed by its full damage bar in the UI.
<!-- #PROS# - below this line -->
|pros1 = Highest damage of any weapon in the game.
|pros2 = Good durability and range.
<!-- #CONS# - below this line -->
|cons1 = Hard to level up long blade skill (The katana and [[machete]] are the only long blade weapons).
|cons2 = Cannot be repaired.
|cons3 = Very difficult to find.
}}
 
==Weapon==
The katana has the highest damage output of any weapon in the game, surpassing all melee weapons and firearms. It can frequently kill zombies in just one hit, and has a good range and attack speed. However, katanas are very rare if not ''the'' rarest making it difficult to level up the long blade skill.
 
It can hit up to 3 enemies at a time (with multi-hit enabled), dealing 8 damage to enemies (unless a critical hit) from up to 1.4 tiles away at an attack speed of 1. Although equipped in two hands, it can be used as a one-handed weapon at the cost of reduced impact.
 
The weapon can be attached to the character's back for quick access and encumbrance reduction.


===Breaking Doors===
===Breaking doors===
The katana is quite ineffective at breaking down [[Wooden Door|doors]], dealing only 8 damage. For comparison, an [[Axe#Breaking Doors|axe]] deals 35.
The katana is quite ineffective at breaking down [[door]]s, dealing only 8 damage. For comparison, an [[Axe#Breaking doors|axe]] deals 35.


===Chopping Trees===
===Chopping trees===
The katana is very ineffective at chopping down trees, dealing 1 damage. For comparison, an [[Axe#Chopping Trees]] deals 35.
The katana is very ineffective at chopping down trees, as it only deals 1 damage. For comparison, an [[Axe#Chopping trees|axe]] deals 35.
 
==Condition==
The katanas has a maximum condition of 10. Its rate of degradation is influenced by the [[Skills|long blunt]] and [[Skills|maintenance]] skills. The chance of losing [[durability]] can be simplified to the following formula: <code>1 in (15 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the long blunt and maintenance skills.<br>
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|long blade]] skills.
{{Durability weapon|15}}


==Distribution==
==Distribution==
The katana can be found in residential buildings in furniture such as [[Containers#Bedrooom Storage|wardrobes and drawers]]. Another possible place is the gun shop in [[West Point, KY]]. As with other weapons it is also possible to find the katana stabbed through a spawned [[Zombie|zombie]]. The katana has one of the lowest spawn rates due to its high damage.
The loot distributions can be found in the table(s) below.


==Repairing==
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
Unfortunately the katana can not be repaired as of yet. This makes using it for chopping down trees or breaking through doors an especially counter-intuitive idea as it is much  more effective at killing [[Zombie|zombies]].
! colspan="4" | Containers
|-
! Building/Room
! Container
! style="width: 3.2em;" | Rolls
! style="width: 3.2em;" | Chance
|-
|SafehouseLoot
|[[counter]]
|4
|0.5
|-
|closet
|[[crate]]
|4
|0.001
|-
|pawnshop
|[[displaycase]]
|4
|0.1
|}
 
===Buildings===
*The best place to find a katana is in a boarded up survivor house.
*Very rarely, the katana can be found in residential buildings in furniture such as [[Containers#Bedrooom Storage|wardrobes and drawers]].
*Katanas can also be found in gun shops such as the one located in [[West Point]], and pawn shops, which can be found in [[Louisville]].
 
===Zombies===
After 60 days have passed, the katana can be very rarely found impaled in the gut of a [[zombie]].
 
==Gallery==
<gallery>
HoldingKatana.jpg|Survivor wielding the katana
</gallery>


==Code==
==Code==
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 1501
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Katana
    {
        DisplayCategory = Weapon,
        MaxRange = 1.4,
        WeaponSprite = Katana,
        MinAngle = 0.8,
        Type = Weapon,
        MinimumSwingTime = 3,
        HitFloorSound = KatanaHit,
ImpactSound = KatanaHit,
        DoorHitSound = KatanaHit,
HitSound = KatanaHit,
SwingSound = KatanaSwing,
        KnockBackOnNoDeath = TRUE,
        SwingAmountBeforeImpact = 0.02,
        Categories = LongBlade,
        Weight = 2,
        ConditionLowerChanceOneIn = 15,
        PushBackMod = 0.5,
        SubCategory = Swinging,
        ConditionMax = 10,
        MaxHitCount = 3,
        DoorDamage = 8,
        SwingAnim = Bat,
        CriticalChance = 35,
        CritDmgMultiplier = 6,
        DisplayName = Katana,
        MinRange = 0.61,
        SwingTime = 3,
        HitAngleMod = -30,
        KnockdownMod = 0,
        Icon = Katana,
        RunAnim = Run_Weapon2,
        BreakSound  =  KatanaBreak,
        TreeDamage  =  1,
        CriticalChance = 30,
        CritDmgMultiplier = 10,
        MinDamage = 8,
        MaxDamage = 8,
        BaseSpeed = 1,
        WeaponLength = 0.3,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        TwoHandWeapon = TRUE,
        WeaponLength = 0.4,
        AttachmentType = BigBlade,
    }
}}
}}
 
==See also==
*[[Machete]]


{{Retrieved|version=41|incver=50}}
{{Navbox items|blade}}
<pre> item Katana
MaxRange = 1.4,
WeaponSprite = Katana,
MinAngle = 0.8,
Type = Weapon,
MinimumSwingTime = 3,
HitFloorSound = BladeHit,
ImpactSound = BladeHit,
HitSound = BladeHit,
KnockBackOnNoDeath = TRUE,
SwingAmountBeforeImpact = 0.02,
Categories = LongBlade,
Weight = 2,
ConditionLowerChanceOneIn = 25,
PushBackMod = 0.5,
SubCategory = Swinging,
ConditionMax = 10,
MaxHitCount = 1,
DoorDamage = 8,
SwingAnim = Bat,
CriticalChance = 35,
CritDmgMultiplier = 6,
DisplayName = Katana,
MinRange = 0.61,
SwingTime = 3,
HitAngleMod = -30,
KnockdownMod = 0,
Icon = Katana,
RunAnim = Run_Weapon2,
BreakSound = BreakMetalItem,
TreeDamage = 1,
CriticalChance = 30,
CritDmgMultiplier = 10,
MinDamage = 8,
MaxDamage = 8,
BaseSpeed = 1,
WeaponLength = 0.3,
DamageCategory = Slash,
DamageMakeHole = TRUE,
TwoHandWeapon = TRUE,
WeaponLength = 0.4,
AttachmentType = BigBlade,
</pre>

Revision as of 09:29, 14 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]
Katana
Katana Model.png
General
Category
Weapon
Encumbrance
Moodle Icon HeavyLoad.png
2
Equipped
Two-handed
Function
Weapon
Skill
Properties
Max condition
10
Performance
Damage
8–8
Door damage
8
Tree damage
1
Range
0.61–1.4
Attack speed
1
Knockback
0.5
Technical
Item ID
Base.Katana

A katana is a two-handed long blade weapon.

Usage

Pros Cons
  • Highest damage of any weapon in the game.
  • Good durability and range.
  • Hard to level up long blade skill (The katana and machete are the only long blade weapons).
  • Cannot be repaired.
  • Very difficult to find.

Weapon

The katana has the highest damage output of any weapon in the game, surpassing all melee weapons and firearms. It can frequently kill zombies in just one hit, and has a good range and attack speed. However, katanas are very rare if not the rarest making it difficult to level up the long blade skill.

It can hit up to 3 enemies at a time (with multi-hit enabled), dealing 8 damage to enemies (unless a critical hit) from up to 1.4 tiles away at an attack speed of 1. Although equipped in two hands, it can be used as a one-handed weapon at the cost of reduced impact.

The weapon can be attached to the character's back for quick access and encumbrance reduction.

Breaking doors

The katana is quite ineffective at breaking down doors, dealing only 8 damage. For comparison, an axe deals 35.

Chopping trees

The katana is very ineffective at chopping down trees, as it only deals 1 damage. For comparison, an axe deals 35.

Condition

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

For how this is calculated, see: Condition
Maintenance skill Weapon skill Condition lower chance
0 0 1/15 (7%)
0 4 1/17 (6%)
0 8 1/19 (5%)
4 0 1/19 (5%)
8 0 1/23 (4%)
4 4 1/21 (5%)
4 8 1/23 (4%)
8 8 1/27 (4%)
10 10 1/29 (3%)

Distribution

The loot distributions can be found in the table(s) below.

Containers
Building/Room Container Rolls Chance
SafehouseLoot counter 4 0.5
closet crate 4 0.001
pawnshop displaycase 4 0.1

Buildings

  • The best place to find a katana is in a boarded up survivor house.
  • Very rarely, the katana can be found in residential buildings in furniture such as wardrobes and drawers.
  • Katanas can also be found in gun shops such as the one located in West Point, and pawn shops, which can be found in Louisville.

Zombies

After 60 days have passed, the katana can be very rarely found impaled in the gut of a zombie.

Gallery

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 Katana
    {
        DisplayCategory = Weapon,
        MaxRange	=	1.4,
        WeaponSprite	=	Katana,
        MinAngle	=	0.8,
        Type	=	Weapon,
        MinimumSwingTime	=	3,
        HitFloorSound	=	KatanaHit,
		ImpactSound	=	KatanaHit,
        DoorHitSound = KatanaHit,
		HitSound	=	KatanaHit,
		SwingSound = KatanaSwing,
        KnockBackOnNoDeath = TRUE,
        SwingAmountBeforeImpact	=	0.02,
        Categories	=	LongBlade,
        Weight	=	2,
        ConditionLowerChanceOneIn	=	15,
        PushBackMod	=	0.5,
        SubCategory	=	Swinging,
        ConditionMax	=	10,
        MaxHitCount	=	3,
        DoorDamage	=	8,
        SwingAnim	=	Bat,
        CriticalChance	=	35,
        CritDmgMultiplier = 6,
        DisplayName	=	Katana,
        MinRange	=	0.61,
        SwingTime	=	3,
        HitAngleMod	=	-30,
        KnockdownMod	=	0,
        Icon	=	Katana,
        RunAnim	=	Run_Weapon2,
        BreakSound  =   KatanaBreak,
        TreeDamage  =   1,
        CriticalChance	=	30,
        CritDmgMultiplier = 10,
        MinDamage	=	8,
        MaxDamage	=	8,
        BaseSpeed = 1,
        WeaponLength = 0.3,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        TwoHandWeapon = TRUE,
        WeaponLength = 0.4,
        AttachmentType = BigBlade,
    }

See also