Skip to main content

Pillow Defs

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

Overview

pillow_defs is a static data definition file that specifies gameplay-relevant properties for different pillow types in the game. Each pillow variant (e.g., petals, kelp, beefalowool, steelwool) defines numerical parameters that influence combat effectiveness (via strengthmult and defense_amount) and resource extraction yields (hand_prize_value, body_prize_value) during interactions like harvesting or crafting. This file does not implement logic itself but serves as a lookup table consumed by other prefabs or systems (e.g., pillow prefabs, harvesting components, or UI) to configure behavior.

Usage example

local pillow_defs = require "pillow_defs"
local pillow = pillow_defs.kelp

print(pillow.strengthmult) -- 1.4
print(pillow.defense_amount) -- 0.3
print(pillow.hand_prize_value) -- 0.5

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
petals.strengthmultnumber1.0Multiplier applied to damage dealt when using the petal pillow as a weapon.
petals.laglengthnumber0.75Duration (in seconds) of the attack lag after using the petal pillow.
petals.defense_amountnumber0.1Fraction of damage reduction when equipped (likely as a wearable).
petals.hand_prize_valuenumber0.25Resource yield multiplier when harvesting the pillow by hand.
petals.body_prize_valuenumber0.25Resource yield multiplier when harvesting the pillow via its body (e.g., post-destruction).
kelp.strengthmult, kelp.laglength, kelp.defense_amount, kelp.hand_prize_value, kelp.body_prize_valuenumberSee petals equivalents scaled upSame as petals but for the kelp pillow, with higher values.
beefalowool.strengthmult, beefalowool.laglength, beefalowool.defense_amount, beefalowool.hand_prize_value, beefalowool.body_prize_valuenumberSee petals equivalents scaled up furtherSame structure, higher values, for beefalo wool pillow.
steelwool.strengthmult, steelwool.laglength, steelwool.defense_amount, steelwool.hand_prize_value, steelwool.body_prize_valuenumberSee petals equivalents scaled up furtherSame structure, highest values, for steel wool pillow.

Main functions

None.

Events & listeners

None.