private void TryHarvest(MovingEntity entity, Entity target, int distanceOfHarvest) { if (target.Tile.Coordinates.Distance(entity.Tile.Coordinates) == distanceOfHarvest) { entity.Harvest(target); entity.remainingTurnsBeforeDie = entity.movingEntitySO.nbTurnsToDie; entity.isHungry = false; /*/if (entity.reserve == entity.population) { * entity.isHungry = false; * }*/ if (entity.movingEntitySO.reproduceAtEachHarvest) { entity.IncreasePopulation(); } entity.isHungry = false; } DecreasePop(entity); }