赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 3095 |
最后登录 | 2020-5-5 |
在线时间 | 0 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 55
- 在线时间
- 0 小时
- 注册时间
- 2006-10-17
- 帖子
- 112
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
- for i in @states
- beishu=1 #默认为1
- if $data_states[i].guard_element_set.include?(70)
- beishu= 2
- elsif $data_states[i].guard_element_set.include?(71)
- beishu= 3
- elsif $data_states[i].guard_element_set.include?(72)
- beishu= 4
- elsif $data_states[i].guard_element_set.include?(73)
- beishu= 5
- elsif $data_states[i].guard_element_set.include?(80)
- beishu= 6
- elsif $data_states[i].guard_element_set.include?(81)
- beishu= 7
- elsif $data_states[i].guard_element_set.include?(82)
- beishu= 8
- elsif $data_states[i].guard_element_set.include?(83)
- beishu= 9
- elsif $data_states[i].guard_element_set.include?(84)
- beishu= 10
- elsif $data_states[i].guard_element_set.include?(75)
- beishu= -1
- elsif $data_states[i].guard_element_set.include?(77)
- beishu= -2
- end
- if $data_states[i].guard_element_set.include?(state_id+100)
- result -= 5*beishu #仅当本状态防御时才有效
- if result > 100 then result= 100
- elsif result < -100 then result = -100
- end
- end
复制代码
谁能明白为什么最后的state_id后要+100呢?
我自己想了半天没想明白。。。 |
|