Spare Engine Parts: Difference between revisions

From PZwiki
(elaborate on information)
(→‎Code: code box update)
Line 20: Line 20:


==Code==
==Code==
'''''From vehiclesitems.txt (Project Zomboid directory/media/scripts/)'''''
 
{{Retrieved|version=41|incver=49}}
{{CodeBox
<pre>
| {{CodeSnip
    item EngineParts
  | lang = java
      Weight = 0.4,
  | line = true
      Type = Normal,
  | start = 0
      DisplayName = Spare Engine Parts,
  | source = vehiclesitems.txt
      Icon = EngineParts,
  | retrieved = true
      MetalValue = 30,
  | version = 41
      MechanicsItem = TRUE,
  | incver = 49
</pre>
  | code =
item EngineParts
{
    Weight = 0.4,
    Type = Normal,
    DisplayName = Spare Engine Parts,
    Icon = EngineParts,
    MetalValue = 30,
    MechanicsItem = TRUE,
}
  }}
}}


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

Revision as of 08:01, 8 January 2024

The Game WorldItemsSpare Engine Parts
Spare Engine Parts
General
Category
Item
Encumbrance
Moodle Icon HeavyLoad.png
0.4
Function
Repair engine
Install/Uninstall
Tool(s)

Spare engine parts are an item used in vehicle mechanics to repair engines.

Usage

Spare engine parts are used to repair a vehicle's engine. Repairing an engine requires a wrench and certain mechanics skill depending on the vehicle type: starting at level 4 for standard, level 5 for heavy-duty, and level 6 for sport. To repair an engine, right-click the engine icon and select "Repair Engine", this will use all spare engine parts accessible by the player until the condition reaches 100%. The amount of condition repaired per spare engine part is 1% per part at low level for standard vehicles, up to 4% at 10 mechanics. For sport and heavy-duty vehicles the amount is reduced, with a maximum of 3% at level 10 for heavy-duty.

It is important to distinguish that while an engine's condition can be repaired, an engine's quality cannot be altered in any way. The quality of the engine affects the chance for the engine to start. While the engine condition also heavily influences this, the quality still plays a major role. Therefore, it is possible to have an engine at 100% condition that still does not start reliably. The engine quality can be checked by clicking on the engine in the Mechanics menu. It is a separate stat from condition.

Distribution

Spare engine parts sparsely appear in the world within car repair shops, and can also be obtained by dismantling a vehicle's engine. However, this requires a mechanics level. A wrench is also needed and will always set the engine condition to zero, no matter how many parts are salvaged or the engine's previous condition. The number of spare engine parts recovered is partially random, however it is influenced by the player's mechanics level and condition of the engine. A rough estimate for max level mechanic is 0-2 parts for each 10% of engine condition.

Code

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

Source: ProjectZomboid\media\scripts\vehicles\vehiclesitems.txt

Retrieved: Build 41.49
item EngineParts
{
    Weight = 0.4,
    Type = Normal,
    DisplayName = Spare Engine Parts,
    Icon = EngineParts,
    MetalValue = 30,
    MechanicsItem = TRUE,
}

See also