cehua_LC
2018-09-21 c65ec6dabe61d84bac2c2e7f5e848c76f35f1d6e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
x{[c@sôddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
dd„Z d„Z d„Z d„Zd„Zd„Zd    „Zd
„Zd „Zd „Zded „ZdS(iÿÿÿÿNicCs|j||tjƒS(N(tNomalDictGetPropertytChConfigtDef_PDictType_GoldInvest(t    curPlayertkeyt defaultValue((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyt__GetPDictValue(scCstj|||tjƒdS(N(t PlayerControltNomalDictSetPropertyRR(RRtvalue((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyt__SetPDictValue1scCs%xtjD]}t||ƒq
WdS(N(RtGoldInvestTypeListtSync_GoldInvestInfo(RtiType((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pytOnLogin9scCsUt|ƒxtjD]}t||ƒqWt|ƒ}t|tjtj|ƒdS(N(t__CheckInvestResetRR R t__GetInvestLVDataR
tDef_PDict_GoldInvest_AwardDatatGoldInvestType_VIP(RR t    awardData((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pytOnDayBs 
 cCs
tj}t|tj|ƒ}|s)dSt||ƒ}tjdƒ}|jt|ƒdƒ}||ks‡t|tj    ||fƒrót
|tj |dƒt
|tj|dƒx;t d|dƒD]#}t
|tj    ||fdƒqÉWnt ||dtƒdS(Nt InvestMaxDayiitisForce(RRRtDef_PDict_GoldInvest_Goldt__GetInvestCurDayt IpyGameDataPYtGetFuncEvalCfgtgettstrt#Def_PDict_GoldInvest_GotRewardValueR
tDef_PDict_GoldInvest_TimetxrangeR tTrue(Rt
investTypetinvestGoldRecordtcurDaytinvestMaxDayDicttmaxDayti((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyRNs    ($cCs¸tjƒj|ƒ}|j}|j}tjd||fƒtjdƒ}t|ƒ|krcdS|t|ƒ}||krštjd||fƒdS|j    |ƒd}|t
j krt |ƒ}tj ddƒ}    |jƒ|    krtjd|    ƒdSn|}
t|t
j|ƒ} | rVt||ƒ} |t
jkrátjdƒ} | jt|ƒd    ƒ}| |kr’tjd
| |fƒdS| |krSt|t
j||fƒ}|sÞtjd ||fƒdSqSqž|t
jgkr>| |krtjd | |fƒdS|| }
tjd | |
fƒqžtjd|ƒdSnH|t
jkržtj dƒ}|jƒ|kržtjd|ƒdSnt||||
|ƒdS(Ns%Ͷ×ÊÀí²Æ£ºinvestType=%s,investGold=%st
InvestCosts9    Í¶×ÊÀí²Æ Í¶×ʶî¶È²»´æÔÚ investGold=%s£¬ investType=%sit    VIPInvestis    Í¶×ÊÀí²Æ ÐèÒªVIP%sRis+    »¹ÓÐͶ×ÊÌìÊýδÁìÈ¡£¡curDay=%s,maxDay=%ssA    »¹ÓÐδÁìÈ¡µÄͶ×ʻر¨£¬²»¿ÉͶ×Ê£¡investType=%s,rewardRecord=%ss4    ÒÑͶ×ʵµ´Î=%s >= ×·¼ÓͶ×ʵµ´Î=%s ,²»¿É×·¼ÓͶ×Ê£¡s     ÒÑͶ×Ê=%s£¬×·¼ÓͶ×ÊÐè¿Û³ý=%ss*    investType = %s ÒÑͶ×ʹý£¬²»¿ÉÖØ¸´Í¶×ÊtGoldInvestLVLimits    ÏÉÓñͶ×ÊÀí²Æ µÈ¼¶²»ÄܸßÓÚ%s(t    GameWorldtGetPlayerManagertGetPlayerByIndext
InvestTypet
InvestGoldtDebugLogRRRtindexRRRt
GetFuncCfgtGetVIPLvRRRtCanRepeatInvestTypeRRtGoldInvestType_GoldtGetLVt__DoGoldInvest(R0t
clientDatattickRR!t
investGoldtinvestCostDicttcostListRt    needVIPLVt
deductGoldR"R#R$R%t rewardRecordtgoldInvestLVLimit((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyt OnGoldInvestjsd                
     
cCsNt|tj|ƒ}tjtjƒƒ}td||ƒ}|dddS(Niiii(RRRR*tChangeTimeStrToNumtGetCurrentDataTimeStrtmax(RR!t
investTimetcurTimetpassTick((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyRªscCsjtjdƒ}|jƒ}xH|jƒD]:\}}|d|koS|dknr(t|ƒSq(WdS(NR(ii(RRR5titemstint(RtinvestLVDataDicttlvtkeyDatatlvRange((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyR±s  $c Csøi|d6|d6|d6|tj6}tj|tj|tj|ƒsJdS||kr“tjddiƒj    |dƒ}|r“t
j ||ƒq“n|tj krÁtj dd|jƒgƒn1|tjkròtj dd|jƒ|gƒntjƒ}tjt|ƒd     tjƒ}t|tj||ƒt|tj||ƒt|tj||ƒ|tjkrÖtjd
ƒ}    |    j    t|ƒdƒ}
x;td|
dƒD]#} t|tj|| fdƒq¬Wnt||ƒtjd |ƒdS( NR-t
DeductGoldR.tInvestRedPackAwardiitVIPInvestmentRadiotJadeInvestmentRadioi
Rs    Í¶×ʳɹ¦£¡¿Û³ý×êʯ=%s(RtDef_Cost_Reason_SonKeyRtPayMoneyt IPY_GameWorldtTYPE_Price_Gold_MoneytDef_Cost_GoldInvestRRRtPlayerFamilyRedPackettCreatRedPacketByIDRt WorldNotifytGetNameR4R*tGetCurrentTimeRARtTYPE_Time_Format_DayR
RRRR3RRR R/( RR!R9R=RtinfoDictt redPacketIDREt
curTimeNumR$R%R&((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyR6½s4  !" $ c
Cs2tjƒj|ƒ}|j}|j}tjd|d|ƒ}|sKdSt|tj    |ƒ}tj
d|||fƒ|s–tj
d|ƒdS|j ƒ}|j ƒ|krÏtj
d||fƒdS|j ƒ}    |    rt||ƒ}
|    |
krtj
d|
|    fƒdSn|jƒ} t|tj|dƒ} t| ƒ| krltj
d| | fƒdS| t| ƒ} | }tj||f}t||ƒ}|rŒ|tjkrn| |krP| t|ƒ}g}x| D]g\}}}|}x9|D]1}||d    krþtd||dƒ}PqþqþW|j|||gƒqâWq‰tj
d
||fƒdSqŒtj
d ||fƒdSnt||| ƒtj
d |ƒ|rþxH|D]=\}}}tj||||tjtjgtd tƒqºWnt|ƒtj||||ƒt |||ƒdS(NtInvestids<ÁìȡͶ×ÊÀí²Æ»Ø±¨£ºinvestType=%s,investGold=%s,rewardIndex=%ss1    ¸ÃÀàÐÍûÓÐͶ×ʹý£¬ÎÞ·¨ÁìÈ¡»Ø±¨£¡investType=%ss+    µÈ¼¶²»¹»%s£¬ÎÞ·¨ÁìÈ¡»Ø±¨£¡investType=%ss8    ÎÞ·¨ÁìÈ¡»Ø±¨£¡ Ö»ÄÜÁìÈ¡µ±ÌìµÄ£¬curDay=%s£¬needDay=%sis/    ÁìȡͶ×ÊÀí²Æ»Ø±¨, rewardDict=%s, Ã»ÓÐkey=%sis@    11ÁìȡͶ×ÊÀí²Æ»Ø±¨, ÒÑÁìÈ¡¹ý£¡ investType=%s, rewardIndex=%ss>    ÁìȡͶ×ÊÀí²Æ»Ø±¨, ÒÑÁìÈ¡¹ý£¡ investType=%s, rewardIndex=%ss&    ÁìȡͶ×ÊÀí²Æ»Ø±¨ rewardItemList=%st showSysInfo(!R*R+R,R-t RewardIndexRtGetIpyGameDataRRRR/t    GetNeedLVR5t
GetNeedDayRt    GetRewardRRRR4RCtappendR
t ItemControlertGivePlayerItemRStrptItemt rptAnyWhereR RtDataRecordPacktDR_GetGoldInvestRewardR (R0R7R8RR!t rewardIndextipyDataR9tneedLVtneedDayR#t
rewardDictRt
rewardListtrewardItemListtrewardValueKeytlastDayGotDatatlastGotAwardListtitemIDtitemCnttisBindtnewCnttitemInfo((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pytOnGetGoldInvestRewardòsp                  5
c
Cs:t|tj|ƒ}| r(| r(dStjƒ}|jƒ||_t||ƒ|_||_    g|_
t j di|d6t ƒ}|s‘dSx€|D]x}|jƒd}|dkrÌ||krÌq˜ntjƒ}    ||    _t|tj||fƒ|    _|j
j|    ƒq˜Wt|j
ƒ|_tj||ƒdS(NR_tTypeidiÿÿÿÿ(RRRtChPyNetSendPackttagMCGoldInvestInfotClearR-RtCurDayR.tInvestRewardListRtGetIpyGameDataByConditionR tGetIDttagMCInvestRewardRaRt RewardValueRftlentRewardRecordCntt NetPackCommont SendFakePack(
RR!R0RR9tinvestInfoPacktipyGameDataListRnRmt investReward((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyR >s. 
                  (RR‰R~RSRR*RRgRkRVttimeRR
RRRR@RRR6R|tFalseR (((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldInvest.pyt<module>s*                                         @             5    L