赞 | 3 |
VIP | 0 |
好人卡 | 24 |
积分 | 0 |
经验 | 15951 |
最后登录 | 2016-1-17 |
在线时间 | 276 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 49
- 在线时间
- 276 小时
- 注册时间
- 2011-6-5
- 帖子
- 133
|
本帖最后由 救世小树 于 2013-5-8 22:11 编辑
Game_Battler 脚本第350行左右有一个方法叫 make_damage_value- def make_damage_value(user, item)
- value = item.damage.eval(user, self, $game_variables)
- value *= 2 if self.hp_rate<=0.5 && user.is_a?(Game_Actor) && user.skill_learn?($data_skills[44]) #添加这一行,44号技能就是你想要的被动技能了
- value *= item_element_rate(user, item)
- value *= pdr if item.physical?
- value *= mdr if item.magical?
- value *= rec if item.damage.recover?
- value = apply_critical(value) if @result.critical
- value = apply_variance(value, item.damage.variance)
- value = apply_guard(value)
- value += 1
- @result.make_damage(value.to_i, item)
- end
复制代码 去测试吧 |
评分
-
查看全部评分
|