// Function from file: camera.dm
        public bool IsScientist(dynamic H = null)
        {
            Species_Abductor S = null;

            S = H.dna.species;
            return(S.scientist);
        }
예제 #2
0
        // Function from file: abduction_gear.dm
        public bool ScientistCheck(dynamic user = null)
        {
            dynamic          H = null;
            Species_Abductor S = null;

            H = user;
            S = H.dna.species;
            return(S.scientist);
        }
예제 #3
0
        // Function from file: console.dm
        public bool IsScientist(dynamic H = null)
        {
            Species_Abductor S = null;


            if (H.dna.species.id == "abductor")
            {
                S = H.dna.species;
                return(S.scientist);
            }
            return(false);
        }
예제 #4
0
        // Function from file: abduction.dm
        public override bool post_setup(bool?report = null)
        {
            ByTable agent_landmarks        = null;
            ByTable scientist_landmarks    = null;
            Obj_Effect_Landmark_Abductor A = null;
            Mind             agent         = null;
            Ent_Static       L             = null;
            Mind             scientist     = null;
            dynamic          team_name     = null;
            dynamic          H             = null;
            Species_Abductor S             = null;
            int?team_number = null;

            agent_landmarks         = new ByTable();
            scientist_landmarks     = new ByTable();
            agent_landmarks.len     = this.max_teams;
            scientist_landmarks.len = this.max_teams;

            foreach (dynamic _a in Lang13.Enumerate(GlobalVars.landmarks_list, typeof(Obj_Effect_Landmark_Abductor)))
            {
                A = _a;


                if (A is Obj_Effect_Landmark_Abductor_Agent)
                {
                    agent_landmarks[String13.ParseNumber(A.team)] = A;
                }
                else if (A is Obj_Effect_Landmark_Abductor_Scientist)
                {
                    scientist_landmarks[String13.ParseNumber(A.team)] = A;
                }
            }
            agent       = null;
            L           = null;
            scientist   = null;
            team_name   = null;
            H           = null;
            S           = null;
            team_number = null;
            team_number = 1;

            while ((team_number ?? 0) <= (this.abductor_teams ?? 0))
            {
                team_name = this.team_names[team_number];
                agent     = this.agents[team_number];
                H         = agent.current;
                L         = agent_landmarks[team_number];
                H.loc     = L.loc;
                ((Mob)H).set_species(typeof(Species_Abductor));
                S           = H.dna.species;
                S.agent     = true;
                S.team      = team_number;
                H.real_name = team_name + " Agent";
                this.equip_common(H, team_number);
                this.equip_agent(H, team_number);
                this.greet_agent(agent, team_number);
                scientist = this.scientists[team_number];
                H         = scientist.current;
                L         = scientist_landmarks[team_number];
                H.loc     = L.loc;
                ((Mob)H).set_species(typeof(Species_Abductor));
                S           = H.dna.species;
                S.scientist = true;
                S.team      = team_number;
                H.real_name = team_name + " Scientist";
                this.equip_common(H, team_number);
                this.equip_scientist(H, team_number);
                this.greet_scientist(scientist, team_number);
                team_number++;
            }
            return(base.post_setup(report));
        }