Banjo: Difference between revisions

From PZwiki
mNo edit summary
m (→‎Code: fix code source)
Line 63: Line 63:
   | line = true
   | line = true
   | start = 1549
   | start = 1549
   | source = weapons.txt
   | source = items_weapons.txt
   | retrieved = true
   | retrieved = true
   | version = 41
   | version = 41

Revision as of 13:43, 29 December 2023

Banjo
Banjo
Banjo
General
Category Instrument
Encumbrance
Heavy Load
3
Equipped One-handed
Condition max. 3
Skill Short Blunt
Attachment Back
Damage
Type Blunt
Attack speed 1.1
Range 0.61–1.25 tiles
Damage 0.3–0.6
Crit chance 5%
Tree damage 0
Door damage 5
Knockback 0.3
Knockdown 2
Technical details
Base ID Base.Banjo

A banjo is a two-handed short blunt melee weapon.

Usage

Weapon

The banjo can attack up to 3 enemies at a time dealing a maximum of 0.6 damage to enemies (unless a critical hit) from up to 1.25 tiles away at an attack speed of 1.1. It has a high endurance cost, straining users quickly.

Breaking doors

It can be used to bash down doors, dealing 5 damage per hit.

Condition

The banjo has a maximum condition of 3. 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 (2 + 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 maintenance and short blunt levels.

For how this is calculated, see: Condition
Maintenance skill Weapon skill Condition lower chance
0 0 1/2 (50%)
0 4 1/4 (25%)
0 8 1/6 (17%)
4 0 1/6 (17%)
8 0 1/10 (10%)
4 4 1/8 (13%)
4 8 1/10 (10%)
8 8 1/14 (7%)
10 10 1/16 (6%)

Distribution

Notebook.png
This article may need more content.
Editors are encouraged to add new material to the page while expanding upon current topics.

Trivia

  • The banjo is the only two-handed short blunt weapon in the game.

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 Banjo
    {
        DisplayCategory = Instrument,
        MaxRange	=	1.25,
        WeaponSprite	=	Banjo,
        MinAngle	=	0.75,
        Type	=	Weapon,
        MinimumSwingTime	=	4,
        KnockBackOnNoDeath	=	FALSE,
        SwingAmountBeforeImpact	=	0.02,
        Categories	=	SmallBlunt,
        ConditionLowerChanceOneIn	=	2,
        Weight	=	3,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Swinging,
        ConditionMax	=	3,
        MaxHitCount	=	3,
        DoorDamage	=	5,
        SwingAnim	=	Bat,
        DisplayName	=	Banjo,
        MinRange	=	0.61,
        SwingTime	=	4,
        KnockdownMod	=	2,
        SplatBloodOnNoDeath	=	FALSE,
        Icon	=	Banjo,
        BreakSound  =   BanjoBreak,
        DoorHitSound = BanjoHit,
		HitSound = BanjoHit,
		HitFloorSound = BanjoHit,
		SwingSound = BanjoSwing,
        TreeDamage  =   0,
        CriticalChance	=	5,
        CritDmgMultiplier = 2,
        MinDamage	=	0.3,
        MaxDamage	=	0.6,
        BaseSpeed = 1.1,
        TwoHandWeapon = TRUE,
        AttachmentType = Guitar,
    }

See also