cehua_lyf
2019-03-06 3c8ee0a8a524a6251d7d5aae2372e76fd8a99b9c
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
rÝR\c@s<dZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z e ddƒ\ZZZZd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „Zd „Zdd„Zd„Zged„Zd„Zd„Z dS(sVersion = 2018-07-23 16:50iÿÿÿÿNiicCsZt|ƒ}|sVtjjtjiƒ}|jtjƒrVt|ƒt|ƒqVndS(N(    t#__CheckPlayerNewFairyCeremonyActiont
PyGameDatatg_operationActionDicttgett ShareDefinet$OperationActionName_NewFairyCeremonyt ActKey_StatetSyncFCRechargeInfotSyncFCPartyInfo(t    curPlayertisResettactCostRebateInfo((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewFairyCeremony.pytOnLogin)s 
cCsetjƒ}xRt|jƒƒD]>}|j|ƒ}|dks|jƒ rSqnt|ƒqWdS(N(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextNonet    GetInitOKR(t playerManagertiR    ((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewFairyCeremony.pyt'RefreshOperationAction_NewFairyCeremony3s c    Cs‘|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jt    j
ƒ}||krpdS|jtj dƒ}|jt    j ƒ}t jd|||||f|ƒt||ƒtj|t    j
|ƒtj|t    j |ƒtj|t    jdƒt|ƒtj|t    jdƒtj|t    jdƒx+t    jD] }tj|t    j|dƒqIWt|ƒtj|t    jdƒtS(NiseÐÂÏɽçÊ¢µäÖØÖÃ! NewFairyCeremonyID=%s,playerCostRebateID=%s,state=%s,ActWorldLV=%s,playerFCWorldLV=%s(t GetPlayerIDRRRRRt    ActKey_IDRtNomalDictGetPropertytChConfigtDef_PDict_NewFairyCeremonyIDtActKey_WorldLVtDef_PDict_NewFCActionWorldLVR tDebugLogt__SendNewFairyCeremonyMailt PlayerControltNomalDictSetPropertytDef_PDict_NewFCRechargeStateRtDef_PDict_NewFCPartyCurPointtDef_PDict_NewFCPartyAwardRecordtPeoplePartyActIDListtDef_PDict_NewFCPartyCurCntRtDef_PDict_NewFCCostGoldtTrue(    R    tplayerIDtactNewFairyCeremonyInfotNewFairyCeremonyIDtstatetplayerNewFairyCeremonyIDt
actWorldLVtplayerFCWorldLVtactid((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewFairyCeremony.pyR=s.       
 
cCsñ|jƒ}|jƒ}|jtjƒdkr©t|tƒ}tjddiƒ}t    |ƒ|krzt
j d|ƒq©|t    |ƒ}t j d|g||gƒnt|tƒ}|jtjƒ}|jtjƒ}tjdi|d6tƒ}    |    st
j d|ƒdSg}
x¬|    D]¤} | jƒ} |td| ƒ@rKq n| jƒ} || kriq n| jƒ}|jƒ}t    |ƒ|krªt
j d    |ƒq n|t    |ƒ}|
|7}
q W|
rít j d
|g|
|gƒndS( NitNewCeremonyRechargesB    Óʼþ·¢·Å³äÖµ´óÀñ½±Àø CeremonyRecharge Î´ÅäÖý±Àø worldLvNum=%stNewCeremonyPayPacktNewAllPeoplePartyAwardt
WorldLvNumsK    Óʼþ·¢·ÅÈ«ÃñÀ´à˽±Àø AllPeoplePartyAward Î´ÅäÖÃÊÀ½çµÈ¼¶µµ WorldLvNum=%sisB    Óʼþ·¢·ÅÈ«ÃñÀ´à˽±Àø AllPeoplePartyAward Î´ÅäÖÃÖ°Òµ½±Àø job=%stNewCeremonyHaiPoint(tGetIDtGetNameRRR"t__GetFCWorldLVIndextDef_FC_Recharget IpyGameDataPYtGetFuncEvalCfgtstrR tErrLogR t SendMailByKeyt Def_FC_PartyR#R$tGetIpyGameDataByConditionR(tGetIndextpowt GetNeedPointtGetAwardtGetJob(R    R/R)t
playerNamet
worldLvNumt awardInfoDictt    awardListtcurPointt awardRecordt ipyDataListtpartyAwardListtipyDatatindext    needPointtjob((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewFairyCeremony.pyRcsD        cCs7tjjtjiƒ}|jtjdƒ}|dkS(Nii(RRRRRR(tactBossRebornInfoR,((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewFairyCeremony.pyt__IsAtFCActionŒsc
Cs¦|jtjƒ}tjddiƒ}t|ƒ|kr=dSd}|t|ƒ}xLt|ƒD]>\}}|\}}    ||ko|    knr`|}Pq`q`W|S(NtNewCeremonyWorldLvii(RRRR:R;R<t    enumerate(
R    tfcTypeR/t fcWorldlvDictt worldLVIndext worldlvListROtlvinfotminlvtmaxlv((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewFairyCeremony.pyR8’s cCsStƒs dS|jtjƒ}|dkr/dStj|tjdƒt|ƒdS(Nii(RSRRR"R R!R(R    tcurState((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewFairyCeremony.pyt OnFCRecharge¢s     
c
Cs:|jtjƒ}|dkr"dSt|tƒ}tjddiƒ}t|ƒ|krmtj    d|ƒdS|t|ƒ}t
|ƒ}t j |t j|ƒ}||krÁtj|dƒdStj|tjdƒx6|D].\}}}    tj||||    t jgƒqÞWt|ƒtjdd|jƒgƒdS(NiR1s>    ÁìÈ¡³äÖµ´óÀñ½±Àø CeremonyRecharge Î´ÅäÖý±Àø worldLvNum=%stGeRen_chenxin_998371ii(RRR"R8R9R:R;R<R R=tlent
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemR t
NotifyCodeR!t ItemControlertGivePlayerItemRt WorldNotifyR7(
R    R]RGRHRIt    needSpacet    packSpacetitemIDtitemCnttisBind((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewFairyCeremony.pytGetFCRechargeAward¬s(   #
cCs5tjƒ}|jtjƒ|_tj||ƒdS(N(tChPyNetSendPackttagMCNewXJSDRechargeRRR"tStatet NetPackCommont SendFakePack(R    tpackData((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewFairyCeremony.pyRÈs c
Csâtƒs dStjd|ƒ}|s)dS|jƒ}|jtj|ƒ}||kr[dSt|||ƒ}tj    |tj||ƒ|j
ƒ}|||}|jtj ƒ}    tj    |tj |    |ƒt ||gƒdS(NtNewAllPeopleParty( RSR:tGetIpyGameDatat GetTotalTimesRRR&tminR R!t GetAddPointR#R(
R    tactionIDtaddCntRNtmaxCnttcurCnttnewCntt singlePointtaddPointRJ((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewFairyCeremony.pytAddFCPartyActionCntÐs"       cCs½t|tƒ}tjd||ƒ}|s.dS|jtjƒ}||jƒkrtj    d|jƒ||f|j
ƒƒdS|jtj ƒ}t d|ƒ}||@rÎtj    d||f|j
ƒƒdS|j ƒ}|jƒ}t|ƒ|krüdS|t|ƒ}    t|    ƒ}
tj|tj|
ƒ} |
| krPtj|dƒdS||O}tj|tj |ƒx6|    D].\} } }tj|| | |tjgƒqwWt|dtƒdS(NR3s6    È«ÃñÀ´àËÁì½±, µãÊý²»×ã%s,  worldLvNum=%s, index=%sis2    È«ÃñÀ´àËÁì½±, ÒÑÁì½±,  worldLvNum=%s, index=%sR_t
isGetAward(R8R?R:RvRRR#RCR RR6R$RBRDRER<R`RaRbRcRdR ReR!RfRgRR((R    RORGRNRJRKt    awardMarkRHRQRIRiRjRkRlRm((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewFairyCeremony.pytGetFCPartyAwardäs:)
     
#cCsâtjƒ}|jƒ|jtjƒ|_|jtjƒ|_|sÎg|_    xgtj
D]\}|rw||krwqYntj ƒ}||_ |jtj |ƒ|_|j    j|ƒqYWt|j    ƒ|_ntj||ƒdS(N(RottagMCNewAllPeoplePartyInfotClearRRR#tCurPointR$t AwardRecordt BuyCountListR%ttagMCNewAllPeoplePartyCounttActIDR&tCurTimestappendR`tCountRrRs(R    t    actIDListR‚RttactIDt
finishInfo((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewFairyCeremony.pyR
s  
         cCs¸|dkrdS|tjkr#dStƒs0dS|jtjƒ}||}tj|tj|ƒ|tjdƒkr{dSt    j
|t j |ƒt jd|||f|jƒƒdS(NitNewCeremonyRankLimits?Íæ¼Ò¾ø°æ½µÁÙÏû·Ñ»î¶¯: curCostGold=%s,costGold=%s,updCostGold=%s(RtCostRebate_DisableTypeRSRR'R R!R:t
GetFuncCfgtPlayerBillboardtUpdatePlayerBillboardRtDef_BT_NewFCCostGoldR RR(R    tcostTypetcostGoldt curCostGoldt updCostGold((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewFairyCeremony.pyt AddFCCostGolds     
    cCstƒstjdƒtStjddiƒ}t|tƒ}|jt    |ƒdƒ}||kr‰tjd|||f|j
ƒƒtSt S(Ns'    ÑÌ»¨¿ñ»¶ÂòÑÌ»¨ »î¶¯Î´¿ªÆô, ÎÞ·¨¹ºÂòtNewCeremonyFirePartyiisA    ÑÌ»¨¿ñ»¶ÂòÑÌ»¨ µ±Ç°¿ÉÒÔÂòÑÌ»¨Îª %s, ÎÞ·¨¹ºÂò %s,worldLvNum=%s( RSR tLogtFalseR:R;R8tDef_FC_FireworksRR<R6R((R    t    itemIndext fireworksDictRGtcanBuyID((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewFairyCeremony.pytIsCanBuyFireworks6s      #(!t__doc__RcR RR:R RfRoRrRRRaR•trangeR9R R?tDef_FC_RechargeRankR RRRRSR8R^RnRRR„RŸRRœR¤(((sf.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerNewFairyCeremony.pyt<module>s6                
    
    &    )            
             &