飞飞世界论坛
标题:
[补]修改倍率
[打印本页]
作者:
admin
时间:
2016-1-10 03:09
标题:
[补]修改倍率
首先打开Constant.inc并且修改所有倍率为1.0
+ q! d! B$ f- `3 @3 }, J# Y
Code:
1 d. L5 }* t, T3 W
itemDropRate = 1.0
1 ^$ F. ?4 k( }5 y& X- P" O0 L
goldDropRate = 1.0
4 g; B2 G \0 h) `0 l5 S; d
monsterExpRate = 1.0
% b% v, v: ^: c* `% Y" Y( m, y
monsterHitRate = 1.0
; `. Q0 n; p; \3 n
现在去LuaFunc 文件夹 打开EventFunc.lua搜索 local fExpFactor =
% Y% [ n; ~* x6 i9 f
你可以在这更改倍率。
6 G+ {/ `% I8 ?- c5 F( B; m' d) t
Code:
3 |( }: x! G( d* l
function GetExpFactor()
5 ~/ b* l2 Q! O1 d0 `
local tList = GetEventList()
8 j7 ~: Y8 w2 i' z/ w
local fExpFactor = 60
0 K Z1 C/ J9 ?8 l9 {
for i in pairs(tList) do
4 ^1 u3 l& I% _- n1 G
if( tEvent[tList].fExpFactor ~= nil ) then
$ g. r8 h9 e& B7 G y, e
fExpFactor = fExpFactor * tEvent[tList].fExpFactor
: u t3 T4 K G5 C A2 I. K
end
}9 V# ^" [; h! w9 S
end
/ A) m, e+ `' q. x8 I3 c: S
8 ]1 E8 f+ P, Q/ D
return fExpFactor
[9 u; @( T3 o+ M
end
+ X: I0 _ l6 a9 T6 `
物品掉率 "local fItemDropRate ="
5 x" U( @# N0 }5 ?1 F) _- b
卡片掉率 "local fPieceItemDropRate ="
3 v0 l K# ?0 I9 ^
飞飞币掉率 "local fGoldDropFactor ="
8 Z A) A! O0 X, c' s
当然也可以把这里都设为1.0,然后通过活动来控制,更加灵活。
; a+ _8 b) p, Q( Y% D
, V; L0 o5 V6 u/ i5 m- o
: H: u' Y& D: Y+ Z3 v, s X# [: o7 A, }
欢迎光临 飞飞世界论坛 (http://ffwold.com/)
Powered by Discuz! X3.2