Table of Contents

Example ancients

Gold Guy

An ancient event for the Hive that offers the player a choice of three gold-themed relics (Old Coin, Golden Pearl, Golden Compass). Demonstrates how to define an ancient event and configure its relic reward options.

using MegaCrit.Sts2.Core.Events;
using MegaCrit.Sts2.Core.Models.Relics;
using ModSmith.Models;

class GoldGuy : ModSmithAncientEventModel
{
  public override IReadOnlyList<EventOption> AllPossibleOptions => [
    RelicOption<OldCoin>(),
    RelicOption<GoldenPearl>(),
    RelicOption<GoldenCompass>(),
  ];

  protected override IReadOnlyList<EventOption> GenerateInitialOptions()
  {
    return AllPossibleOptions;
  }
}