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); } }
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); } } }
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); } }