Beispiel #1
0
        public static bool Prefix(Worker worker, ResetSkillsStation __instance)
        {
            __instance.assignable.Unassign();
            var resume = worker.GetComponent <MinionResume>();
            var select = __instance.GetComponent <SkillStationSelection>();

            return(false);
        }
Beispiel #2
0
    public override void ConfigureBuildingTemplate(GameObject go, Tag prefab_tag)
    {
        go.GetComponent <KPrefabID>().AddTag(RoomConstraints.ConstraintTags.IndustrialMachinery, false);
        go.AddTag(GameTags.NotRoomAssignable);
        go.AddOrGet <BuildingComplete>().isManuallyOperated = true;
        Prioritizable.AddRef(go);
        Ownable ownable = go.AddOrGet <Ownable>();

        ownable.slotID = Db.Get().AssignableSlots.ResetSkillsStation.Id;
        ResetSkillsStation resetSkillsStation = go.AddOrGet <ResetSkillsStation>();

        resetSkillsStation.workTime      = 180f;
        resetSkillsStation.overrideAnims = new KAnimFile[1]
        {
            Assets.GetAnim("anim_interacts_reSpeccer_kanim")
        };
        resetSkillsStation.workLayer = Grid.SceneLayer.BuildingFront;
    }