赞 | 156 |
VIP | 0 |
好人卡 | 0 |
积分 | 259 |
经验 | 0 |
最后登录 | 2025-5-9 |
在线时间 | 5242 小时 |
Lv5.捕梦者
- 梦石
- 0
- 星屑
- 25881
- 在线时间
- 5242 小时
- 注册时间
- 2016-3-8
- 帖子
- 1648
|
啊这...这不完全是直接抄一遍自带的防御就能做到了...
- class Game_Action
- #------------------------------------------------- -------------------------
- # ● 设置回血
- #------------------------------------------------- -------------------------
- def set_recovery
- set_skill(subject.recovery_skill_id)
- self
- end
- end
- class Game_BattlerBase
- #------------------------------------------------- -------------------------
- # ● 获取回血的技能 ID
- #------------------------------------------------- -------------------------
- def recovery_skill_id
- return 24
- end
- #------------------------------------------------- -------------------------
- # ● 判定是否能进行回血
- #------------------------------------------------- -------------------------
- def recovery_usable?
- usable?($data_skills[recovery_skill_id])
- end
- end
- class Window_ActorCommand < Window_Command
- #------------------------------------------------- -------------------------
- # ● 生成指令列表
- #------------------------------------------------- -------------------------
- alias :make_command_list_recovery :make_command_list
- def make_command_list
- make_command_list_recovery
- add_recovery_command if @actor
- end
- #------------------------------------------------- -------------------------
- # ● 添加回血指令
- #------------------------------------------------- -------------------------
- def add_recovery_command
- add_command("回血", :recovery, @actor.recovery_usable?)
- end
- end
- class Scene_Battle < Scene_Base
- #------------------------------------------------- -------------------------
- # ● 生成角色指令窗口
- #------------------------------------------------- -------------------------
- alias :create_actor_command_window_recovery :create_actor_command_window
- def create_actor_command_window
- create_actor_command_window_recovery
- @actor_command_window.set_handler(:recovery, method(:command_recovery))
- end
- #------------------------------------------------- -------------------------
- # ● 指令“回血”
- #------------------------------------------------- -------------------------
- def command_recovery
- BattleManager.actor.input.set_recovery
- next_command
- end
- end
复制代码 |
评分
-
查看全部评分
|