mirror of
https://github.com/FalloutCollaborationProject/FCP-Tools.git
synced 2026-07-27 16:59:37 -07:00
Introduce terminal/holotape features, hacking jobs and UI plus extensive radiant quest content and faction/trader support. Adds many new C# systems (holotape storage/comp, terminal hacking, job drivers, quest nodes/parts, gensteps, settlement spawn control, pocket map components) and XML defs (quest scripts for CaravanRescue/ScavengerSupplyRun, mapgen prefab, faction/trader defs for currency exchange, site and research defs). Updates: JobDefs to include holotape/hack jobs, PawnKind apparel season handling and faction requirement metadata, ThingDefs and map/site defs, language word lists, map icons and textures, and various patches (workgiver, mapgen, currency). Removes obsolete VNPE compatibility patch, legacy pawn-rescue-animal script and a few unused defs/assets.
25 lines
596 B
C#
25 lines
596 B
C#
using RimWorld;
|
|
using RimWorld.Planet;
|
|
using Verse;
|
|
|
|
namespace FCP.Factions;
|
|
|
|
public class GenStep_DynamicPrefab : GenStep
|
|
{
|
|
public override int SeedPart => 987654321;
|
|
|
|
public override void Generate(Map map, GenStepParams parms)
|
|
{
|
|
Settlement settlement = map.Parent as Settlement;
|
|
if (settlement == null)
|
|
return;
|
|
|
|
GameComponent_SettlementMapGenerators comp = Current.Game?.GetComponent<GameComponent_SettlementMapGenerators>();
|
|
PrefabDef prefab = comp?.GetPrefab(settlement);
|
|
if (prefab == null)
|
|
return;
|
|
|
|
PrefabUtility.SpawnPrefab(prefab, map, map.Center, Rot4.Random);
|
|
}
|
|
}
|