Example #1
0
    public override void ConfigureBuildingTemplate(GameObject go, Tag prefab_tag)
    {
        go.AddOrGet <LoreBearer>();
        Telepad telepad = go.AddOrGet <Telepad>();

        telepad.startingSkillPoints = 1f;
        SocialGatheringPoint socialGatheringPoint = go.AddOrGet <SocialGatheringPoint>();

        socialGatheringPoint.choreOffsets = new CellOffset[6]
        {
            new CellOffset(-1, 0),
            new CellOffset(-2, 0),
            new CellOffset(2, 0),
            new CellOffset(3, 0),
            new CellOffset(0, 0),
            new CellOffset(1, 0)
        };
        socialGatheringPoint.choreCount   = 4;
        socialGatheringPoint.basePriority = RELAXATION.PRIORITY.TIER0;
        Light2D light2D = go.AddOrGet <Light2D>();

        light2D.Color         = LIGHT2D.HEADQUARTERS_COLOR;
        light2D.Range         = 5f;
        light2D.Offset        = LIGHT2D.HEADQUARTERS_OFFSET;
        light2D.overlayColour = LIGHT2D.HEADQUARTERS_OVERLAYCOLOR;
        light2D.shape         = LightShape.Circle;
        light2D.drawOverlay   = true;
        go.GetComponent <KPrefabID>().AddTag(RoomConstraints.ConstraintTags.LightSource, false);
        go.GetComponent <KPrefabID>().AddTag(GameTags.Experimental, false);
        RoleStation roleStation = go.AddOrGet <RoleStation>();

        roleStation.overrideAnims = new KAnimFile[1]
        {
            Assets.GetAnim("anim_interacts_hqbase_skill_upgrade_kanim")
        };
        roleStation.workAnims = new HashedString[1]
        {
            "upgrade"
        };
        roleStation.workingPstComplete = HashedString.Invalid;
        roleStation.workingPstFailed   = HashedString.Invalid;
    }
 public Instance(RoleStation master)
     : base(master)
 {
 }