赞 | 1 |
VIP | 0 |
好人卡 | 0 |
积分 | 8 |
经验 | 0 |
最后登录 | 2024-1-28 |
在线时间 | 49 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 769
- 在线时间
- 49 小时
- 注册时间
- 2020-8-28
- 帖子
- 23
|
本帖最后由 这是一个昵称9 于 2021-10-25 23:54 编辑
如果是默认战斗还是挺好改的
在Scene_Battle里修改
def process_action
return if scene_changing?
if !@subject || [email protected]_action
@subject = BattleManager.next_subject
end
return turn_end unless @subject
if @subject.current_action
@subject.current_action.prepare
if @subject.current_action.valid?
@status_window.open
execute_action
elsif [email protected]?#加的
@subject.make_current_action
if @subject.current_action.valid?
@status_window.open
execute_action
end#以上是加的
end
@subject.remove_current_action
end
process_action_end unless @subject.current_action
end
#在Game_Enemy里加下面这段
def make_current_action
action_list = enemy.actions.select {|a| action_valid?(a) }
return if action_list.empty?
rating_max = action_list.collect {|a| a.rating }.max
rating_zero = rating_max - 3
action_list.reject! {|a| a.rating <= rating_zero }
@actions[0].set_enemy_action(select_enemy_action(action_list, rating_zero))
end
|
评分
-
查看全部评分
|