Esempio n. 1
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);
            }
        }
Esempio n. 2
0
        public override void Update(float deltaTime)
        {
            base.Update(deltaTime);

            mUpdateImmunityTimer -= deltaTime;
            if (mUpdateImmunityTimer <= 0f)
            {
                mUpdateImmunityTimer = mUpdateImmunityInterval;
                CheckGodState();
            }



            if (mConstructionTimer > 0)
            {
                mConstructionTimer -= deltaTime;
                if (mConstructionTimer <= 0f)
                {
                    mDamagable.ForceSetHealth(mDamagable.maximumHealth);
                    SetUnderConstruction(false);
                }
                nebulaObject.properties.SetProperty((byte)PS.ConstructionTimer, constructProgress);
            }
        }