The && means smoke_chance will only be set to 0 or 1, I don't think that's what you intend.