飞飞世界论坛
标题:
[补]修改倍率
[打印本页]
作者:
admin
时间:
2016-1-10 03:09
标题:
[补]修改倍率
首先打开Constant.inc并且修改所有倍率为1.0
$ N( J% F( R1 s7 W" ]0 {
Code:
3 J! ?" N( m. H- z3 t) c. Q# Y2 A* m" u
itemDropRate = 1.0
4 o! V+ E# F4 T- x# a
goldDropRate = 1.0
& M) ^3 c' C7 S
monsterExpRate = 1.0
8 Q! c9 o+ E' @
monsterHitRate = 1.0
3 j4 b* ]8 }7 i: Z
现在去LuaFunc 文件夹 打开EventFunc.lua搜索 local fExpFactor =
: A) }7 n+ a9 F
你可以在这更改倍率。
; P q% c& r6 t7 e3 Y: A( R5 M
Code:
: l" e& o" ^2 s( j1 d9 g6 Q7 b
function GetExpFactor()
. V- u* r1 x( P8 f! |; o* t+ r5 a
local tList = GetEventList()
2 [6 N' a+ Z; `9 s; I$ ~; J
local fExpFactor = 60
% D; }# |8 t. g C, c
for i in pairs(tList) do
7 m: y- B" C/ |9 G% E; C
if( tEvent[tList].fExpFactor ~= nil ) then
7 D' P5 k9 j5 R! C
fExpFactor = fExpFactor * tEvent[tList].fExpFactor
1 A# I7 Y/ d2 \7 s- ^1 p
end
: E) |7 O, G8 G/ }% i8 I
end
8 A) |( R! n3 d& i& O& Q7 _
" P* ]% u6 X: K: N& V
return fExpFactor
% y6 U( p a( F0 r
end
+ o3 ~1 D) ~: O" Z4 N$ ]
物品掉率 "local fItemDropRate ="
1 R( D( h- ~) O' U& M) ^ `
卡片掉率 "local fPieceItemDropRate ="
) V, u% i& L. y+ ]/ m* w! c/ Q8 L* C
飞飞币掉率 "local fGoldDropFactor ="
5 ~# K, N' K& z, a
当然也可以把这里都设为1.0,然后通过活动来控制,更加灵活。
& s9 L a6 B8 b0 ?( E
2 w4 y' w. t' N2 I: i6 p
1 C2 k5 u% B: T$ o# i
欢迎光临 飞飞世界论坛 (http://ffwold.com/)
Powered by Discuz! X3.2