Spiked Baseball Bat: Difference between revisions

From PZwiki
mNo edit summary
(Update distribution file)
 
(40 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{{languages|Spiked Baseball Bat}}
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Long blunt weapons}}
{{header|The Game World|Items|Weapons|Melee Weapons|type=Weapon|version=Version 37|incver=8}}{{Infobox weapon
{{Page version|41.78.16}}
|display_name=Spiked Baseball Bat
{{Infobox item
|name_colour=Weapon
|name=Spiked Baseball Bat
|name_text_colour=Weapon
|model=BaseballBatSpiked_Model.png
|image=BaseballBatSpiked_Model.png
|icon=BaseballBatNails.png
|image_width=200px
|icon_name=Spiked Baseball Bat
|alternate_image=BaseballBatNails.png
Baseball Bat
|alternate_name=Spiked Baseball Bat
|alternate_link=
|alternate_image2=BaseballBat.png
|alternate_name2=Baseball Bat
|alternate_link2=Baseball Bat
|category=Weapon
|category=Weapon
|weight=2
|weight=2
|equipped=Two-handed
|equipped=Two-handed
|type=Blunt
|type=Slash
|min_range=0.61
|min_range=0.61
|max_range=1.5
|max_range=1.28
|swing_time=3
|base_speed=0.95
|condition_max=15
|condition_max=15
|skill_type=Blunt
|min_damage=1
|min_damage=1
|max_damage=1.5
|max_damage=1.5
|door_damage=7
|tree_damage=1
|push_back=0.5
|push_back=0.5
|knockdown=2
|knockdown=2
|class_name=Base.BaseballBat
|item_id=Base.BaseballBatNails
}}A '''spiked baseball bat''' is a two-handed melee weapon.
}}
__TOC__
A '''spiked baseball bat''' is a two-handed long blunt melee weapon.
A craftable improvement on the basic [[Baseball Bat|baseball bat]] which does more damage, generally killing [[Zombies]] with one well-charged hit. Since it has good range, pushes zombies away, and deals above average damage, it is an excellent weapon that is relatively easy to find the components for.
<br><br>
However, it has lower durability than a standard baseball bat, and one should only expect it to survive two to three dozen battles. It is recommended to have a backup weapon on long trips, as the spiked baseball bat is likely to break during repeat confrontations.
<br><br>
The spiked baseball bat is not for the unfit, any user should prioritize putting a point or two in swinging skills if not already done so to benefit from the output of the bat.
<br><br>
It can also be used to bash down [[door]]s, causing 7 damage per swing. They are not found naturally but can be found on the bodies of dead survivors, but it is quicker reliable to craft one, as the unmodified bat spawns in many locations in the world.


== Crafting ==  
==Usage==
{| class="wikitable sortable" style="text-align:center;"
The spiked baseball bat is a craftable improvement to the basic [[Baseball Bat|baseball bat]] which does more damage, generally killing [[Zombies]] with one well-charged hit, however with an increased probability of damaging it.
|-
 
! Output
It has good range, knockback, and deals above average damage, with relatively common components. The improved damage does come with the drawback of causing damage to [[clothing]] worn by [[zombie]]s.
! class="unsortable" | Recipe
 
! class="unsortable" | Description
===Breaking doors===
! Skill Level
It can be used to bash down [[door]]s, causing 7 damage per swing.
{{RecipeLookup|3001}}
 
|}
==Condition==
It has lower durability than a standard baseball bat. This is counteracted by the ability to repair it with [[nails]], which are very common. Each nail restores a full point of condition if successful. This can dramatically extend the life of the bat for not much extra investment.


== Materials to Repair ==
The spiked baseball bat has a maximum condition of 15. 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 (10 + maintenanceMod &times; 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 the [[Skills|maintenance]] and [[Skills|long blunt]] skills.
{{Durability weapon|10}}


{| class="wikitable" style="text-align:center;"  
==Repairing==
* At level 7 carpentry, wood glue will repair 75% durability
* Unlike with all weapons, nails can be used to repair the spiked bat.
** Due to how the repair system work in whole numbers, any successful repair will repair the spiked bat by the minimum amount: 1. Meaning that with the lowest success rate with nails being 50% and a low chance to lose condition on failure, a player may repair the spiked bat upwards of 30 times while still gaining more condition than loss.
* The {{PAGENAME}} has an averaging 150 swings before repair, after 30 repairs via nails, it can easily reach 400+ swings.
{| class="wikitable theme-red" style="text-align: center;"
|-
|-
! Item Repaired
! Item Repaired
Line 57: Line 56:
|-
|-
|[[File:BaseballBatNails.png|32px]] <br>
|[[File:BaseballBatNails.png|32px]] <br>
[[Spiked Baseball Bat]]
Spiked Baseball Bat
| [[File:Woodglue.png|32px]]<br>
| [[File:Woodglue.png|32px]]<br>
[[Wood Glue]] <small>(2 Uses)</small><br>
[[Wood Glue]] <small>(2 Uses)</small><br>
Line 69: Line 68:
| [[File:Nails.png|[[Nails]]|32px]]<br>
| [[File:Nails.png|[[Nails]]|32px]]<br>
[[Nails]] <small>(1 Use)</small>
[[Nails]] <small>(1 Use)</small>
|-
|}
|}
=== Repair Code ===


<nowiki>
==Distribution==
     fixing Fix Spiked Baseball Bat
The loot distributions can be found in the table(s) below.
 
 
    Require : BaseballBatNails,
<!--BOT FLAG|BaseballBatNails|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>BaseballBatNails distribution
        <span class="mw-customtoggle-togglebox-BaseballBatNails" 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>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-BaseballBatNails">
    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">
<div class="pz-container">
<div id="containers" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | SafehouseLoot
    | {{ll|counter}}
    | 15.1%
    |-
    | SafehouseLoot
    | {{ll|crate}}
    | 15.1%
    |-
    | SafehouseLoot
    | {{ll|metal_shelves}}
    | 15.1%
    |-
    | SafehouseLoot
    | {{ll|wardrobe}}
    | 15.1%
    |-
    | SurvivorCache1
    | {{ll|counter}}
    | 15.1%
    |-
    | SurvivorCache2
    | {{ll|counter}}
    | 15.1%
    |}
</div>
<div id="zombies" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Zombies}}
    ! Outfit
    ! Days survived
    ! Chance
    |-
    | Bandit
    | 0
    | 50%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-BaseballBatNails" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|BaseballBatNails|41.78.16-->
It can only be found on the bodies of dead survivors and in survivor houses, although it is more reliable to craft one, as the unmodified bat spawns in many locations in the world.
 
==Crafting==
{{Crafting/sandbox2
|spiked_baseball_bat
|watermelon_chunks
}}
 
==Code==
{{CodeBox|
 
===Item===
{{CodeSnip
  | lang = java
  | line = true
  | start = 2355
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item BaseballBatNails
{
    DisplayCategory = WeaponCrafted,
MaxRange = 1.28,
WeaponSprite = BaseballBatSpiked,
MinAngle = 0.75,
Type = Weapon,
MinimumSwingTime = 3,
KnockBackOnNoDeath = TRUE,
SwingAmountBeforeImpact = 0.02,
Categories = Blunt,
ConditionLowerChanceOneIn = 10,
Weight = 2,
SplatNumber = 2,
PushBackMod = 0.5,
SubCategory = Swinging,
ConditionMax = 15,
MaxHitCount = 2,
DoorDamage = 7,
IdleAnim = Idle_Weapon2,
SwingAnim = Bat,
DisplayName = Spiked Baseball Bat,
MinRange = 0.61,
SwingTime = 3,
HitAngleMod = -30,
KnockdownMod = 2,
SplatBloodOnNoDeath = TRUE,
Icon = BaseballBatNails,
RunAnim = Run_Weapon2,
        TwoHandWeapon = TRUE,
        BreakSound  =  SpikedBaseballBatBreak,
        DoorHitSound = SpikedBaseballBatHit,
HitSound = SpikedBaseballBatHit,
HitFloorSound = SpikedBaseballBatHit,
SwingSound = SpikedBaseballBatSwing,
        TreeDamage  =  1,
        MetalValue = 5,
        CriticalChance = 30,
        critDmgMultiplier = 5,
        MinDamage = 1,
        MaxDamage = 1.5,
        BaseSpeed = 0.95,
WeaponLength = 0.5,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        AttachmentType = Shovel,
}
}}
 
===Repair===
{{CodeSnip
  | lang = java
  | line = true
  | start = 183
  | source = fixing.txt
  | retrieved = true
  | version = 41.78.16
  | code =
     fixing Fix Nailed Baseball Bat
    {
      Require : BaseballBatNails,


       Fixer : Woodglue=2; Woodwork=2,
       Fixer : Woodglue=2; Woodwork=2,
Line 83: Line 215:
       Fixer : Scotchtape=4,
       Fixer : Scotchtape=4,
       Fixer : Nails,
       Fixer : Nails,
</nowiki>
    }
 
}}
== Code ==
}}
<nowiki>
item BaseballBatNails
MaxRange = 1.5,
WeaponSprite = BaseballbatSpiked,
MinAngle = 0.2,
Type = Weapon,
MinimumSwingTime = 3,
KnockBackOnNoDeath = TRUE,
SwingAmountBeforeImpact = 0.02,
Categories = Blunt,
ConditionLowerChanceOneIn = 10,
Weight = 2,
SplatN.umber = 1,
PushBackMod = 0.5,
MaxDamage = 1.5,
SubCategory = Swinging,
ConditionMax = 15,
MaxHitCount = 2,
DoorDamage = 7,
IdleAnim = Idle_Weapon2,
SwingAnim = Bat,
CriticalChance = 15,
WeaponWeight = 2,
DisplayName = Spiked Baseball Bat,
MinRange = 0.61,
SwingTime = 3,
HitAngleMod = -30,
MinDamage = 1,
KnockdownMod = 2,
SplatBloodOnNoDeath = TRUE,
Icon = BaseballBatNails,
RunAnim = Run_Weapon2,
        TwoHandWeapon = TRUE,
        BreakSound  = PZ_WoodSnap,
        TreeDamage  = 1,
        MetalValue = 5,
</nowiki>
 


==See Also==
==See also==
* [[Baseball Bat]]
*[[Axe]]
*[[Hammer]]
*[[Spiked Pickaxe Handle]]


{{Navbox/Weapons}}
{{Navbox items|blunt}}

Latest revision as of 13:57, 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]
Spiked Baseball Bat
BaseballBatSpiked Model.png
General
Category
Weapon
Encumbrance
Moodle Icon HeavyLoad.png
2
Equipped
Two-handed
Skill
Properties
Max condition
15
Performance
Damage
1–1.5
Door damage
7
Tree damage
1
Range
0.61–1.28
Attack speed
0.95
Knockback
0.5
Knockdown
2
Technical
Item ID
Base.BaseballBatNails

A spiked baseball bat is a two-handed long blunt melee weapon.

Usage

The spiked baseball bat is a craftable improvement to the basic baseball bat which does more damage, generally killing Zombie with one well-charged hit, however with an increased probability of damaging it.

It has good range, knockback, and deals above average damage, with relatively common components. The improved damage does come with the drawback of causing damage to clothing worn by zombies.

Breaking doors

It can be used to bash down doors, causing 7 damage per swing.

Condition

It has lower durability than a standard baseball bat. This is counteracted by the ability to repair it with nails, which are very common. Each nail restores a full point of condition if successful. This can dramatically extend the life of the bat for not much extra investment.

The spiked baseball bat has a maximum condition of 15. 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 (10 + 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 the maintenance and long blunt skills.

For how this is calculated, see: Condition
Maintenance skill Weapon skill Durability lower chance
0 0 1/10 (10%)
0 4 1/12 (8%)
0 8 1/14 (7%)
4 0 1/14 (7%)
8 0 1/18 (6%)
4 4 1/16 (6%)
4 8 1/18 (6%)
8 8 1/22 (5%)
10 10 1/24 (4%)

Repairing

  • At level 7 carpentry, wood glue will repair 75% durability
  • Unlike with all weapons, nails can be used to repair the spiked bat.
    • Due to how the repair system work in whole numbers, any successful repair will repair the spiked bat by the minimum amount: 1. Meaning that with the lowest success rate with nails being 50% and a low chance to lose condition on failure, a player may repair the spiked bat upwards of 30 times while still gaining more condition than loss.
  • The Spiked Baseball Bat has an averaging 150 swings before repair, after 30 repairs via nails, it can easily reach 400+ swings.
Item Repaired 1st Repair Materials =
55% Repaired, 100% Success

20% Repaired, 95% Success

10% Repaired, 95% Success

10% Repaired, 95% Success

5% Repaired, 95% Success
BaseballBatNails.png

Spiked Baseball Bat

Woodglue.png

Wood Glue (2 Uses)
(Requires Carpentry Level 2)

DuctTape.png

Duct Tape (2 Uses)

Glue.png

Glue (2 Uses)

Scotchtape.png

Adhesive Tape (4 Uses)

Nails

Nails (1 Use)

Distribution

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

BaseballBatNails 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
SafehouseLoot counter 15.1%
SafehouseLoot crate 15.1%
SafehouseLoot metal_shelves 15.1%
SafehouseLoot wardrobe 15.1%
SurvivorCache1 counter 15.1%
SurvivorCache2 counter 15.1%
Zombie
Outfit Days survived Chance
Bandit 0 50%

It can only be found on the bodies of dead survivors and in survivor houses, although it is more reliable to craft one, as the unmodified bat spawns in many locations in the world.

Crafting

Product Ingredients Tools Requirements Workstation XP
BaseballBatNails.png
Spiked Baseball Bat
BaseballBat.png Baseball Bat ×1
Nails.png Nails ×5

Hammer.png
Hammer (tag)
none none none
WatermelonSmashed.png
Watermelon Chunks ×5
One of:
BaseballBat.png Baseball Bat ×1
Hammer.png Hammer ×1
Logs.png Log ×1
Plank.png Plank ×1
Sledgehamer.png Sledgehammer ×1
BaseballBatNails.png Spiked Baseball Bat ×1
HammerStone.png Stone Hammer ×1
Each of:
Watermelon.png Watermelon ×1
none none none 0.75 Cooking

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Item

Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item BaseballBatNails
	{
	    DisplayCategory = WeaponCrafted,
		MaxRange	=	1.28,
		WeaponSprite	=	BaseballBatSpiked,
		MinAngle	=	0.75,
		Type	=	Weapon,
		MinimumSwingTime	=	3,
		KnockBackOnNoDeath	=	TRUE,
		SwingAmountBeforeImpact	=	0.02,
		Categories	=	Blunt,
		ConditionLowerChanceOneIn	=	10,
		Weight	=	2,
		SplatNumber	=	2,
		PushBackMod	=	0.5,
		SubCategory	=	Swinging,
		ConditionMax	=	15,
		MaxHitCount	=	2,
		DoorDamage	=	7,
		IdleAnim	=	Idle_Weapon2,
		SwingAnim	=	Bat,
		DisplayName	=	Spiked Baseball Bat,
		MinRange	=	0.61,
		SwingTime	=	3,
		HitAngleMod	=	-30,
		KnockdownMod	=	2,
		SplatBloodOnNoDeath	=	TRUE,
		Icon	=	BaseballBatNails,
		RunAnim	=	Run_Weapon2,
        TwoHandWeapon = TRUE,
        BreakSound  =   SpikedBaseballBatBreak,
        DoorHitSound = SpikedBaseballBatHit,
		HitSound = SpikedBaseballBatHit,
		HitFloorSound = SpikedBaseballBatHit,
		SwingSound = SpikedBaseballBatSwing,
        TreeDamage  =   1,
        MetalValue = 5,
        CriticalChance	=	30,
        critDmgMultiplier = 5,
        MinDamage	=	1,
        MaxDamage	=	1.5,
        BaseSpeed = 0.95,
		WeaponLength = 0.5,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        AttachmentType = Shovel,
	}

Repair

Source: ProjectZomboid\media\scripts\fixing.txt

Retrieved: Build 41.78.16
fixing Fix Nailed Baseball Bat
    {
       Require : BaseballBatNails,

       Fixer : Woodglue=2; Woodwork=2,
       Fixer : DuctTape=2,
       Fixer : Glue=2,
       Fixer : Scotchtape=4,
       Fixer : Nails,
    }

See also