public override bool execute(Fusion.GameTime gameTime) { ((Submarine)Entity).damage(); ((Team)Entity.Parent).AI.NotifyMineDamage((Submarine)Entity); if (Entity.ToRemove) { ActionsQueue.deleteAllFor(Entity); } return(true); }
public override bool execute(Fusion.GameTime gameTime) { if (Entity.Cell == sub1.Cell) { ((Submarine)Entity).damage(); ((Team)Entity.Parent).AI.NotifyAccident((Submarine)Entity); ActionsQueue.Field.addNewNoise(Entity.Cell, Config.NOISE_ACCIDENT); if (Entity.ToRemove) { ActionsQueue.deleteAllFor(Entity); } } return(true); }