赞 | 58 |
VIP | 37 |
好人卡 | 59 |
积分 | 12 |
经验 | 66255 |
最后登录 | 2023-5-29 |
在线时间 | 1017 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 1232
- 在线时间
- 1017 小时
- 注册时间
- 2011-4-30
- 帖子
- 1516
|
Scene_Battle 2替换成这个- #==============================================================================
- # ■ Scene_Battle
- #==============================================================================
- class Scene_Battle
- #--------------------------------------------------------------------------
- # ● 开始 CP 回合
- #--------------------------------------------------------------------------
- def start_phase2
- @phase = 2
- @actor_index = -1
- @active_battler = nil
- @actor_command_window.active = false
- @actor_command_window.visible = false
- $game_temp.battle_main_phase = false
- set_now_battlers
- set_now_maxspeed
- @input_action_battlers = []
- end
- #--------------------------------------------------------------------------
- # ● 刷新画面 增加 CP
- #--------------------------------------------------------------------------
- def update_phase2
- add_battlers_cp
- @cp_window.refresh(@now_maxspeed)
- set_input_action_battlers
- if @input_action_battlers.size > 0
- start_phase3
- $game_system.se_play($data_system.decision_se)
- return
- end
- end
- #--------------------------------------------------------------------------
- # ● 数据处理 增加 CP
- #--------------------------------------------------------------------------
- def add_battlers_cp
- for battler in @now_battlers
- next if battler.nil?
- next if battler.dead?
- next if battler.hidden
- next if battler.cp >= @now_maxspeed
- battler.cp += battler.agi
- end
- end
- #--------------------------------------------------------------------------
- # ● 设置输入命令的战斗者
- #--------------------------------------------------------------------------
- def set_input_action_battlers
- for battler in @now_battlers
- if battler.cp >= @now_maxspeed
- @input_action_battlers.push(battler)
- end
- end
- if @input_action_battlers.size > 0
- for battler in @input_action_battlers
- battler.make_action_speed
- end
- if @input_action_battlers.size > 1
- @input_action_battlers.sort! {|a,b|
- b.current_action.speed - a.current_action.speed }
- end
- end
- end
- end
复制代码 |
评分
-
查看全部评分
|