Trumpet: Difference between revisions
VaileasysBot (talk | contribs) m (→top: Category update: "Melee weapons") |
m (Automated Formatting) |
||
(19 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Long blunt weapons}} | |||
{{Page version|41.78.16}} | |||
{{Header| | {{Infobox item | ||
{{Infobox | |name=Trumpet | ||
| | |model=Trumpet_Model.png | ||
| | |icon=Trumpet.png | ||
| | |icon_name=Trumpet | ||
| | |||
<!--GENERAL--> | <!--GENERAL--> | ||
|category=Instrument | |category=Instrument | ||
Line 30: | Line 27: | ||
|knockdown=2 | |knockdown=2 | ||
<!--TECHNICAL DETAILS--> | <!--TECHNICAL DETAILS--> | ||
| | |item_id=Base.Trumpet | ||
}} | }} | ||
A | A '''trumpet''' is a long blunt melee [[Weapons|weapon]]. | ||
==Usage== | ==Usage== | ||
===Weapon=== | ===Weapon=== | ||
The trumpet can attack up to 2 enemies at a time dealing a maximum of 0.8 damage to enemies (unless a critical hit) from up to 1.15 [[tiles]] away at an attack speed of 1. | The trumpet can attack up to 2 enemies at a time dealing a maximum of 0.8 damage to enemies (unless a critical hit) from up to 1.15 [[tiles]] away at an attack speed of 1. | ||
===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 trumpet has a maximum condition of 5. 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 (2 + maintenanceMod × 2)</code>. Where "maintenanceMod" is calculated using the long blunt and maintenance skills.<br> | The trumpet has a maximum condition of 5. 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 (2 + maintenanceMod × 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 [[Skills|maintenance]] and [[Skills|long blunt]] levels. | Below is an example of the chance of losing durability at varying levels of [[Skills|maintenance]] and [[Skills|long blunt]] levels. | ||
{{Durability weapon|2}} | {{Durability weapon|2}} | ||
==Distribution== | ==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="3"|bedroom | |||
|[[crate]] | |||
|4 | |||
|4 | |||
|- | |||
|[[crate]] | |||
|1 | |||
|0.4 | |||
|- | |||
|[[wardrobe]] | |||
|4 | |||
|0.01 | |||
|- | |||
|closet | |||
|[[metal_shelves]] | |||
|4 | |||
|4 | |||
|- | |||
|musicstore | |||
|[[shelves]] | |||
|4 | |||
|8 | |||
|} | |||
==Gallery== | ==Gallery== | ||
Line 71: | Line 83: | ||
File:Trumpet_Model.png|Item model | File:Trumpet_Model.png|Item model | ||
</gallery> | </gallery> | ||
==Code== | |||
== Code == | |||
{{CodeBox | |||
| {{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 484 | |||
| source = items_weapons.txt | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
item Trumpet | |||
{ | { | ||
DisplayCategory = Instrument, | DisplayCategory = Instrument, | ||
Line 102: | Line 122: | ||
BreakSound = TrumpetBreak, | BreakSound = TrumpetBreak, | ||
DoorHitSound = TrumpetHit, | DoorHitSound = TrumpetHit, | ||
HitSound = TrumpetHit, | |||
HitFloorSound = TrumpetHit, | |||
SwingSound = TrumpetSwing, | |||
TreeDamage = 0, | TreeDamage = 0, | ||
CriticalChance = 20, | CriticalChance = 20, | ||
Line 112: | Line 132: | ||
BaseSpeed = 1, | BaseSpeed = 1, | ||
AttachmentType = BigWeapon, | AttachmentType = BigWeapon, | ||
} | } | ||
}} | |||
}} | |||
==See also== | ==See also== | ||
*[[Flute]] | |||
*[[Saxophone]] | *[[Saxophone]] | ||
*[[Violin]] | *[[Violin]] | ||
{{Navbox | {{Navbox items|blunt}} | ||
[[Category:Instruments]] |
Revision as of 13:01, 14 April 2024
A trumpet is a long blunt melee weapon.
Usage
Weapon
The trumpet can attack up to 2 enemies at a time dealing a maximum of 0.8 damage to enemies (unless a critical hit) from up to 1.15 tiles away at an attack speed of 1.
Breaking doors
It can be used to bash down doors, dealing 5 damage per hit.
Condition
The trumpet has a maximum condition of 5. 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 (2 + 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 maintenance and long 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 | 4 |
crate | 1 | 0.4 | |
wardrobe | 4 | 0.01 | |
closet | metal_shelves | 4 | 4 |
musicstore | shelves | 4 | 8 |
Gallery
Code
Source: ProjectZomboid\media\scripts\items_weapons.txt
item Trumpet
{
DisplayCategory = Instrument,
MaxRange = 1.15,
WeaponSprite = Trumpet,
MinAngle = 0.67,
Type = Weapon,
MinimumSwingTime = 4,
KnockBackOnNoDeath = FALSE,
SwingAmountBeforeImpact = 0.02,
Categories = Blunt,
ConditionLowerChanceOneIn = 2,
Weight = 1,
SplatNumber = 1,
PushBackMod = 0.3,
SubCategory = Swinging,
ConditionMax = 5,
MaxHitCount = 2,
DoorDamage = 5,
SwingAnim = Bat,
DisplayName = Trumpet,
MinRange = 0.61,
SwingTime = 4,
KnockdownMod = 2,
SplatBloodOnNoDeath = FALSE,
Icon = Trumpet,
BreakSound = TrumpetBreak,
DoorHitSound = TrumpetHit,
HitSound = TrumpetHit,
HitFloorSound = TrumpetHit,
SwingSound = TrumpetSwing,
TreeDamage = 0,
CriticalChance = 20,
CritDmgMultiplier = 2,
MinDamage = 0.4,
MaxDamage = 0.8,
BaseSpeed = 1,
AttachmentType = BigWeapon,
}