Spiked Baseball Bat: Difference between revisions
m (Automated Formatting) |
|||
(24 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Long blunt weapons}} | |||
| | {{Page version|41.78.16}} | ||
| | {{Infobox item | ||
|name=Spiked Baseball Bat | |||
|model=BaseballBatSpiked_Model.png | |||
| | |icon=BaseballBatNails.png | ||
|icon_name=Spiked Baseball Bat | |||
| | Baseball Bat | ||
|category=Weapon | |category=Weapon | ||
|weight=2 | |weight=2 | ||
Line 16: | Line 12: | ||
|type=Slash | |type=Slash | ||
|min_range=0.61 | |min_range=0.61 | ||
|max_range=1. | |max_range=1.28 | ||
| | |base_speed=0.95 | ||
|condition_max=15 | |condition_max=15 | ||
|skill_type=Blunt | |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 | ||
| | |item_id=Base.BaseballBatNails | ||
}}A '''spiked baseball bat''' is a two-handed melee weapon. | }} | ||
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|baseball bat]] which does more damage, generally killing [[Zombies]] with one well-charged hit, however with an increased probability of damaging it. | |||
It has | 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. | ||
===Breaking doors=== | |||
It can be used to bash down [[door]]s, causing 7 damage per swing. | |||
It | ==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 [[Skills|long blunt]] and [[Skills|maintenance]] skills. The chance of losing [[durability]] can be simplified to the following formula: <code>1 in (10 + 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 the [[Skills|maintenance]] and [[Skills|long blunt]] skills. | |||
{{Durability weapon|10}} | |||
{{ | |||
== | ==Repairing== | ||
The {{PAGENAME}} has | * At level 7 carpentry, wood glue will repair 75% durability | ||
{| class=" | * 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 67: | Line 70: | ||
|} | |} | ||
==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 | |||
|- | |||
|SafehouseLoot | |||
|[[counter]] | |||
|4 | |||
|6 | |||
|} | |||
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== | ==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, | MaxRange = 1.28, | ||
WeaponSprite = BaseballBatSpiked, | WeaponSprite = BaseballBatSpiked, | ||
Line 102: | Line 135: | ||
Icon = BaseballBatNails, | Icon = BaseballBatNails, | ||
RunAnim = Run_Weapon2, | RunAnim = Run_Weapon2, | ||
TwoHandWeapon = TRUE, | |||
BreakSound = SpikedBaseballBatBreak, | |||
DoorHitSound = SpikedBaseballBatHit, | |||
HitSound = SpikedBaseballBatHit, | HitSound = SpikedBaseballBatHit, | ||
HitFloorSound = SpikedBaseballBatHit, | HitFloorSound = SpikedBaseballBatHit, | ||
SwingSound = SpikedBaseballBatSwing, | SwingSound = SpikedBaseballBatSwing, | ||
TreeDamage = 1, | |||
MetalValue = 5, | |||
CriticalChance = 30, | |||
critDmgMultiplier = 5, | |||
MinDamage = 1, | |||
MaxDamage = 1.5, | |||
BaseSpeed = 0.95, | |||
WeaponLength = 0.5, | WeaponLength = 0.5, | ||
DamageCategory = Slash, | |||
DamageMakeHole = TRUE, | |||
AttachmentType = Shovel, | |||
} | |||
}} | |||
===Repair=== | ===Repair=== | ||
{{CodeSnip | |||
fixing Fix | | 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 132: | Line 173: | ||
Fixer : Scotchtape=4, | Fixer : Scotchtape=4, | ||
Fixer : Nails, | Fixer : Nails, | ||
} | |||
}} | |||
}} | |||
==See also== | ==See also== | ||
*[[ | *[[Axe]] | ||
*[[Hammer]] | |||
*[[Spiked Pickaxe Handle]] | |||
{{Navbox | {{Navbox items|blunt}} |
Revision as of 12:20, 14 April 2024
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.
Maintenance skill | Weapon skill | Condition 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 |
---|---|---|---|---|---|
Spiked Baseball Bat |
Wood Glue (2 Uses) |
Duct Tape (2 Uses) |
Glue (2 Uses) |
Adhesive Tape (4 Uses) |
Nails (1 Use) |
Distribution
The loot distributions can be found in the table(s) below.
Containers | |||
---|---|---|---|
Building/Room | Container | Rolls | Chance |
SafehouseLoot | counter | 4 | 6 |
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 |
---|---|---|---|---|---|
Spiked Baseball Bat |
Baseball Bat ×1 Nails ×5 |
Hammer (tag) |
none | none | none |
Watermelon Chunks ×5 |
One of: Baseball Bat ×1 Hammer ×1 Log ×1 Plank ×1 Sledgehammer ×1 Spiked Baseball Bat ×1 Stone Hammer ×1 Each of: Watermelon ×1 |
none | none | none | 0.75 Cooking |
Code
Item
Source: ProjectZomboid\media\scripts\items_weapons.txt
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
fixing Fix Nailed Baseball Bat
{
Require : BaseballBatNails,
Fixer : Woodglue=2; Woodwork=2,
Fixer : DuctTape=2,
Fixer : Glue=2,
Fixer : Scotchtape=4,
Fixer : Nails,
}