cehua_ZWJ
2019-01-30 6afaa4408f4e09e3e95dbd92f0d1cd5a1fb2942b
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
x{[c@sdZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZejdƒZd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „ZdS( sVersion = 2016-10-08 18:00iÿÿÿÿNtPlayerProduceResultcCsstjƒj|ƒ}tjƒ}|jƒ}|r_t|ƒsCdStj|t    j
t j ƒntj ||ƒdS(N(t    GameWorldtGetPlayerManagertGetPlayerByIndext IPY_GameWorldtIPY_CProductionActivetGetStatet__IsCanProducet PlayerControltSync_PrepareBegintChConfigtDef_ProducePortalTimet ShareDefinetDef_PstProducetDelProduceBuff(tindexttickt    curPlayertpackt curProduction((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerProduce.pytProductionActiveCs   cCs'tj|jƒ|jƒtjtjgƒ}xk|D]c}tj    |j
ƒ|j ƒƒ}|sdq4n|j ƒtj kr4tj|dƒ|jƒdSq4Wtj|ƒtj|tj|ƒtj|tj|ƒ|jtj|ƒtj|tj ƒ|jtjƒd}|jtj|ƒdS(NtCollect_lhs_161795i( tGameMaptGetAreaGameObjByTypetGetPosXtGetPosYR
tDef_Matrix_OneRt    gotPlayerRtGetObjtGetIDtGetGameObjTypetGetPlayerActiont    paProduceRt
NotifyCodetSync_PrepareEndt
PetControltReCallFightPett SkillCommontAddBuffBySkillType_NoRefurbishtDef_ProduceBuffIDtAddBuffBySkillTypetDef_SkillID_ActionWuDit SetTickByTypetTYPE_Player_Tick_ProducetChangePlayerActiontNotify_ProductionStatetDef_EnterProductiontSync_MakeItemAnswerR tDef_mitProduceResult(RRtfindPlayerObjListt curPlayerObjt
findPlayertcurProduceState((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerProduce.pyt OnProduceEndbs& 
  cCs…|jƒtjkrdS|jtjƒ}||}|tjtjkrOdS|jtj|ƒt|ƒ}|j    t
j |ƒdS(N( RRR t GetTickByTypeR
R+tTYPE_Player_Tick_TimeR*tDoLogic_ProduceResultR/R R0(RRtlastTicktpastTickt    isSucceed((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerProduce.pytPlayerProduceTimešs
 cCsg|jtjƒtjkr/tj|dƒtS|jƒ}|tj    ƒkrht
j dt|fƒtSt|}t j ddƒ}d}d}d}xi|D]a}t|ƒdkrÌt
j d|ƒqn||dkr|d}|d}|d    }PqqW|dks|dkr.tj|d
ƒtStj||||tjgƒsctj|d ƒtStS( Nt AvoidSink09soerror: PlayerProduceResult.txtÅäÖôíÎó£¬PlayerProduceResult(%s) cannot find                           mapID(%s)ii'is=error:PlayerProduceResult.txtÅäÖôíÎó£¬len(infoList) < 2 (%s)iiitGeRen_lhs_20296tCollect_lhs_31379(tNomalDictGetPropertyR
tDef_Player_Dict_Wallow_LVtDef_GameWallow_LV_FirstRR!tFalsetGetMapIDtDef_PlayerProduceResultDictkeysRtErrLogtrandomtrandinttlent ItemControlertGivePlayerItemRtrptItemtTrue(RtmapIDtproduceResultListtranCntt    produceIDt
produceCntt produceIsBindtinfoList((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerProduce.pyR8¶s< 
 
 
 
cCsu|jƒtjkr2tj|dtjgƒtS|jƒjtjƒs^tj|dƒtS|j    ƒr~tj|dƒtS|j
ƒdkr¤tj|dƒtS|j ƒ}|t j ksË|jƒrßtj|dƒtS|t jkrtj|dƒtS|t jkr%tj|dƒtS|jƒt jkrNtj|d    ƒtStj|ƒratStj|d
ƒtS( NtCollect_lhs_287294t Collect_lhs_0tCollect_lhs_474794itCollect_lhs_70569tCollect_lhs_840854tCollect_lhs_59724tCollect_lhs_293296tCollect_max_dante_0tCollect_lhs_917284(tGetLVR
tDef_ProduceLVMinRR!RCt
GetMapBufftFindBufftDef_SkillID_ProducetIsMovingtGetHPRRtpaAttackt IsBattleStatetpaTradetpaSittGetPlayerVehicletpvNulltIsPlanStateNullRN(RtcurPlayerState((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerProduce.pyRìs:  cCstjtƒ||ƒdS(N(Rt GetPsycoFunct__Func_StartProduce(RR((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerProduce.pyt StartProduce5sc    Cs½tjƒj|ƒ}tj|tj|ƒs1dStjƒ}|jƒ}|j    ƒ}|j
ƒ}|j ƒ}|dkr}dSt j dƒ}||krœdSt|||||||ƒdS(NiitProduceCompose(ii(RRRtSetPlayerTickTimeR
t$TYPE_Player_Tick_ProduceMakeItemTimeRtIPY_CStartProducet    GetItemIDtGetCountt
GetUseBindt
GetAutoBuyt ReadChConfigtGetEvalChConfigtDoLogic_Produce(    RRRRtcurProduceItemIDt curProduceCnttuseBindtautoBuyt
composeDic((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerProduce.pyRo?s       c CsÑ|jƒjtjƒ}|\}}}    }
} ||tj}} |dkrgtj|| |ƒ rgdSt|||||    |ƒ\} }}}}}| sð|s´tj|dƒdS|dksÙtj|tj    |ƒ rðtj|dƒdSn|dkr2tj
|tj    |t j i|d6|t j 6|ƒnd}|}|dks_tj|tjƒr%i}| r±xMt|ƒD]2}tj| |ƒ}|j|dƒd||<qxWn
|||<xg|jƒD]V\}}tj||||tjtjgtƒstj|dƒPnd}|}qÈWn|dkrZtj
|| |t ji|t j 6ƒnx/|D]'}tj|||d|d|ƒqaW|jtj|ƒ|
rÍtjd|
|j ƒt!|ƒgƒndS(NitGeRen_chenxin_481766t ProduceItemIDiR?("tGetItemManagertGetPackRRMtTYPE_Price_Silver_MoneyRt    HaveMoneyt __ParseStuffR!tTYPE_Price_Gold_MoneytPayMoneyR
tDef_Cost_BuyStoreItemtDef_Cost_Reason_SonKeyRt    CanHappenR tDef_MaxRateValuetrangetGetResultByRandomListtgettitemsRKRLt rptAnyWhereRNtDef_Cost_ItemProducet
ItemCommont
ReduceItemR/tDef_mitMaterialCompoundt WorldNotifyt GetPlayerNametstr(RR|R}t
configInfoR~RtitemPackt    needMoneyt successRatet needStuffListt
notifyMarktrandomItemListt    moneyTypet    hasEnoughtreduceItemListtisBindt autoBuyMoneyt eventItemIDt eventLackCnttresultt notifyItemIDt proIemCntDicttit
randItemIDt    proItemIDtproCntt    stuffList((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerProduce.pyR{asT"-  !!
   %(cCspt}g}t}d}    d}
d} tj} |dkrEtj} nx|D]
} t| ƒdkr‘tjd||fƒt}g}d}    Pn| d}| d|}tj    |t
j ƒ}tj |||| ƒ\}}}}|s-|dkr
t}g}d}    Pq-t}|    ||}    |}
|} n| rC|rCt}n|j ||gƒqLW||||    |
| fS(NiiisSerror: curProduceItemID(%s):len(stuffInfoList)< 2 ,                              %s(RNRCR”tUseStuffMode_NoBindtUseStuffMode_AllRJRRGtPlayerSuperMarkettGetStoreItemPriceRRˆtGetItem_FromPack_ByID_ExExtappend(RR›R|R}tneedStuffInfoListR~tisEnoughR¯R¤R¥R¦R§t useBindMarkt stuffInfoListt needStuffIDt needStuffCntt
stuffPriceR¢t useItemListttmpBindtlackCnt((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerProduce.pyR‡°sH       
           (t__doc__RRR
RyR#RRR RKt    BuffSkillRHR”R%tDataRecordPackR²RzRERR5R<R8RRpRoR{R‡(((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerProduce.pyt<module>s2                       8        6    I    
    "    O