Banjo: Difference between revisions
(Added the weapon code information from the project zomboid "item_weapons.txt") |
m (Automated Formatting) |
||
(28 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
=== | {{Header|Project Zomboid|Items|Weapons|Melee weapons|Short blunt weapons}} | ||
''''' | {{Page version|41.78.16}} | ||
{{ | {{Infobox item | ||
|name=Banjo | |||
|model=Banjo_Model.png | |||
|icon=Banjo.png | |||
|icon_name=Banjo | |||
<!--GENERAL--> | |||
|category=Instrument | |||
|weight=3 | |||
|equipped=One-handed | |||
|condition_max=3 | |||
|attachment_type=Guitar | |||
<!--DAMAGE--> | |||
|type=Blunt | |||
|skill_type=Short Blunt | |||
|base_speed=1.1 | |||
|min_range=0.61 | |||
|max_range=1.25 | |||
|min_damage=0.3 | |||
|max_damage=0.6 | |||
|crit_chance=5 | |||
|crit_multiplier=2 | |||
|tree_damage=0 | |||
|door_damage=5 | |||
|push_back=0.3 | |||
|knockdown=2 | |||
<!--TECHNICAL DETAILS--> | |||
|item_id=Base.Banjo | |||
}} | |||
A '''banjo''' is a two-handed short blunt melee [[Weapons|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 [[Door|doors]], dealing 5 damage per hit. | |||
==Condition== | |||
The banjo has a maximum condition of 3. 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 (2 + maintenanceMod × 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 [[Skills|maintenance]] and [[Skills|short blunt]] levels. | |||
{{Durability weapon|2}} | |||
==Distribution== | |||
The loot distributions can be found in the table(s) below. | |||
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;" | |||
! colspan="4" | Containers | |||
|- | |||
! Building/Room | |||
! Container | |||
! style="width: 3.2em;" | Rolls | |||
! style="width: 3.2em;" | Chance | |||
|- | |||
|rowspan="2"|bedroom | |||
|[[crate]] | |||
|4 | |||
|6 | |||
|- | |||
|[[crate]] | |||
|1 | |||
|0.2 | |||
|- | |||
|closet | |||
|[[metal_shelves]] | |||
|4 | |||
|6 | |||
|- | |||
|pawnshop | |||
|[[shelves]] | |||
|4 | |||
|6 | |||
|} | |||
==Trivia== | |||
*The banjo is the only two-handed short blunt weapon in the game. | |||
==Gallery== | |||
<gallery> | |||
File:Banjo.png|Item icon | |||
File:Banjo_Model.png|Item model | |||
</gallery> | |||
==Code== | |||
{{CodeBox | |||
| {{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 1549 | |||
| source = items_weapons.txt | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
item Banjo | |||
{ | |||
DisplayCategory = Instrument, | |||
MaxRange = 1.25, | MaxRange = 1.25, | ||
WeaponSprite = Banjo, | WeaponSprite = Banjo, | ||
Line 40: | Line 132: | ||
TwoHandWeapon = TRUE, | TwoHandWeapon = TRUE, | ||
AttachmentType = Guitar, | AttachmentType = Guitar, | ||
} | |||
}} | |||
}} | |||
==See also== | |||
*[[Acoustic Guitar]] | |||
*[[Keytar]] | |||
*[[Violin]] | |||
{{Navbox items|blunt}} | |||
[[Category:Instruments]] |
Revision as of 06:23, 14 April 2024
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.
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
The loot distributions can be found in the table(s) below.
Containers | |||
---|---|---|---|
Building/Room | Container | Rolls | Chance |
bedroom | crate | 4 | 6 |
crate | 1 | 0.2 | |
closet | metal_shelves | 4 | 6 |
pawnshop | shelves | 4 | 6 |
Trivia
- The banjo is the only two-handed short blunt weapon in the game.
Gallery
Code
Source: ProjectZomboid\media\scripts\items_weapons.txt
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,
}