Skip to main content

Sweatervest

Based on game build 714014 | Last updated: 2026-03-07

Overview

The sweatervest is a wearable prefab that grants moderate insulation and dapperness to the wearer. When equipped, it consumes fuel over time (via the fueled component) and provides a visual armor overlay. The vest depletes its fuel reserve, and once exhausted, the entity automatically removes itself from the game world. It uses the equippable, fueled, and insulator components to manage its behavior.

Usage example

-- The vest is instantiated as a prefab, not a component directly added in mod code.
-- Typical usage occurs via world generation or crafting:
local vest = Prefab("sweatervest")
-- Internally, the prefab registers:
-- equippable.equipslot = EQUIPSLOTS.BODY
-- insulator.insulation = TUNING.INSULATION_SMALL
-- fueled.fueltype = FUELTYPE.USAGE
-- fueled.maxfuel = TUNING.SWEATERVEST_PERISHTIME

Dependencies & tags

Components used: equippable, fueled, insulator, inspectable, inventoryitem, tradable, transform, animstate, network, physics, floatable, hauntable Tags: None explicitly added or removed.

Properties

PropertyTypeDefault ValueDescription
equipslotEQUIPSLOTEQUIPSLOTS.BODYThe body slot the item occupies when equipped.
dappernessnumberTUNING.DAPPERNESS_MEDDapperness bonus granted to the wearer while equipped.
fueltypeFUELTYPEFUELTYPE.USAGEType of fuel consumed during active wear.
insulationnumberTUNING.INSULATION_SMALLInsulation level provided to the wearer.
maxfuelnumberTUNING.SWEATERVEST_PERISHTIMETotal fuel capacity before depletion.

Main functions

No custom methods beyond component callbacks are defined. Behavior is driven via component hooks.

Events & listeners

  • Listens to: None directly.
  • Pushes: None directly (event handling is delegated to fueled component, which pushes onfueldsectionchanged internally; depletion triggers inst.Remove).