Trumpet: Difference between revisions
(Added the weapon code information from the project zomboid "items_weapons.txt") |
(Page contents largely auto-generated using ItemZed) |
||
Line 1: | Line 1: | ||
== | <!-- This page has been auto-generated using ItemZed with a custom Lua script --> | ||
===Item=== | {{Languages}} | ||
{{Header|The Game World|Items|Weapons|Melee Weapons|version=Version 41|incver=68}} | |||
{{Retrieved|version=41|incver= | {{Infobox weapon | ||
|display_name=Trumpet | |||
|image=Trumpet_Model.png | |||
|image_width=200px | |||
|alternate_image=Trumpet.png | |||
|alternate_name=Trumpet | |||
|alternate_link= | |||
<!--GENERAL--> | |||
|category=Instrument | |||
|weight=1 | |||
|equipped=One-handed | |||
|condition_max=5 | |||
|attachment_type=BigWeapon | |||
<!--DAMAGE--> | |||
|type=Blunt | |||
|skill_type=Long Blunt | |||
|base_speed=1 | |||
|min_range=0.61 | |||
|max_range=1.15 | |||
|min_damage=0.4 | |||
|max_damage=0.8 | |||
|crit_chance=20 | |||
|crit_multiplier=2 | |||
|tree_damage=0 | |||
|door_damage=5 | |||
|push_back=0.3 | |||
|knockdown=2 | |||
<!--TECHNICAL DETAILS--> | |||
|ingredients= | |||
|class_name=Base.Trumpet | |||
}} | |||
A <b>trumpet</b> 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 [[Door|doors]], dealing 5 damage per hit. | |||
==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> | |||
Below is an example of the chance of losing durability at varying levels of [[Skills|maintenance]] and [[Skills|long blunt]] levels. | |||
{{Durability weapon|2}} | |||
===Repairing=== | |||
Materials that can be used to repair the trumpet, based on first time repairing. Repairing the trumpet makes following repairs less likely to succeed and can, if repaired numerous times, cause reduced durability instead of increased. | |||
<!-- {{Fixing weapon | |||
|item=Trumpet | |||
|woodglue=2 | |||
|woodgluerepairs=20 | |||
|woodgluechance=35 | |||
|woodwork=2 | |||
|ducttape=2 | |||
|ducttaperepairs=10 | |||
|ducttapechance=95 | |||
|glue=2 | |||
|gluerepairs=10 | |||
|gluechance=95 | |||
|scotchtape=4 | |||
|scotchtaperepairs=10 | |||
|scotchtapechance=95 | |||
}}--> | |||
==Distribution== | |||
TODO | |||
<!-- ==Crafting== --> | |||
<!-- ==Trivia== --> | |||
==Gallery== | |||
<gallery> | |||
File:Trumpet.png|Item icon | |||
File:Trumpet_Model.png|Item model | |||
</gallery> | |||
==Code== | |||
<b><i>From items_weapons.txt (Project Zomboid directory/media/scripts/)</i></b> | |||
{{Retrieved|version=41|incver=68}} | |||
<pre> item Trumpet | |||
{ | |||
DisplayCategory = Instrument, | |||
MaxRange = 1.15, | MaxRange = 1.15, | ||
WeaponSprite = Trumpet, | WeaponSprite = Trumpet, | ||
Line 31: | Line 101: | ||
BreakSound = TrumpetBreak, | BreakSound = TrumpetBreak, | ||
DoorHitSound = TrumpetHit, | DoorHitSound = TrumpetHit, | ||
HitSound = TrumpetHit, | |||
HitFloorSound = TrumpetHit, | |||
SwingSound = TrumpetSwing, | |||
TreeDamage = 0, | TreeDamage = 0, | ||
CriticalChance = 20, | CriticalChance = 20, | ||
Line 41: | Line 111: | ||
BaseSpeed = 1, | BaseSpeed = 1, | ||
AttachmentType = BigWeapon, | AttachmentType = BigWeapon, | ||
}</pre> | |||
==See also== | |||
*[[Saxophone]] | |||
*[[Flute]] | |||
*[[Violin]] | |||
{{Navbox weapons}} | |||
{{clear}} | |||
<!-- Do not add anything beneath this line, except categories.--> |
Revision as of 14:37, 16 April 2022
Trumpet | ||
---|---|---|
| ||
General | ||
Category | Instrument | |
Encumbrance | 1 | |
Equipped | One-handed | |
Condition max. | 5 | |
Skill | Long Blunt | |
Attachment | Back | |
Damage | ||
Type | Blunt | |
Attack speed | 1 | |
Range | 0.61–1.15 tiles | |
Damage | 0.4–0.8 | |
Crit chance | 20% | |
Tree damage | 0 | |
Door damage | 5 | |
Knockback | 0.3 | |
Knockdown | 2 | |
Technical details | ||
Base ID | Base.Trumpet | |
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%) |
Repairing
Materials that can be used to repair the trumpet, based on first time repairing. Repairing the trumpet makes following repairs less likely to succeed and can, if repaired numerous times, cause reduced durability instead of increased.
Distribution
TODO
Gallery
Code
From items_weapons.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 41.68
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, }