| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 11 |
| 经验 | |
| 最后登录 | 2025-3-23 |
| 在线时间 | 141 小时 |
- 梦石
- 0
- 星屑
- 1088
- 在线时间
- 141 小时
- 注册时间
- 2019-5-12
- 回帖
- 49
|
悬赏60星屑已解决
本帖最后由 真の玛娜君 于 2019-9-30 19:32 编辑
五行脚本中的,敌人暴击就会崩溃,能帮忙更改一下吗?
[pre lang="ruby"]class RPG::EquipItem;def cridef;
@note=~ /\<crd (\d+)\>/ ? $1.to_i/100.0 : 1;end;end
class Game_Actor;def apply_critical(value)
equips.inject(super){|v,e|v*e.cridef}
end;end#装备备注<crd 90>受到的暴击伤害变为原来的0.9倍,乘法叠加[/pre]
编辑:似乎是我搞错了,暴击率和暴击闪避的关系不是我想的那样。。。
# item.damage.critical ? user.cri * (1 - cev) : 0 |
最佳答案
查看完整内容
[pre lang="ruby"]class RPG::EquipItem;def cridef;
@note=~ /\/ ? $1.to_i/100.0 : 1;end;end
class Game_Actor;def apply_critical(value)
equips.inject(super){|v,e|e ? v*e.cridef : v}
end;end#装备备注受到的暴击伤害变为原来的0.9倍,乘法叠加
[/pre]
|