def get_wind_power(agent):
    """ Check if the wind generator is active. If it is, get the power out of it, otherwise return 0"""
    wind_power = 0

    if agent.wind_generator.is_active():
        wind_power = agent.wind_generator.erogate()
    return wind_power