예제 #1
0
파일: Turret.cs 프로젝트: OlegGelezcov/neb
 public override void Update(float deltaTime)
 {
     if (mDamagable.god)
     {
         log.InfoFormat("turret at world = {0} was GOD, we change it to NOT GOD ID = {1} [red]", nebulaObject.mmoWorld().Zone.Id, nebulaObject.Id);
         mDamagable.SetGod(false);
     }
 }
예제 #2
0
        private void CheckGodState()
        {
            var world = nebulaObject.world as MmoWorld;

            if (world.FindObjectsOfType <Outpost>().Count > 0)
            {
                if (!mDamagable.god)
                {
                    //log.Info("Set MainOutpost GOD to true");
                    mDamagable.SetGod(true);
                }
            }
            else
            {
                if (mDamagable.god)
                {
                    //log.Info("Set MainOutpost GOD to false");
                    mDamagable.SetGod(false);
                }
            }
        }
예제 #3
0
        public override void Update(float deltaTime)
        {
            if (mConstructionTimer > 0)
            {
                mConstructionTimer -= deltaTime;
                if (mConstructionTimer <= 0f)
                {
                    mDamagable.ForceSetHealth(mDamagable.maximumHealth);
                    SetUnderConstruction(false);
                }
                nebulaObject.properties.SetProperty((byte)PS.ConstructionTimer, constructProgress);
            }

            if (mDamagable.god)
            {
                log.InfoFormat("outpost at world = {0} was GOD, we change it to NOT GOD [red]", nebulaObject.mmoWorld().Zone.Id);
                mDamagable.SetGod(false);
            }
        }