Spoon: Difference between revisions

From PZwiki
m (→‎top: category project: "The Game World")
(→‎Code: Codebox Update)
Line 56: Line 56:


== Code ==
== Code ==
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41|incver=53}}
| {{CodeSnip
<pre>
  | lang = java
item Spoon
  | line = true
MaxRange = 0.8,
  | start = 0
WeaponSprite = Spoon,
  | source = items_weapons.txt
MinAngle = 0.65,
  | retrieved = true
Type = Weapon,
  | version = 41
MinimumSwingTime = 2,
  | incver = 53
SwingAmountBeforeImpact = 0.02,
  | code =
Categories = SmallBlade,
item Spoon
Weight = 0.3,
{
ConditionLowerChanceOneIn = 1,
  MaxRange               = 0.8,
PushBackMod = 0.3,
  WeaponSprite           = Spoon,
SubCategory = Stab,
  MinAngle               = 0.65,
AimingMod = 0.8,
  Type                   = Weapon,
ConditionMax = 3,
  MinimumSwingTime       = 2,
MaxHitCount = 1,
  SwingAmountBeforeImpact = 0.02,
IsAimedHandWeapon = TRUE,
  Categories             = SmallBlade,
DoorDamage = 1,
  Weight                 = 0.3,
SwingAnim = Stab,
  ConditionLowerChanceOneIn = 1,
DisplayName = Spoon,
  PushBackMod             = 0.3,
MinRange = 0.2,
  SubCategory             = Stab,
SwingTime = 2,
  AimingMod               = 0.8,
KnockdownMod = 0,
  ConditionMax           = 3,
Icon = Spoon,
  MaxHitCount             = 1,
TreeDamage = 0,
  IsAimedHandWeapon       = TRUE,
EnduranceMod = 0.5,
  DoorDamage             = 1,
MetalValue = 5,
  SwingAnim               = Stab,
CriticalChance = 0,
  DisplayName             = Spoon,
MinDamage = 0.1,
  MinRange               = 0.2,
MaxDamage = 0.1,
  SwingTime               = 2,
WeaponLength = 0.17,
  KnockdownMod           = 0,
AttachmentType = Screwdriver,
  Icon                   = Spoon,
BreakSound = BreakMetalItem,
  TreeDamage             = 0,
</pre>
  EnduranceMod           = 0.5,
  MetalValue             = 5,
  CriticalChance         = 0,
  MinDamage               = 0.1,
  MaxDamage               = 0.1,
  WeaponLength           = 0.17,
  AttachmentType         = Screwdriver,
  BreakSound             = BreakMetalItem,
}
  }}
}}


==See also==
==See also==

Revision as of 04:44, 13 January 2024

Spoon
Spoon
Spoon
General
Category Weapon
Encumbrance
Heavy Load
0.3
Equipped One-handed
Condition max. 3
Skill Short Blade
Damage
Type SmallBlade
Attack speed 2
Range 0.2–0.8 tiles
Damage 0.1–0.1
Knockback 0.3
Technical details
Base ID Base.Spoon

A spoon is a blade melee weapon.

Usage

Eating Canned Beans with a spoon.

The spoon can used to mix pancakes. If a spoon is in the player's inventory while eating certain foods, the spoon will be used to eat. There is currently no benefit to eating with a spoon.

Weapon

The spoon is an emergency weapon with extremely low damage and cannot perform the instant kill jaw stab, unlike most one-handed blade weapons. It is also highly ineffective in a defensive situation, as it will never knockdown an opponent and has very low knockback.

The spoon has a very short range, making it difficult to use when fighting zombies, however it does have a quick attack. It is a single-attack weapon, hitting just 1 opponent with each swing. Spoons are pretty much useless in combat and should not be equipped in an emergency, unless smashing a window.

Breaking doors

It is ineffective at bashing down doors, dealing just 1 damage per hit. For comparison, an axe deals 35 damage.

Chopping trees

It cannot be used to chop trees, dealing 0 damage per hit. For comparison, an axe deals 35 damage.

Condition

The condition of the spoon is influenced by the maintenance skill. It has a maximum condition of just 3 and will be damaged depending on the player's maintenance skill. The chance of losing durability is: 1 in (1 + maintenance x 2).

Repairing

A spoon cannot be repaired.

Crafting

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3
SpearSpoon.png
Spear with Spoon
0 XP none SpearStick.png
Crafted Spear
(consumed)
Spoon.png
Spoon
(consumed)
DuctTape.png
Duct Tape (2 units)
(consumed)
|-
Spoon.png
Spoon
0 XP none SpearSpoon.png
Spear with Spoon
(consumed)


Distribution

Spoons are an incredibly common household item found in kitchen counters.

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.53
item Spoon
{
  MaxRange                = 0.8,
  WeaponSprite            = Spoon,
  MinAngle                = 0.65,
  Type                    = Weapon,
  MinimumSwingTime        = 2,
  SwingAmountBeforeImpact = 0.02,
  Categories              = SmallBlade,
  Weight                  = 0.3,
  ConditionLowerChanceOneIn = 1,
  PushBackMod             = 0.3,
  SubCategory             = Stab,
  AimingMod               = 0.8,
  ConditionMax            = 3,
  MaxHitCount             = 1,
  IsAimedHandWeapon       = TRUE,
  DoorDamage              = 1,
  SwingAnim               = Stab,
  DisplayName             = Spoon,
  MinRange                = 0.2,
  SwingTime               = 2,
  KnockdownMod            = 0,
  Icon                    = Spoon,
  TreeDamage              = 0,
  EnduranceMod            = 0.5,
  MetalValue              = 5,
  CriticalChance          = 0,
  MinDamage               = 0.1,
  MaxDamage               = 0.1,
  WeaponLength            = 0.17,
  AttachmentType          = Screwdriver,
  BreakSound              = BreakMetalItem,
}

See also