double torist = (double)(target.gems[gemtypes.tortoise] / 100d); torist = (double)(1 - torist); torist = math.max(torist, 0.6); damage *= torist;