飞飞世界论坛
标题:
[补]修改倍率
[打印本页]
作者:
admin
时间:
2016-1-10 03:09
标题:
[补]修改倍率
首先打开Constant.inc并且修改所有倍率为1.0
$ N7 j/ M) l8 f/ `* B( Z
Code:
! o) l3 R' X! X. p
itemDropRate = 1.0
& Y* F. [& v3 N' C" E- U
goldDropRate = 1.0
( ^" a. Y! l% n6 z! P' h; F3 c' F
monsterExpRate = 1.0
% r) n& J R) I
monsterHitRate = 1.0
7 p5 {$ g% Y1 P2 {9 x# k$ U
现在去LuaFunc 文件夹 打开EventFunc.lua搜索 local fExpFactor =
. q5 F6 M" C6 O) ]
你可以在这更改倍率。
4 t# u$ ?& r8 u3 |3 F0 i+ n
Code:
# _' [9 ~+ S& r2 S: x! \
function GetExpFactor()
/ a5 K7 O {7 ^" T3 U
local tList = GetEventList()
9 `6 f. N% y2 y5 X7 x- d! k! x
local fExpFactor = 60
# s9 D0 z) a0 F8 P2 A& D
for i in pairs(tList) do
" `: ]6 d) d7 {+ {, {. B N- W, d
if( tEvent[tList].fExpFactor ~= nil ) then
' N* _+ N9 z* s8 }% i
fExpFactor = fExpFactor * tEvent[tList].fExpFactor
! H# o8 I9 M6 ?& ^9 J( p( `
end
. X5 u- N/ `* U6 \. r
end
" A3 z: I# m1 ~$ ]% B
. D- o; w q% [7 ?. ^0 E. Z2 c: d
return fExpFactor
9 L0 b" m8 G6 A0 O3 f* Z4 u
end
" ~) O! t8 }# h n. L* X* P
物品掉率 "local fItemDropRate ="
; T# z- ?' P# O1 \" I
卡片掉率 "local fPieceItemDropRate ="
6 t% [0 w) u9 B; S3 N; K8 ~& i9 d
飞飞币掉率 "local fGoldDropFactor ="
& R* m" n4 a& M" w7 ?, m" B6 q
当然也可以把这里都设为1.0,然后通过活动来控制,更加灵活。
( T! z1 O% X& s q5 E' f* d1 N( ?
# q, o: k0 j9 {' }
* o J* ]" t! ^7 g b' k8 b
欢迎光临 飞飞世界论坛 (http://ffwold.com/)
Powered by Discuz! X3.2