赞 | 0 |
VIP | 1 |
好人卡 | 11 |
积分 | 5 |
经验 | 11053 |
最后登录 | 2022-2-19 |
在线时间 | 228 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 451
- 在线时间
- 228 小时
- 注册时间
- 2015-2-23
- 帖子
- 241
|
- class Game_System ; attr_accessor :skill_data ; end
- #==============================================================================
- class Window_Skill < Window_Selectable
- #--------------------------------------------------------------------------
- def refresh
- if self.contents != nil
- self.contents.dispose
- self.contents = nil
- end
- if $game_system.skill_data and @actor.skill_learn?($game_system.skill_data[@actor.id])
- @data = [$data_skills[$game_system.skill_data[@actor.id]]]
- else
- @data = []
- end
- for i in [email protected]
- skill = $data_skills[@actor.skills[i]]
- if skill != nil
- @data.push(skill) unless @data.include?(skill)
- end
- end
- # 如果项目数不是 0 就生成位图、重新描绘全部项目
- @item_max = @data.size
- if @item_max > 0
- self.contents = Bitmap.new(width - 32, row_max * 32)
- for i in 0...@item_max
- draw_item(i)
- end
- end
- end
- end
- class Scene_Battle
- alias fy_phase3_next_actor phase3_next_actor
- def phase3_next_actor
- if @active_battler != nil and @active_battler.current_action.kind == 1
- $game_system.skill_data = Hash.new unless $game_system.skill_data
- $game_system.skill_data[@active_battler.id] = @active_battler.current_action.skill_id
- end
- fy_phase3_next_actor
- end
- end
复制代码 |
评分
-
查看全部评分
|