Project1
标题:
替补队员可获得经验,获得的经验怎么改成一半?
[打印本页]
作者:
15968715431
时间:
2015-12-23 17:49
标题:
替补队员可获得经验,获得的经验怎么改成一半?
替补队员可获得经验,获得的经验怎么改成一半??
作者:
cinderelmini
时间:
2015-12-23 19:54
module BattleManager
#--------------------------------------------------------------------------
# ● 显示获得经验值和等级上升
#--------------------------------------------------------------------------
def self.gain_exp
$game_party.all_members.each do |actor|
rate = $game_party.battle_mambers.include?(actor) ? 1.0 : 0.5
actor.gain_exp($game_troop.exp_total * rate)
end
wait_for_message
end
end
复制代码
大概可以这样吧…………
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1