Crowbar: Difference between revisions

From PZwiki
mNo edit summary
(New infobox + separated into new layout)
Line 1: Line 1:
__NOTOC__
{{languages|Crowbar}}
{{languages|Crowbar}}
{{header|The Game World|Items|Weapons|Melee Weapons|version=Version 37|incver=8}}{{Weapons|image = Crowbar.png |weapontype = Melee |ammo = None|hands = One handed|weight = 3.0|mindamage = 0.6|maxdamage = 1.1|condition = 15|degrade = 70|id = Crowbar}}'''The Crowbar''' is a blunt weapon that currently has the sprite of a baseball bat. However, it has different properties than a [[Baseball Bat]].  
{{header|The Game World|Items|Weapons|Melee Weapons|version=Version 39|incver=67.5}}{{Infobox weapon
<br><br>
|display_name=Crowbar
The Crowbar has a very high durability and it can deal a good amount of damage to an enemy. (currently 1/70 swings causes durability loss).  
|image=crowbar_120px.png
<br><br>
|weight=3
The crowbar is also capable of breaking down [[doors]] doing 8 damage per swing, although it may not be as efficient as the [[Axe]] (35 damage) or the [[Sledgehammer]] (40 dmg). The crowbar has a fairly long reach that allows a wielder to fight off enemies at a decent distance. The crowbar is a single attack weapon, meaning it can only concentrate on one zombie at a time, attacking two at a time is risky as only one zombie will be stopped per hit and the other could get in close enough to damage the character.
|weight_bkg=1
<br><br>
|weapon_type=Blunt
The crowbar is usually found in warehouse crates and in tool shelves in sheds or warehouses. The crowbar cannot be repaired.
|primary_use=Weapon
<br><br><br><br><br><br>
|primary_use_bkg=1
|secondary_use=Pick up flooring
|equipped=One-handed
|equipped_bkg=1
|condition_max=15
|min_range=0.61
|max_range=1.2
|range_bkg=1
|min_damage=0.6
|max_damage=1.1
|class_name=Base.Crowbar
|class_name_bkg=1
}}'''The Crowbar''' is a blunt weapon that currently has the sprite of a baseball bat, however with very different properties to the [[Baseball bat|baseball bat]].
 
==Usage==
===Weapon===
====Attacking====
The crowbar performs a ''swinging'' attack, however is a single hit weapon, meaning that it will only hit one enemy at a time. Attacking two or more zombies at once can be risky as only one will be knocked back per swing, while the other(s) could get close enough to injure the player.
 
The crowbar has a fairly long range for a one-handed weapon that allows a wielder to fight off enemies at a decent distance.  
 
====Breaking doors====
The crowbar is capable of breaking down [[doors]] dealing 8 damage per swing, although it is not as efficient as the [[axe]] (35 damage) or [[sledgehammer]] (40 dmg).  
 
===Tool===
====Pick up flooring====
The crowbar can be considered a tool as it is the only item capable of picking up flooring. This is done by ''right-clicking'' a floor tile and selecting the floor tile in the context menu. Ensure that the crowbar is in the player's main inventory, otherwise the option may not appear.
 
==Condition==
The crowbar is a [[Skills#Blunt|blunt]] weapon, therefore being influenced by the blunt skills: accuracy, guard and maintenance. It has a maximum condition of 15 and will be damaged depending on the player's maintenance skill. The chance of losing durability is: <code>1 in (70 + maintenance x 2)</code>. It has a very high durability and will not break easily.
 
The crowbar cannot be repaired.
 
==Item distribution==
The crowbar is usually found in warehouse [[Containers#Crates|crates]] and in tool [[Containers#Shelves|shelves]] in sheds or warehouses.  
===Buildings===
{| class="wikitable" style="text-align:center;"
|-
!Building/Room
!Container
!Rolls
!Chance
|-
|rowspan="2"|All
|[[Containers#Crates|Crate]]
|1
|1
|-
<!--|All-->
|[[Containers#Shelves|Metal Shelves]]
|4
|2
|-
|rowspan="2"|Tool Store
|[[Containers#Shelves|Shelf]]
|5
|6
|-
<!--|Tool Store-->
|[[Containers#Counters|Counter]]
|2
|6
|-
|Bedroom
|[[Containers#Bedrooms Storage|Wardrobe]]
|2
|2
|-
|Changeroom
|[[Containers#Lockers|Locker]]
|2
|2
|-
|Fossoil
|[[Containers#Counters|Counter]]
|4
|5
|-
|Grocery Store
|[[Containers#Counters|Counter]]
|4
|5
|-
|Storage Unit
|[[Containers|All]]
|3
|5
|-
|Zippee Store
|[[Containers#Counters|Counter]]
|1
|5
|-
|}
===Vehicles===
The crowbar does not spawn in any vehicle.


== Code ==
== Code ==
  <nowiki>
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=39|incver=67.5}}
  <nowiki>
item Crowbar
item Crowbar
MaxRange = 1.2,
MaxRange = 1.2,
Line 45: Line 141:
MetalValue = 150,
MetalValue = 150,
</nowiki>
</nowiki>


==See Also==
==See Also==
* [[:Category:Tiles|World Tiles]]


{{Navbox/Tools}}{{Navbox/Weapons}}
{{Navbox/Tools}}{{Navbox/Weapons}}
[[Category:Tools]]
[[Category:Tools]]

Revision as of 06:31, 20 June 2018

Crowbar
Crowbar
General
Category Weapon
Encumbrance
Heavy Load
3
Function Weapon
Pick up flooring
Equipped One-handed
Condition max. 15
Damage
Range 0.61–1.2 tiles
Damage 0.6–1.1
Technical details
Base ID Base.Crowbar

The Crowbar is a blunt weapon that currently has the sprite of a baseball bat, however with very different properties to the baseball bat.

Usage

Weapon

Attacking

The crowbar performs a swinging attack, however is a single hit weapon, meaning that it will only hit one enemy at a time. Attacking two or more zombies at once can be risky as only one will be knocked back per swing, while the other(s) could get close enough to injure the player.

The crowbar has a fairly long range for a one-handed weapon that allows a wielder to fight off enemies at a decent distance.

Breaking doors

The crowbar is capable of breaking down doors dealing 8 damage per swing, although it is not as efficient as the axe (35 damage) or sledgehammer (40 dmg).

Tool

Pick up flooring

The crowbar can be considered a tool as it is the only item capable of picking up flooring. This is done by right-clicking a floor tile and selecting the floor tile in the context menu. Ensure that the crowbar is in the player's main inventory, otherwise the option may not appear.

Condition

The crowbar is a blunt weapon, therefore being influenced by the blunt skills: accuracy, guard and maintenance. It has a maximum condition of 15 and will be damaged depending on the player's maintenance skill. The chance of losing durability is: 1 in (70 + maintenance x 2). It has a very high durability and will not break easily.

The crowbar cannot be repaired.

Item distribution

The crowbar is usually found in warehouse crates and in tool shelves in sheds or warehouses.

Buildings

Building/Room Container Rolls Chance
All Crate 1 1
Metal Shelves 4 2
Tool Store Shelf 5 6
Counter 2 6
Bedroom Wardrobe 2 2
Changeroom Locker 2 2
Fossoil Counter 4 5
Grocery Store Counter 4 5
Storage Unit All 3 5
Zippee Store Counter 1 5

Vehicles

The crowbar does not spawn in any vehicle.

Code

From newitems.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 39.67.5

	item Crowbar
		MaxRange			= 1.2,
		WeaponSprite			= Baseballbat,
		MinAngle			= 0,
		Type				= Weapon,
		MinimumSwingTime		= 3,
		KnockBackOnNoDeath 		= TRUE,
		SwingAmountBeforeImpact		= 0.02,
		Categories			= Blunt,
		Weight				= 3,
		ConditionLowerChanceOneIn	= 70,
		PushBackMod			= 0.5,
		MinDamage			= 0.6,
		MaxDamage			= 1.1,
		SubCategory			= Swinging,
		ConditionMax			= 15,
		MaxHitCount			= 1,
		DoorDamage			= 8,
		IdleAnim			= Idle_Weapon2,
		SwingAnim			= Bat,
		CriticalChance			= 10,
		WeaponWeight			= 4,
		DisplayName			= Crowbar,
		MinRange			= 0.61,
		SwingTime			= 3,
		HitAngleMod			= -30,
		KnockdownMod			= 0,
		Icon				= Crowbar,
		RunAnim				= Run_Weapon2,
		BreakSound  			= PZ_MetalSnap,
		TreeDamage  			= 1,
		MetalValue 			= 150,

See Also

Template:Navbox/ToolsTemplate:Navbox/Weapons