Warly
Based on game build 714014 | Last updated: 2026-03-07
Overview
This file defines the warly player character prefab. It extends player_common.lua to configure Warly's base stats, preferred food types, and food memory mechanics. Warly is a professional chef who gains benefits from eating well-prepared food, has elevated food memory tolerance, and starts with a custom inventory tailored to his cooking profession.
Usage example
-- This file is not instantiated directly; it returns a prefab definition.
-- To use Warly as a character, reference it in the characters list via:
-- TheNet:GetServerGameMode() == "survival" and "warly" or similar logic.
local warly = require("prefabs/warly")
-- The returned value is passed to the character registration system.
Dependencies & tags
Components used:
health(viaSetMaxHealth)sanity(viaSetMax)hunger(viaSetMax,SetRate)eater(viaSetPrefersEatingTag)foodmemory(viaSetDuration,SetMultipliers, added conditionally inmaster_postinit)
Tags added:
masterchefprofessionalchefexpertchef
Properties
No public properties. This file only defines a prefab factory function and post-initialization callbacks.
Main functions
Not applicable. This is not a component class but a prefab definition.
Events & listeners
Not applicable. This file does not register or push events directly.