Esempio n. 1
0
        public Set_Fishman_Lair(Location loc) : base(loc)
        {
            this.isHuman = false;
            name         = "Deep One Lair";

            militaryCapAdd += 25;

            if (loc.soc is SG_Fishmen)
            {
                Unit_Fishman army = new Unit_Fishman(location, (SG_Fishmen)location.soc);
                location.map.units.Add(army);
                army.maxHp        = (int)this.getMilitaryCap();
                this.attachedUnit = army;
            }
        }
Esempio n. 2
0
        public override void checkUnitSpawning()
        {
            spawnCounter += 1;
            if (spawnCounter > 5)
            {
                spawnCounter = 0;

                if (this.attachedUnit != null)
                {
                    throw new Exception();
                }

                if (location.soc is SG_Fishmen)
                {
                    Unit_Fishman army = new Unit_Fishman(location, (SG_Fishmen)location.soc);
                    location.map.units.Add(army);
                    army.maxHp        = (int)this.getMilitaryCap();
                    this.attachedUnit = army;
                }
            }
        }