added new variable changeDurability to fix division by 0 exception