def getResourceWeight(res_ratio, res_type, specie):
    """
    Resource weight = (ratio resource size / total resource in region) * (need for this resource / total needs)
    """
    request = 0.2
    if res_type == -2:
        request = 0.2
    if res_type >= 0:
        request = (specie.reqs[res_type] / specie.sum_reqs)
    return res_ratio * request