Beard

This component gives your creature a magnificant beard. Insulation and sanity from shaving oneself is hard-coded.

Component Beard Fields

TypeNameDescription
tablecallbacksinsert the days at which the beard changes state, including a function. No args.
stringprizeThe prefab that drops when shaved
numberbitsThe amount of prizes that drops when shaved.
functioncanshavetesta way to limit shaving, return both a boolean and a 'reason'. no args.
functiononresetFires when shaving or resurrecting. no args.

Component Beard Methods

NameParameterReturnsDescription
ResetnilnilSets the beard to day 0.

Example