# 状态能防御本属性的情况下效果减半 for i in @states if $data_states.guard_element_set.include?(element_id) result /= 2 end end