Spare Engine Parts: Difference between revisions

From PZwiki
m (→‎Code: Update code)
m (Distribution table update)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Header|Project Zomboid|Vehicles|Vehicle parts}}
{{Header|Project Zomboid|Vehicles|Vehicle parts}}
{{Page version|41.78.16}}
{{Page version|41.78.16}}
{{Infobox vehicle part/sandbox
{{Infobox vehicle part
|name = Spare Engine Parts
|name=Spare Engine Parts
|model = EngineParts_Model.png
|model=EngineParts_Model.png
|icon=EngineParts.png
|icon=EngineParts.png
|icon_name=Engine Parts
|icon_name=Engine Parts
|category = Vehicle Maintenance
|category=Vehicle Maintenance
|weight = 0.4
|weight=0.4
|function = Repair engine
|function=Repair engine
|tool = [[Wrench]]
|tool=[[Wrench]]
|item_id = Base.EngineParts
|item_id=Base.EngineParts
}}
}}
'''Spare engine parts''' are an [[Items|item]] used in [[vehicles|vehicle]] [[mechanics]] to repair engines.
'''Spare engine parts''' are an [[Items|item]] used in [[vehicles|vehicle]] [[mechanics]] to repair engines.


==Usage==
==Usage==
Spare engine parts are used to repair a vehicle's engine. Repairing an engine requires a [[wrench]] and certain [[Skills|mechanics skill]] depending on the [[Vehicles#Types|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.
Spare engine parts are used to repair a vehicle's engine. Repairing an engine requires a [[wrench]] and certain [[Skills|mechanics skill]] depending on the [[Vehicles#Types|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.


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.
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.
Line 23: Line 22:
The loot distributions can be found in the table(s) below.
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;"
<!--BOT FLAG|EngineParts|41.78.16-->
! colspan="4" | Containers
{{clear}}
|-
<div class="togglebox theme-red">
! Building/Room
    <div>EngineParts distribution
! Container
        <span class="mw-customtoggle-togglebox-EngineParts" title="{{int:show}} / {{int:hide}}" style="float:right; padding-right:30px; padding-top:4px; font-size:0.7em; font-weight:normal;">{{int:show}} / {{int:hide}}</span></div>
! style="width: 3.2em;" | Rolls
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-EngineParts">
! style="width: 3.2em;" | Chance
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
|-
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
|rowspan="2"|all
    |+ {{ll|Containers}}
|[[toolcabinet]]
    ! Building / Room
|4
    ! Container
|1
    ! Rolls
|-
    ! Chance
|[[toolcabinet]]
    |-
|4  
    | all
|1
    | {{ll|toolcabinet}}
|-
    | 4
|rowspan="3"|carsupply  
    | 10.0
|[[metal_shelves]]
    |-
|4  
    | carsupply
|1
    | {{ll|metal_shelves}}
|-
    | 4
|[[metal_shelves]]
    | 10.0
|4
    |}
|1
</div>
|-
    </div><div style="clear:both;"></div>
|[[metal_shelves]]
    </div></div><div class="toggle large mw-customtoggle-togglebox-EngineParts" title="{{int:show}}/{{int:hide}}"></div></div>
|4
<!--END BOT FLAG|EngineParts|41.78.16-->
|1
Spare engine parts sparsely appear in the [[Knox Country|world]] within car repair shops, and can also be obtained by dismantling a vehicle's engine. However, this requires a [[Skills|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.
|}Spare engine parts sparsely appear in the [[Knox Country|world]] within car repair shops, and can also be obtained by dismantling a vehicle's engine. However, this requires a [[Skills|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==
{{CodeBox
{{CodeBox|
{{CodeSnip
{{CodeSnip
   | lang = java
   | lang = java
Line 74: Line 72:
         MechanicsItem = TRUE,
         MechanicsItem = TRUE,
         WorldStaticModel = EngineParts,
         WorldStaticModel = EngineParts,
     }  
     }
}}
}}
}}
}}

Latest revision as of 16:40, 24 April 2024

Project ZomboidVehiclesVehicle partsSpare Engine Parts
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Spare Engine Parts
EngineParts Model.png
General
Category
Vehicle Maintenance
Encumbrance
Moodle Icon HeavyLoad.png
0.4
Function
Repair engine
Install/Uninstall
Tool(s)
Technical
Item ID
Base.EngineParts

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.

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

The loot distributions can be found in the table(s) below.

EngineParts distribution Show / Hide
Containers
Building / Room Container Rolls Chance
all toolcabinet 4 10.0
carsupply metal_shelves 4 10.0

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.78.16
item EngineParts
    {
        DisplayCategory = VehicleMaintenance,
        Weight	=	0.4,
        Type	=	Normal,
        DisplayName	=	Spare Engine Parts,
        Icon	=	EngineParts,
        MetalValue = 30,
        MechanicsItem = TRUE,
        WorldStaticModel = EngineParts,
    }

See also