在新窗口中打开脚本页
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
| $VIPArcherScript ||= {};$VIPArcherScript[:exdrop_rate] = __FILE__ class Game_Enemy < Game_Battler def drop_item_rate return $game_party.party_drop_rate end end class Game_Troop < Game_Unit def gold_rate return $game_party.gold_drop_rate end end class Game_Party < Game_Unit def party_drop_rate drop_rate = 100 battle_members.each {|actor| actor.feature_objects.each {|obj| drop_rate += $1.to_f if obj.note =~ /<物品掉率:\s*([0-9+.-]+)%>/}} return drop_rate / 100 end def gold_drop_rate gold_rate = 100 battle_members.each {|actor| actor.feature_objects.each {|obj| gold_rate += $1.to_f if obj.note =~ /<金钱掉率:\s*([0-9+.-]+)%>/}} return gold_rate / 100 end end
|