飞飞世界论坛
标题:
[补]修改倍率
[打印本页]
作者:
admin
时间:
2016-1-10 03:09
标题:
[补]修改倍率
首先打开Constant.inc并且修改所有倍率为1.0
0 ?( e0 x) l7 H9 ? |- d/ c
Code:
r7 [2 y5 T) H# A) X2 u3 [
itemDropRate = 1.0
. Q3 }: H- \7 V9 @0 S) t2 i
goldDropRate = 1.0
/ ?. V( t) }7 H
monsterExpRate = 1.0
, t5 Z0 \' @; \: a" _, x& j5 g
monsterHitRate = 1.0
! S) j& D' o9 Z& [! y4 f/ \
现在去LuaFunc 文件夹 打开EventFunc.lua搜索 local fExpFactor =
) ^+ ? l( X" Z5 O$ {
你可以在这更改倍率。
$ R5 Q* b4 |2 D5 f6 S
Code:
! d- @8 @. E3 p5 Z% {+ L% H5 s
function GetExpFactor()
% \: @0 R# y' }7 D/ J$ C
local tList = GetEventList()
+ O( B1 a% I3 W
local fExpFactor = 60
; {! t' x% h( n- l; u9 `
for i in pairs(tList) do
5 K) X6 d; S* z' L; ~7 X1 ~) [. g
if( tEvent[tList].fExpFactor ~= nil ) then
" c: T8 n4 q$ F2 n0 U% I
fExpFactor = fExpFactor * tEvent[tList].fExpFactor
+ @3 x, s: m t* p
end
% J1 ]/ P2 f, ^- N
end
, ^0 t8 D% F4 ^) M+ M, a
& s1 I8 ]' C: ~& v! a
return fExpFactor
! i0 q( @1 g- F
end
4 \0 r& e+ E$ S4 j0 Z
物品掉率 "local fItemDropRate ="
! w9 m# v8 V9 M* A
卡片掉率 "local fPieceItemDropRate ="
, m) [( U; A$ C+ R. J% N
飞飞币掉率 "local fGoldDropFactor ="
- V% f/ D% a0 T! _" \
当然也可以把这里都设为1.0,然后通过活动来控制,更加灵活。
- t0 `# A# h4 J" W; c3 U
# ]! h* r. A" A j) H- _% D
' ]' n6 A. R* w% M9 l2 w
欢迎光临 飞飞世界论坛 (http://ffwold.com/)
Powered by Discuz! X3.2