Random book story generator refactor (#28082)
* Randomized book overhaul * Fix prototype names * Improved setting paper content * Praise Ratvar
This commit is contained in:
@@ -1,14 +1,17 @@
|
||||
using Content.Shared.StoryGen;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Server.Paper;
|
||||
|
||||
/// <summary>
|
||||
/// Adds randomly generated stories to Paper component
|
||||
/// Adds a randomly generated story to the content of a <see cref="PaperComponent"/>
|
||||
/// </summary>
|
||||
[RegisterComponent, Access(typeof(PaperRandomStorySystem))]
|
||||
public sealed partial class PaperRandomStoryComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The <see cref="StoryTemplatePrototype"/> ID to use for story generation.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public List<string>? StorySegments;
|
||||
|
||||
[DataField]
|
||||
public string StorySeparator = " ";
|
||||
public ProtoId<StoryTemplatePrototype> Template;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user