Exemplo n.º 1
0
        public void agent_Standard()
        {
            overmind.map.overmind.availableEnthrallments -= 1;
            World.log("Spawning tester dark at turn " + overmind.map.turn);
            Location spawn = null;

            foreach (Unit u in overmind.map.units)
            {
                if (u is Unit_TesterDark)
                {
                    spawn = u.location.getNeighbours()[0];
                }
            }
            if (spawn == null)
            {
                spawn = overmind.map.locations[Eleven.random.Next(overmind.map.locations.Count)];
            }

            Unit agent = new Unit_TesterDark(spawn, overmind.map.soc_dark);

            agent.person       = new Person(overmind.map.soc_dark);
            agent.person.state = Person.personState.enthralledAgent;
            agent.person.unit  = agent;
            overmind.map.units.Add(agent);

            Evidence ev = new Evidence(overmind.map.turn);

            ev.pointsTo = agent;
            ev.weight   = 0.66;
            agent.location.evidence.Add(ev);

            agent.task = null;

            GraphicalMap.panTo(spawn.hex.x, spawn.hex.y);
        }
Exemplo n.º 2
0
        public void agent_Flesh()
        {
            int      c     = 0;
            Location spawn = null;

            foreach (Location loc in map.locations)
            {
                if (loc.soc is SG_UnholyFlesh)
                {
                    c += 1;
                    if (Eleven.random.Next(c) == 0)
                    {
                        spawn = loc;
                    }
                }
            }
            if (spawn != null)
            {
                overmind.map.overmind.availableEnthrallments -= 1;
                World.log("Spawning tester dark at turn " + overmind.map.turn);

                Unit agent = new Unit_TesterDark(spawn, overmind.map.soc_dark);

                agent.person       = new Person(overmind.map.soc_dark);
                agent.person.state = Person.personState.enthralledAgent;
                agent.person.unit  = agent;
                overmind.map.units.Add(agent);

                Evidence ev = new Evidence(overmind.map.turn);
                ev.pointsTo = agent;
                ev.weight   = 0.66;
                agent.location.evidence.Add(ev);

                agent.task = null;

                GraphicalMap.panTo(spawn.hex.x, spawn.hex.y);
            }
        }