예제 #1
0
    override public void SetBasement(SurfaceBlock b, PixelPosByte pos)
    {
        if (hireCost == -1)
        {
            ResetToDefaults_Static_RecruitingCenter();
        }
        bool movement = false;

        if (basement != null)
        {
            movement = true;
        }
        if (b == null)
        {
            return;
        }
        SetBuildingData(b, pos);
        if (!subscribedToUpdate)
        {
            GameMaster.realMaster.labourUpdateEvent += LabourUpdate;
            subscribedToUpdate = true;
        }
        colonyController = GameMaster.colonyController;
        if (!movement) // здание не создавалось, а было перенесено
        {
            Crew.AddCrewSlots(CREW_SLOTS_FOR_BUILDING);
            progress = 0;
        }
    }