Class SericultureComponent
Should be applied to any mob that you want to be able to produce any material with an action and the cost of hunger. TODO: Probably adjust this to utilize organs?
Inheritance
System.Object
SericultureComponent
Namespace: Content.Shared.Sericulture
Assembly: Content.Shared.dll
Syntax
public sealed class SericultureComponent : Component
Fields
| Improve this Doc View SourceAction
The entity needed to actually preform sericulture. This will be granted (and removed) upon the entity's creation.
Declaration
public EntProtoId Action
Field Value
Type | Description |
---|---|
Robust.Shared.Prototypes.EntProtoId |
ActionEntity
Declaration
public EntityUid? ActionEntity
Field Value
Type | Description |
---|---|
System.Nullable<EntityUid> |
EntityProduced
What will be produced at the end of the action.
Declaration
public EntProtoId EntityProduced
Field Value
Type | Description |
---|---|
Robust.Shared.Prototypes.EntProtoId |
HungerCost
This will subtract (not add, don't get this mixed up) from the current hunger of the mob doing sericulture.
Declaration
public float HungerCost
Field Value
Type | Description |
---|---|
System.Single |
MinHungerThreshold
The lowest hunger threshold that this mob can be in before it's allowed to spin silk.
Declaration
public HungerThreshold MinHungerThreshold
Field Value
Type | Description |
---|---|
HungerThreshold |
PopupText
The text that pops up whenever sericulture fails for not having enough hunger.
Declaration
public string PopupText
Field Value
Type | Description |
---|---|
System.String |
ProductionLength
How long will it take to make.
Declaration
public float ProductionLength
Field Value
Type | Description |
---|---|
System.Single |