赞 | 88 |
VIP | 350 |
好人卡 | 311 |
积分 | 100 |
经验 | 150139 |
最后登录 | 2024-6-24 |
在线时间 | 5019 小时 |
Lv4.逐梦者 (版主) 无限の剣制
- 梦石
- 0
- 星屑
- 10014
- 在线时间
- 5019 小时
- 注册时间
- 2013-2-28
- 帖子
- 5030
 
|
- class Game_Battler < Game_BattlerBase
- #--------------------------------------------------------------------------
- # ● 计算伤害
- #--------------------------------------------------------------------------
- def make_damage_value(user, item)
- value = item.damage.eval(user, self, $game_variables)
- 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)
- @result.make_damage(value.to_i, item)
- if item.is_a?(RPG::Skill) && item.id == 2 #3号技能
- if self.hp - value <= 0
- $game_party.gain_item($data_items[3], 3) #获得3号物品 3个
- end
- end
- end
- end
复制代码 随手在VA原始脚本里直接添加修改的未测试 |
|