Table Leg: Difference between revisions

From PZwiki
m (Added link to model image)
m (Automated Formatting)
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{stub}}
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Short blunt weapons}}
{{languages|{{PAGENAME}}}}
{{Page version|41.78.16}}
{{header|The Game World|Items|Weapons|type=Weapon|version=Version 41|incver=55}}
{{Infobox item
{{Infobox weapon
|name=Table Leg
|display_name=Table Leg
|model=TableLeg_Model.png
|name_colour=Weapon
|icon=TableLeg.png
|name_text_colour=Weapon
|icon_name=Table Leg
|image=TableLeg_Model.png
|alternate_image=TableLeg.png
|alternate_name=Table Leg
<!--GENERAL-->
<!--GENERAL-->
|category=Weapon
|category=Weapon
Line 17: Line 14:
<!--DAMAGE-->
<!--DAMAGE-->
|type=SmallBlunt
|type=SmallBlunt
|swing_time=4
|base_speed=1
|min_range=0.61
|min_range=0.61
|max_range=1
|max_range=1
Line 26: Line 23:
|knockdown=2
|knockdown=2
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=TableLeg
|item_id=Base.TableLeg
}}
}}
A '''table leg''' is a short blunt weapon.
A '''table leg''' is a short blunt [[Weapons|weapon]].


== Usage ==
== Usage ==
A table leg functions as an improvised weapon with low durability and damage. It deals moderate damage to doors, however.
A table leg functions as an improvised weapon with low durability and damage. It deals moderate damage to doors, however.
==Condition==
The table leg has a maximum condition of 4. 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 (3 + 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.
{{Durability weapon|3}}


== Code ==
== Code ==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41|incver=55}}
| {{CodeSnip
<pre> item TableLeg
  | lang = java
MaxRange = 1,
  | line = true
WeaponSprite = TableLeg,
  | start = 804
MinAngle = 0.65,
  | source = items_weapons.txt
Type = Weapon,
  | retrieved = true
MinimumSwingTime = 4,
  | version = 41.78.16
KnockBackOnNoDeath = FALSE,
  | code =
SwingAmountBeforeImpact = 0.02,
item TableLeg
Categories = Improvised;SmallBlunt,
    {
ConditionLowerChanceOneIn = 3,
        DisplayCategory = WeaponCrafted,
Weight = 1.5,
        MaxRange = 1,
SplatNumber = 1,
        WeaponSprite = TableLeg,
PushBackMod = 0.3,
        MinAngle = 0.65,
SubCategory = Swinging,
        Type = Weapon,
ConditionMax = 4,
        MinimumSwingTime = 4,
MaxHitCount = 2,
        KnockBackOnNoDeath = FALSE,
DoorDamage = 5,
        SwingAmountBeforeImpact = 0.02,
SwingAnim = Bat,
        Categories = Improvised;SmallBlunt,
DisplayName = Table Leg,
        ConditionLowerChanceOneIn = 3,
MinRange = 0.61,
        Weight = 1.5,
SwingTime = 4,
        SplatNumber = 1,
KnockdownMod = 2,
        PushBackMod = 0.3,
SplatBloodOnNoDeath = FALSE,
        SubCategory = Swinging,
Icon = TableLeg,
        ConditionMax = 4,
BreakSound = TableLegBreak,
        MaxHitCount = 2,
DoorHitSound = TableLegHit,
        DoorDamage = 5,
HitSound = TableLegHit,
        SwingAnim = Bat,
HitFloorSound = TableLegHit,
        DisplayName = Table Leg,
SwingSound = TableLegSwing,
        MinRange = 0.61,
TreeDamage = 0,
        SwingTime = 4,
CriticalChance = 10,
        KnockdownMod = 2,
CritDmgMultiplier = 2,
        SplatBloodOnNoDeath = FALSE,
MinDamage = 0.5,
        Icon = TableLeg,
MaxDamage = 0.9,
        BreakSound =   TableLegBreak,
BaseSpeed = 1,
        DoorHitSound = TableLegHit,
</pre>
HitSound = TableLegHit,
HitFloorSound = TableLegHit,
SwingSound = TableLegSwing,
        TreeDamage =   0,
        CriticalChance = 10,
        CritDmgMultiplier = 2,
        MinDamage = 0.5,
        MaxDamage = 0.9,
        BaseSpeed = 1,
    }
}}
}}
 
==See also==
*[[Chair Leg]]
*[[Large Table]]
*[[Pickaxe Handle]]
*[[Small Table]]


{{Navbox_weapons}}
{{Navbox items|blunt}}

Latest revision as of 12:39, 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]
Table Leg
TableLeg Model.png
General
Category
Weapon
Encumbrance
Moodle Icon HeavyLoad.png
1.5
Equipped
One-handed
Properties
Max condition
4
Performance
Damage
0.5–0.9
Door damage
5
Range
0.61–1
Attack speed
1
Knockback
0.3
Knockdown
2
Technical
Item ID
Base.TableLeg

A table leg is a short blunt weapon.

Usage

A table leg functions as an improvised weapon with low durability and damage. It deals moderate damage to doors, however.

Condition

The table leg has a maximum condition of 4. 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 (3 + 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/3 (33%)
0 4 1/5 (20%)
0 8 1/7 (14%)
4 0 1/7 (14%)
8 0 1/11 (9%)
4 4 1/9 (11%)
4 8 1/11 (9%)
8 8 1/15 (7%)
10 10 1/17 (6%)

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 TableLeg
    {
        DisplayCategory = WeaponCrafted,
        MaxRange	=	1,
        WeaponSprite	=	TableLeg,
        MinAngle	=	0.65,
        Type	=	Weapon,
        MinimumSwingTime	=	4,
        KnockBackOnNoDeath	=	FALSE,
        SwingAmountBeforeImpact	=	0.02,
        Categories	=	Improvised;SmallBlunt,
        ConditionLowerChanceOneIn	=	3,
        Weight	=	1.5,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Swinging,
        ConditionMax	=	4,
        MaxHitCount	=	2,
        DoorDamage	=	5,
        SwingAnim	=	Bat,
        DisplayName	=	Table Leg,
        MinRange	=	0.61,
        SwingTime	=	4,
        KnockdownMod	=	2,
        SplatBloodOnNoDeath	=	FALSE,
        Icon	=	TableLeg,
        BreakSound  =   TableLegBreak,
        DoorHitSound = TableLegHit,
		HitSound = TableLegHit,
		HitFloorSound = TableLegHit,
		SwingSound = TableLegSwing,
        TreeDamage  =   0,
        CriticalChance	=	10,
        CritDmgMultiplier = 2,
        MinDamage	=	0.5,
        MaxDamage	=	0.9,
        BaseSpeed = 1,
    }

See also