Flute: Difference between revisions

From PZwiki
m (→‎top: Category update: "Melee weapons")
m (Automated Formatting)
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<!-- This page has been auto-generated using ItemZed with a custom Lua script -->
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Short blunt weapons}}
{{Languages}}
{{Page version|41.78.16}}
{{Header|The Game World|Items|Weapons|Melee weapons|version=Version 41|incver=68}}
{{Infobox item
{{Infobox weapon
|name=Flute
|display_name=Flute
|model=Flute_Model.png
|image=Flute_Model.png
|icon=Flute.png
|image_width=200px
|icon_name=Flute
|alternate_image=Flute.png
|alternate_name=Flute
|alternate_link=
<!--GENERAL-->
<!--GENERAL-->
|category=Instrument
|category=Instrument
Line 29: Line 26:
|knockdown=2
|knockdown=2
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|ingredients=
|item_id=Base.Flute
|class_name=Base.Flute
}}
}}
A <b>flute</b> is a short blunt melee [[weapon]].
A '''flute''' is a short blunt melee [[Weapons|weapon]].
 
==Usage==
==Usage==
===Weapon===
===Weapon===
The flute can attack up to 2 enemies at a time dealing a maximum of 0.2 damage to enemies (unless a critical hit) from up to 0.9 [[tiles]] away at an attack speed of 1.3.  
The flute can attack up to 2 enemies at a time dealing a maximum of 0.2 damage to enemies (unless a critical hit) from up to 0.9 [[tiles]] away at an attack speed of 1.3.
 
==Condition==
==Condition==
The flute 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 &times; 2)</code>. Where "maintenanceMod" is calculated using the short blunt and maintenance skills.<br>
The flute 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 &times; 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 the [[Skills|maintenance]] and [[Skills|short blunt]] skills.
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|short blunt]] skills.
{{Durability weapon|1}}
{{Durability weapon|1}}
===Repairing===
 
Materials that can be used to repair the flute, based on first time repairing. Repairing the flute makes following repairs less likely to succeed and can, if repaired numerous times, cause reduced durability instead of increased.
<!-- {{Fixing weapon
|item=Flute
|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==
==Distribution==
TODO
The loot distributions can be found in the table(s) below.
<!-- ==Crafting== -->
 
<!-- ==Trivia== -->
{| 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.02
|-
|closet
|[[metal_shelves]]
|4
|4
|-
|musicstore
|[[shelves]]
|4
|1
|}
 
==Gallery==
==Gallery==
<gallery>
<gallery>
Line 67: Line 79:
File:Flute_Model.png|Item model
File:Flute_Model.png|Item model
</gallery>
</gallery>
==Code==
==Code==
<b><i>From items_weapons.txt (Project Zomboid directory/media/scripts/)</i></b>
{{CodeBox
{{Retrieved|version=41|incver=68}}
| {{CodeSnip
<pre>    item Flute
  | lang = java
  | line = true
  | start = 640
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Flute
{
{
DisplayCategory = Instrument,
    DisplayCategory = Instrument,
MaxRange = 0.9,
MaxRange = 0.9,
WeaponSprite = Flute,
WeaponSprite = Flute,
MinAngle = 0.65,
MinAngle = 0.65,
Type = Weapon,
Type = Weapon,
MinimumSwingTime = 4,
MinimumSwingTime = 4,
KnockBackOnNoDeath = FALSE,
KnockBackOnNoDeath = FALSE,
SwingAmountBeforeImpact = 0.02,
SwingAmountBeforeImpact = 0.02,
Categories = Improvised;SmallBlunt,
Categories = Improvised;SmallBlunt,
ConditionLowerChanceOneIn = 1,
ConditionLowerChanceOneIn = 1,
Weight = 3,
Weight = 3,
SplatNumber = 1,
SplatNumber = 1,
PushBackMod = 0.3,
PushBackMod = 0.3,
SubCategory = Swinging,
SubCategory = Swinging,
ConditionMax = 1,
ConditionMax = 1,
MaxHitCount = 2,
MaxHitCount = 2,
DoorDamage = 0,
DoorDamage = 0,
SwingAnim = Bat,
SwingAnim = Bat,
DisplayName = Flute,
DisplayName = Flute,
MinRange = 0.61,
MinRange = 0.61,
SwingTime = 4,
SwingTime = 4,
KnockdownMod = 2,
KnockdownMod = 2,
SplatBloodOnNoDeath = FALSE,
SplatBloodOnNoDeath = FALSE,
Icon = Flute,
Icon = Flute,
         BreakSound  =  FluteBreak,
         BreakSound  =  FluteBreak,
         DoorHitSound = FluteHit,
         DoorHitSound = FluteHit,
HitSound = FluteHit,
HitSound = FluteHit,
HitFloorSound = FluteHit,
HitFloorSound = FluteHit,
SwingSound = FluteSwing,
SwingSound = FluteSwing,
         TreeDamage  =  0,
         TreeDamage  =  0,
         CriticalChance = 0,
         CriticalChance = 0,
Line 107: Line 127:
         BaseSpeed = 1.3,
         BaseSpeed = 1.3,
         AttachmentType = Knife,
         AttachmentType = Knife,
}</pre>
}
}}
}}


==See also==
==See also==
Line 114: Line 136:
*[[Trumpet]]
*[[Trumpet]]


{{Navbox weapons}}
{{Navbox items|blunt}}
{{clear}}
 
<!-- Do not add anything beneath this line, except categories.-->
 
[[Category:Instruments]]

Revision as of 08:32, 14 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Flute
Flute Model.png
General
Category
Instrument
Encumbrance
Moodle Icon HeavyLoad.png
3
Equipped
One-handed
Slot attached
Belt
Skill
Properties
Max condition
1
Performance
Damage
0.1–0.2
Door damage
0
Tree damage
0
Range
0.61–0.9
Attack speed
1.3
Knockback
0.3
Knockdown
2
Crit chance
0%
Technical
Item ID
Base.Flute

A flute is a short blunt melee weapon.

Usage

Weapon

The flute can attack up to 2 enemies at a time dealing a maximum of 0.2 damage to enemies (unless a critical hit) from up to 0.9 tiles away at an attack speed of 1.3.

Condition

The flute 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 the maintenance and short blunt skills.

For how this is calculated, see: Condition
Maintenance skill Weapon skill Condition 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

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.02
closet metal_shelves 4 4
musicstore shelves 4 1

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 Flute
	{
	    DisplayCategory = Instrument,
		MaxRange	=	0.9,
		WeaponSprite	=	Flute,
		MinAngle	=	0.65,
		Type	=	Weapon,
		MinimumSwingTime	=	4,
		KnockBackOnNoDeath	=	FALSE,
		SwingAmountBeforeImpact	=	0.02,
		Categories	=	Improvised;SmallBlunt,
		ConditionLowerChanceOneIn	=	1,
		Weight	=	3,
		SplatNumber	=	1,
		PushBackMod	=	0.3,
		SubCategory	=	Swinging,
		ConditionMax	=	1,
		MaxHitCount	=	2,
		DoorDamage	=	0,
		SwingAnim	=	Bat,
		DisplayName	=	Flute,
		MinRange	=	0.61,
		SwingTime	=	4,
		KnockdownMod	=	2,
		SplatBloodOnNoDeath	=	FALSE,
		Icon	=	Flute,
        BreakSound  =   FluteBreak,
        DoorHitSound = FluteHit,
		HitSound = FluteHit,
		HitFloorSound = FluteHit,
		SwingSound = FluteSwing,
        TreeDamage  =   0,
        CriticalChance	=	0,
        MinDamage	=	0.1,
        MaxDamage	=	0.2,
        BaseSpeed = 1.3,
        AttachmentType = Knife,
	}

See also