Violin: Difference between revisions
VaileasysBot (talk | contribs) m (→top: Category update: "Melee weapons") |
(added CodeBox, removed some autogenerated content) |
||
Line 1: | Line 1: | ||
{{Languages}} | {{Languages}} | ||
{{Header|The Game World|Items|Weapons|Melee weapons|version=Version 41|incver= | {{Header|The Game World|Items|Weapons|Melee weapons|version=Version 41|incver=78.16}} | ||
{{Infobox weapon | {{Infobox weapon | ||
|display_name=Violin | |display_name=Violin | ||
Line 31: | Line 30: | ||
|class_name=Base.Violin | |class_name=Base.Violin | ||
}} | }} | ||
A | A '''violin''' is a short blunt melee [[weapon]]. | ||
==Usage== | ==Usage== | ||
===Weapon=== | ===Weapon=== | ||
Line 37: | Line 37: | ||
===Breaking doors=== | ===Breaking doors=== | ||
It can be used to bash down [[Door|doors]], dealing 5 damage per hit. | It can be used to bash down [[Door|doors]], dealing 5 damage per hit. | ||
==Condition== | ==Condition== | ||
The violin has a maximum condition of 1. 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 (1 + maintenanceMod × 2)</code>. Where "maintenanceMod" is calculated using the short blunt and maintenance skills.<br> | The violin has a maximum condition of 1. 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 (1 + 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. | Below is an example of the chance of losing durability at varying levels of [[Skills|maintenance]] and [[Skills|short blunt]] levels. | ||
{{Durability weapon|1}} | {{Durability weapon|1}} | ||
==Distribution== | ==Distribution== | ||
{{Stub}} | |||
==Gallery== | ==Gallery== | ||
<gallery> | <gallery> | ||
Line 67: | Line 51: | ||
File:Violin_Model.png|Item model | File:Violin_Model.png|Item model | ||
</gallery> | </gallery> | ||
==Code== | ==Code== | ||
{{CodeBox | |||
| {{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 542 | |||
| source = weapons.txt | |||
| retrieved = true | |||
| version = 41 | |||
| incver = 78.16 | |||
| code = | |||
item Violin | |||
{ | { | ||
DisplayCategory = Instrument, | DisplayCategory = Instrument, | ||
Line 98: | Line 91: | ||
BreakSound = ViolinBreak, | BreakSound = ViolinBreak, | ||
DoorHitSound = ViolinHit, | DoorHitSound = ViolinHit, | ||
HitSound = ViolinHit, | |||
HitFloorSound = ViolinHit, | |||
SwingSound = ViolinSwing, | |||
TreeDamage = 0, | TreeDamage = 0, | ||
CriticalChance = 5, | CriticalChance = 5, | ||
Line 106: | Line 99: | ||
MaxDamage = 0.4, | MaxDamage = 0.4, | ||
BaseSpeed = 1.2, | BaseSpeed = 1.2, | ||
} | } | ||
}} | |||
}} | |||
==See also== | ==See also== | ||
*[[Keytar]] | *[[Keytar]] |
Revision as of 15:36, 28 December 2023
Violin | ||
---|---|---|
| ||
General | ||
Category | Instrument | |
Encumbrance | 0.7 | |
Equipped | One-handed | |
Condition max. | 1 | |
Skill | Short Blunt | |
Damage | ||
Type | Blunt | |
Attack speed | 1.2 | |
Range | 0.61–1 tiles | |
Damage | 0.2–0.4 | |
Crit chance | 5% | |
Tree damage | 0 | |
Door damage | 5 | |
Knockback | 0.3 | |
Knockdown | 2 | |
Technical details | ||
Base ID | Base.Violin | |
A violin is a short blunt melee weapon.
Usage
Weapon
The violin can attack up to 2 enemies at a time dealing a maximum of 0.4 damage to enemies (unless a critical hit) from up to 1 tiles away at an attack speed of 1.2.
Breaking doors
It can be used to bash down doors, dealing 5 damage per hit.
Condition
The violin has a maximum condition of 1. 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 (1 + 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 | Durability 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%) |
Distribution
Gallery
Code
Source: ProjectZomboid\media\scripts\weapons.txt
item Violin
{
DisplayCategory = Instrument,
MaxRange = 1,
WeaponSprite = Violin,
MinAngle = 0.65,
Type = Weapon,
MinimumSwingTime = 4,
KnockBackOnNoDeath = FALSE,
SwingAmountBeforeImpact = 0.02,
Categories = SmallBlunt,
ConditionLowerChanceOneIn = 1,
Weight = 0.7,
SplatNumber = 1,
PushBackMod = 0.3,
SubCategory = Swinging,
ConditionMax = 1,
MaxHitCount = 2,
DoorDamage = 5,
SwingAnim = Bat,
DisplayName = Violin,
MinRange = 0.61,
SwingTime = 4,
KnockdownMod = 2,
SplatBloodOnNoDeath = FALSE,
Icon = Violin,
BreakSound = ViolinBreak,
DoorHitSound = ViolinHit,
HitSound = ViolinHit,
HitFloorSound = ViolinHit,
SwingSound = ViolinSwing,
TreeDamage = 0,
CriticalChance = 5,
MinDamage = 0.2,
MaxDamage = 0.4,
BaseSpeed = 1.2,
}