peril_ID

added peril_ID test (if entity.damagefunction.peril_ID exists)