飞飞世界论坛
标题:
[补]修改倍率
[打印本页]
作者:
admin
时间:
2016-1-10 03:09
标题:
[补]修改倍率
首先打开Constant.inc并且修改所有倍率为1.0
0 X- }3 r! z/ h9 c( M! J5 i9 D
Code:
6 X3 J( }" [$ G5 L# P* o
itemDropRate = 1.0
1 }1 s. E& B: a* {; e
goldDropRate = 1.0
$ p& j& d. ^4 S7 S+ f0 S4 ]
monsterExpRate = 1.0
4 x8 A4 _2 h1 Z% i3 X% D/ B5 U
monsterHitRate = 1.0
- q" t7 `* p- W n
现在去LuaFunc 文件夹 打开EventFunc.lua搜索 local fExpFactor =
' W% Z$ h5 A! d2 e0 \3 H
你可以在这更改倍率。
% g/ P6 y- R9 c5 \7 m
Code:
% ?6 X2 T3 M" u5 K4 a
function GetExpFactor()
2 T4 r+ ~: `; `( [ D. T: X, A
local tList = GetEventList()
: @ I9 |# t; J, C
local fExpFactor = 60
1 u, i1 q+ a3 y( i9 a3 W. H
for i in pairs(tList) do
& [* u& ^ A3 p6 a
if( tEvent[tList].fExpFactor ~= nil ) then
, \7 ]; Q7 p: U8 N8 E5 U/ k% R
fExpFactor = fExpFactor * tEvent[tList].fExpFactor
1 w( P$ V1 ?# _2 L5 q: V9 W% t
end
r$ f* l1 I& `
end
9 i4 J1 }* s9 L0 O4 r
; r% s- z ]4 ]/ ?
return fExpFactor
# [; }6 J- {9 i" l! B
end
+ s0 ]8 W( i7 t$ _% p" f
物品掉率 "local fItemDropRate ="
$ B$ ?- a7 s3 U! C: p$ S/ I
卡片掉率 "local fPieceItemDropRate ="
) x4 ?( b7 F' `7 z
飞飞币掉率 "local fGoldDropFactor ="
: I9 c( C5 ]- m8 N8 w9 z- `
当然也可以把这里都设为1.0,然后通过活动来控制,更加灵活。
7 t2 g% v0 _- s# _8 a
H! a4 V S1 O
3 I# @% G( ^2 ]( U U |! j7 J
欢迎光临 飞飞世界论坛 (http://ffwold.com/)
Powered by Discuz! X3.2