コード例 #1
0
        public static void Postfix(GameObject go)
        {
            TuningConfigPatch.ReadSettings();
            //Debug.Log("telepad");
            int startingLevel = TuningConfigPatch.settings.startingLevelOnPrintingPod;

            Telepad telepad = go.AddOrGet <Telepad>();

            telepad.startingSkillPoints = startingLevel;
        }
コード例 #2
0
        public static void Postfix(GameObject go)
        {
            Always3Interests.ReadSettings();
            //Debug.Log("telepad");
            int startingLevel = Always3Interests.Settings.startingLevelOnPrintingPod;

            Telepad telepad = go.AddOrGet <Telepad>();

            telepad.startingSkillPoints = startingLevel;
        }
コード例 #3
0
 private void Initialize(Telepad telepad)
 {
     InitializeContainers();
     foreach (ITelepadDeliverableContainer container in containers)
     {
         CharacterContainer characterContainer = container as CharacterContainer;
         if ((Object)characterContainer != (Object)null)
         {
             characterContainer.SetReshufflingState(false);
         }
     }
     this.telepad = telepad;
 }
コード例 #4
0
    private void Final()
    {
        SpeedControlScreen.Instance.Unpause(false);
        Telepad telepad = Object.FindObjectOfType <Telepad>();

        if ((bool)telepad)
        {
            SpawnMinions(Grid.PosToCell(telepad.gameObject));
        }
        Game.Instance.baseAlreadyCreated = true;
        Game.Instance.StartDelayedInitialSave();
        Deactivate();
    }
コード例 #5
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;
    }
コード例 #6
0
        public static void Postfix(Telepad __instance)
        {
            if (ModSettings.Instance.EnableHQOverlay)
            {
                KAnimFile anim = Assets.GetAnim("hqbase_festive_overlay_kanim");
                if (anim != null)
                {
                    GameObject go      = __instance.gameObject;
                    GameObject overlay = new GameObject(go.name + ".Decorations");
                    overlay.transform.position = new Vector3(0, 0, Grid.GetLayerZ(Grid.SceneLayer.BuildingFront));
                    overlay.SetActive(false);
                    overlay.transform.parent        = go.transform;
                    overlay.transform.localPosition = new Vector3(0.5f, 0, 0);

                    var ac = overlay.AddComponent <KBatchedAnimController>();
                    ac.isMovable  = true;
                    ac.sceneLayer = Grid.SceneLayer.BuildingFront;
                    ac.AnimFiles  = new KAnimFile[1] {
                        anim
                    };

                    overlay.SetActive(true);

                    try
                    {
                        ac.Play(FestivalManager.FestivalAnimAffix);
                    }
                    catch
                    { }
                }
                else
                {
                    Debug.Log("FestiveDecor: Could not find festive HQ overlay kanim.");
                }
            }
        }
コード例 #7
0
 public static void InitializeImmigrantScreen(Telepad telepad)
 {
     instance.Initialize(telepad);
     instance.Show(true);
 }
コード例 #8
0
 public static void Postfix(Telepad __instance)
 {
     __instance.gameObject.AddComponent <ZConfigButton>();
     __instance.gameObject.AddComponent <ZConnectionStatusDisplayer>();
 }