Wooden Mallet: Difference between revisions

From PZwiki
(Under construction)
 
m (Distribution table fix)
 
(28 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{languages|{{PAGENAME}}}}
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Short blunt weapons}}
{{header|The Game World|Items|Weapons|type=Weapon|version=Version 41|incver=50}}
{{Page version|41.78.16}}
{{notice|underconstruction}}
{{Infobox item
{{Infobox weapon
|name=Wooden Mallet
|display_name=Wooden Mallet
|model=WoodMallet_Model.png
|name_colour=Weapon
|icon=WoodMallet.png
|name_text_colour=Weapon
|image=WoodMallet_Model.png
|image_width=200px
|alternate_image=WoodMallet.png
<!--GENERAL-->
<!--GENERAL-->
|category=Weapon
|category=Weapon
Line 18: Line 14:
<!--DAMAGE-->
<!--DAMAGE-->
|type=SmallBlunt
|type=SmallBlunt
|swing_time=3
|swing_time=1.1
|min_range=0.61
|min_range=0.61
|max_range=1
|max_range=1
Line 26: Line 22:
|knockdown=0
|knockdown=0
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=WoodenMallet
|item_id=Base.WoodenMallet
}}
}}
'''TODO''' one sentence description.
{{Quote|text=Too unwieldy to drive nails.|author=In-game tooltip}}
A '''wooden mallet''' is a short blunt melee [[Weapons|weapon]].


== Usage ==
==Usage==
'''TODO'''
It currently can't be used as a crafting tool, such as [[Hammer]], [[Stone Hammer]] or [[Ball-peen Hammer]], and is only used as a weapon.


== Code ==
===Weapon===
<pre> item WoodenMallet
A wooden mallet is a short blunt weapon with high durability and moderate damage. Compared to many short blunt alternatives, a wooden mallet is considered a good secondary weapon.
MaxRange = 1,
 
WeaponSprite = WoodenMallet,
==Condition==
MinAngle = 0.65,
The wooden mallet has a maximum condition of 8. 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 (20 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the short blunt and maintenance skills.<br>
Type = Weapon,
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|short blunt]] skills.
MinimumSwingTime = 3,
{{Durability weapon|20}}
KnockBackOnNoDeath = TRUE,
 
SwingAmountBeforeImpact = 0.02,
==Distribution==
Categories = SmallBlunt,
The loot distributions can be found in the table(s) below.
ConditionLowerChanceOneIn = 20,
 
Weight = 1,
<!--BOT FLAG|WoodenMallet|41.78.16-->
SplatNumber = 1,
{{Clear}}
PushBackMod = 0.5,
<div class="togglebox theme-red">
SubCategory = Swinging,
    <div>WoodenMallet distribution
ConditionMax = 8,
        <span class="mw-customtoggle-togglebox-WoodenMallet" title="{{int:show}} / {{int:hide}}" style="float: right; padding-right: 30px; padding-top: 4px; font-size: 0.7em; font-weight: normal;">{{int:show}} / {{int:hide}}</span></div>
MaxHitCount = 1,
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-WoodenMallet">
DoorDamage = 9,
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
CanBarricade = TRUE,
<div class="pz-container">
SwingAnim = Bat,
<div id="containers" style="flex-basis:30%">
DisplayName = Wooden Mallet,
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
MinRange = 0.61,
    |+ {{ll|Containers}}
SwingTime = 3,
    ! Building/Room
KnockdownMod = 0,
    ! Container
SplatBloodOnNoDeath = TRUE,
    ! Effective chance
Icon = WoodMallet,
    |-
RunAnim = Run_Weapon2,
    | Bag_ToolBag
IdleAnim = Idle_Weapon2,
    | {{ll|Bag_ToolBag}}
BreakSound = BreakWoodItem,
    | 2.81%
TreeDamage = 0,
    |-
MetalValue = 25,
    | Carpenter
CriticalChance = 17,
    | {{ll|crate}}
CritDmgMultiplier = 3,
    | 10.78%
MinDamage = 0.4,
    |-
MaxDamage = 0.9,
    | Carpenter
BaseSpeed = 1.1,
    | {{ll|metal_shelves}}
WeaponLength = 0.23,
    | 10.78%
AttachmentType = Hammer,
    |-
</pre>
    | SafehouseLoot
    | {{ll|counter}}
    | 15.1%
    |-
    | SafehouseLoot
    | {{ll|crate}}
    | 10.78%
    |-
    | SafehouseLoot
    | {{ll|crate}}
    | 15.1%
    |-
    | SafehouseLoot
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | SafehouseLoot
    | {{ll|metal_shelves}}
    | 15.1%
    |-
    | SafehouseLoot
    | {{ll|wardrobe}}
    | 15.1%
    |-
    | SurvivorCache1
    | {{ll|counter}}
    | 15.1%
    |-
    | SurvivorCache2
    | {{ll|counter}}
    | 15.1%
    |-
    | Toolbox
    | {{ll|Toolbox}}
    | 2.81%
    |-
    | ToolsCache1
    | {{ll|Bag_DuffelBagTINT}}
    | 10.78%
    |-
    | ToolsCache1
    | {{ll|ToolsBox}}
    | 10.78%
    |-
    | ToolsCache1
    | {{ll|counter}}
    | 10.78%
    |-
    | all
    | {{ll|crate}}
    | 0.65%
    |-
    | all
    | {{ll|metal_shelves}}
    | 2.57%
    |-
    | all
    | {{ll|toolcabinet}}
    | 10.78%
    |-
    | bedroom
    | {{ll|crate}}
    | 0.65%
    |-
    | butcher
    | {{ll|counter}}
    | 19.27%
    |-
    | butcher
    | {{ll|metal_shelves}}
    | 19.27%
    |-
    | cabinetfactory
    | {{ll|crate}}
    | 19.27%
    |-
    | cabinetfactory
    | {{ll|metal_shelves}}
    | 19.27%
    |-
    | cabinetshipping
    | {{ll|metal_shelves}}
    | 19.27%
    |-
    | cafeteriakitchen
    | {{ll|counter}}
    | 10.78%
    |-
    | closet
    | {{ll|crate}}
    | 0.65%
    |-
    | closet
    | {{ll|crate}}
    | 10.78%
    |-
    | closet
    | {{ll|crate}}
    | 19.27%
    |-
    | construction
    | {{ll|crate}}
    | 10.78%
    |-
    | deepfry_kitchen
    | {{ll|counter}}
    | 10.78%
    |-
    | dinerkitchen
    | {{ll|counter}}
    | 10.78%
    |-
    | drugshack
    | {{ll|counter}}
    | 10.78%
    |-
    | drugshack
    | {{ll|crate}}
    | 10.78%
    |-
    | factory
    | {{ll|crate}}
    | 10.78%
    |-
    | factory
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | farmstorage
    | {{ll|crate}}
    | 10.78%
    |-
    | farmstorage
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | garagestorage
    | {{ll|counter}}
    | 10.78%
    |-
    | garagestorage
    | {{ll|crate}}
    | 0.65%
    |-
    | garagestorage
    | {{ll|crate}}
    | 10.78%
    |-
    | garagestorage
    | {{ll|crate}}
    | 19.27%
    |-
    | garagestorage
    | {{ll|locker}}
    | 10.78%
    |-
    | garagestorage
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | generalstore
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | generalstore
    | {{ll|shelves}}
    | 10.78%
    |-
    | generalstorestorage
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | generalstorestorage
    | {{ll|shelves}}
    | 10.78%
    |-
    | gigamart
    | {{ll|shelves}}
    | 10.78%
    |-
    | gigamartkitchen
    | {{ll|counter}}
    | 10.78%
    |-
    | italiankitchen
    | {{ll|counter}}
    | 10.78%
    |-
    | jayschicken_kitchen
    | {{ll|counter}}
    | 10.78%
    |-
    | kitchen
    | {{ll|crate}}
    | 10.78%
    |-
    | loggingfactory
    | {{ll|crate}}
    | 10.78%
    |-
    | loggingfactory
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | pawnshop
    | {{ll|counter}}
    | 10.78%
    |-
    | pawnshop
    | {{ll|crate}}
    | 10.78%
    |-
    | pawnshop
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | pawnshop
    | {{ll|shelves}}
    | 10.78%
    |-
    | pawnshopstorage
    | {{ll|crate}}
    | 10.78%
    |-
    | pawnshopstorage
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | restaurantkitchen
    | {{ll|counter}}
    | 10.78%
    |-
    | shed
    | {{ll|counter}}
    | 10.78%
    |-
    | shed
    | {{ll|crate}}
    | 10.78%
    |-
    | shed
    | {{ll|locker}}
    | 10.78%
    |-
    | shed
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | storageunit
    | {{ll|crate}}
    | 0.65%
    |-
    | storageunit
    | {{ll|crate}}
    | 10.78%
    |-
    | storageunit
    | {{ll|crate}}
    | 19.27%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 0.65%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | toolstore
    | {{ll|counter}}
    | 10.78%
    |-
    | toolstore
    | {{ll|crate}}
    | 10.78%
    |-
    | toolstore
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | toolstore
    | {{ll|shelves}}
    | 10.78%
    |-
    | toolstorestorage
    | {{ll|crate}}
    | 10.78%
    |-
    | toolstorestorage
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | warehouse
    | {{ll|crate}}
    | 10.78%
    |-
    | warehouse
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | westernkitchen
    | {{ll|counter}}
    | 10.78%
    |}
</div>
<div id="vehicles" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Vehicles}}
    ! Type
    ! Container
    ! Effective chance
    |-
    | Carpenter
    | {{ll|Truck Bed}}
    | 10.78%
    |}
</div>
<div id="zombies" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Zombies}}
    ! Outfit
    ! Days survived
    ! Chance
    |-
    | ConstructionWorker<br>Foreman
    | 0
    | 80
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-WoodenMallet" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|WoodenMallet|41.78.16-->
 
==Code==
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 1014
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item WoodenMallet
{
    DisplayCategory = ToolWeapon,
MaxRange = 1,
WeaponSprite = WoodenMallet,
MinAngle = 0.65,
Type = Weapon,
MinimumSwingTime = 3,
KnockBackOnNoDeath = TRUE,
SwingAmountBeforeImpact = 0.02,
Categories = SmallBlunt,
ConditionLowerChanceOneIn = 20,
Weight = 1,
SplatNumber = 1,
PushBackMod = 0.5,
SubCategory = Swinging,
ConditionMax = 8,
MaxHitCount = 1,
DoorDamage = 9,
CanBarricade = TRUE,
SwingAnim = Bat,
DisplayName = Wooden Mallet,
MinRange = 0.61,
SwingTime = 3,
KnockdownMod = 0,
SplatBloodOnNoDeath = TRUE,
Icon = WoodMallet,
RunAnim = Run_Weapon2,
        IdleAnim = Idle_Weapon2,
        BreakSound  =  WoodenMalletBreak,
        DoorHitSound = WoodenMalletHit,
HitSound = WoodenMalletHit,
HitFloorSound = WoodenMalletHit,
SwingSound = WoodenMalletSwing,
        TreeDamage =   0,
        MetalValue = 25,
        CriticalChance = 17,
        CritDmgMultiplier = 3,
        MinDamage = 0.4,
        MaxDamage = 0.9,
        BaseSpeed = 1.1,
WeaponLength = 0.23,
AttachmentType = Hammer,
Tooltip = Tooltip_no_nails,
  }
}}
}}
 
==See also==
*[[Club Hammer]]
 
{{Navbox items|blunt}}

Latest revision as of 19:53, 30 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]
Wooden Mallet
WoodMallet Model.png
General
Category
Weapon
Encumbrance
Moodle Icon HeavyLoad.png
1
Equipped
One-handed
Slot attached
Belt
Properties
Max condition
8
Performance
Damage
0.4–0.9
Range
0.61–1
Knockback
0.5
Knockdown
0
Technical
Item ID
Base.WoodenMallet
Too unwieldy to drive nails.
— In-game tooltip

A wooden mallet is a short blunt melee weapon.

Usage

It currently can't be used as a crafting tool, such as Hammer, Stone Hammer or Ball-peen Hammer, and is only used as a weapon.

Weapon

A wooden mallet is a short blunt weapon with high durability and moderate damage. Compared to many short blunt alternatives, a wooden mallet is considered a good secondary weapon.

Condition

The wooden mallet has a maximum condition of 8. 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 (20 + 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/20 (5%)
0 4 1/22 (5%)
0 8 1/24 (4%)
4 0 1/24 (4%)
8 0 1/28 (4%)
4 4 1/26 (4%)
4 8 1/28 (4%)
8 8 1/32 (3%)
10 10 1/34 (3%)

Distribution

The loot distributions can be found in the table(s) below.

WoodenMallet distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
Bag_ToolBag Bag_ToolBag 2.81%
Carpenter crate 10.78%
Carpenter metal_shelves 10.78%
SafehouseLoot counter 15.1%
SafehouseLoot crate 10.78%
SafehouseLoot crate 15.1%
SafehouseLoot metal_shelves 10.78%
SafehouseLoot metal_shelves 15.1%
SafehouseLoot wardrobe 15.1%
SurvivorCache1 counter 15.1%
SurvivorCache2 counter 15.1%
Toolbox Toolbox 2.81%
ToolsCache1 Bag_DuffelBagTINT 10.78%
ToolsCache1 ToolsBox 10.78%
ToolsCache1 counter 10.78%
all crate 0.65%
all metal_shelves 2.57%
all toolcabinet 10.78%
bedroom crate 0.65%
butcher counter 19.27%
butcher metal_shelves 19.27%
cabinetfactory crate 19.27%
cabinetfactory metal_shelves 19.27%
cabinetshipping metal_shelves 19.27%
cafeteriakitchen counter 10.78%
closet crate 0.65%
closet crate 10.78%
closet crate 19.27%
construction crate 10.78%
deepfry_kitchen counter 10.78%
dinerkitchen counter 10.78%
drugshack counter 10.78%
drugshack crate 10.78%
factory crate 10.78%
factory metal_shelves 10.78%
farmstorage crate 10.78%
farmstorage metal_shelves 10.78%
garagestorage counter 10.78%
garagestorage crate 0.65%
garagestorage crate 10.78%
garagestorage crate 19.27%
garagestorage locker 10.78%
garagestorage metal_shelves 10.78%
generalstore metal_shelves 10.78%
generalstore shelves 10.78%
generalstorestorage metal_shelves 10.78%
generalstorestorage shelves 10.78%
gigamart shelves 10.78%
gigamartkitchen counter 10.78%
italiankitchen counter 10.78%
jayschicken_kitchen counter 10.78%
kitchen crate 10.78%
loggingfactory crate 10.78%
loggingfactory metal_shelves 10.78%
pawnshop counter 10.78%
pawnshop crate 10.78%
pawnshop metal_shelves 10.78%
pawnshop shelves 10.78%
pawnshopstorage crate 10.78%
pawnshopstorage metal_shelves 10.78%
restaurantkitchen counter 10.78%
shed counter 10.78%
shed crate 10.78%
shed locker 10.78%
shed metal_shelves 10.78%
storageunit crate 0.65%
storageunit crate 10.78%
storageunit crate 19.27%
storageunit metal_shelves 0.65%
storageunit metal_shelves 10.78%
toolstore counter 10.78%
toolstore crate 10.78%
toolstore metal_shelves 10.78%
toolstore shelves 10.78%
toolstorestorage crate 10.78%
toolstorestorage metal_shelves 10.78%
warehouse crate 10.78%
warehouse metal_shelves 10.78%
westernkitchen counter 10.78%
Vehicles
Type Container Effective chance
Carpenter Trunk 10.78%
Zombie
Outfit Days survived Chance
ConstructionWorker
Foreman
0 80

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 WoodenMallet
	{
	    DisplayCategory = ToolWeapon,
		MaxRange	=	1,
		WeaponSprite	=	WoodenMallet,
		MinAngle	=	0.65,
		Type	=	Weapon,
		MinimumSwingTime	=	3,
		KnockBackOnNoDeath	=	TRUE,
		SwingAmountBeforeImpact	=	0.02,
		Categories	=	SmallBlunt,
		ConditionLowerChanceOneIn	=	20,
		Weight	=	1,
		SplatNumber	=	1,
		PushBackMod	=	0.5,
		SubCategory	=	Swinging,
		ConditionMax	=	8,
		MaxHitCount	=	1,
		DoorDamage	=	9,
		CanBarricade	=	TRUE,
		SwingAnim	=	Bat,
		DisplayName	=	Wooden Mallet,
		MinRange	=	0.61,
		SwingTime	=	3,
		KnockdownMod	=	0,
		SplatBloodOnNoDeath	=	TRUE,
		Icon	=	WoodMallet,
		RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        BreakSound  =   WoodenMalletBreak,
        DoorHitSound = WoodenMalletHit,
		HitSound = WoodenMalletHit,
		HitFloorSound = WoodenMalletHit,
		SwingSound = WoodenMalletSwing,
        TreeDamage  =   0,
        MetalValue = 25,
        CriticalChance	=	17,
        CritDmgMultiplier = 3,
        MinDamage	=	0.4,
        MaxDamage	=	0.9,
        BaseSpeed = 1.1,
		WeaponLength = 0.23,
		AttachmentType = Hammer,
		Tooltip = Tooltip_no_nails,
  	}

See also