"statetype = a" returns 1 if the statetype is indeed a. Otherwise, it returns 0.
This means that "50 * (statetype = a)" equals 0 if you're not in the air, or 50 if you are.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.