Project1

标题: 替补队员可获得经验,获得的经验怎么改成一半? [打印本页]

作者: 15968715431    时间: 2015-12-23 17:49
标题: 替补队员可获得经验,获得的经验怎么改成一半?
替补队员可获得经验,获得的经验怎么改成一半??
作者: cinderelmini    时间: 2015-12-23 19:54
  1. module BattleManager
  2.   #--------------------------------------------------------------------------
  3.   # ● 显示获得经验值和等级上升
  4.   #--------------------------------------------------------------------------
  5.   def self.gain_exp
  6.     $game_party.all_members.each do |actor|
  7.       rate = $game_party.battle_mambers.include?(actor) ? 1.0 : 0.5
  8.       actor.gain_exp($game_troop.exp_total * rate)
  9.     end
  10.     wait_for_message
  11.   end
  12. end
复制代码
大概可以这样吧…………





欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1