Mercurial > mm7
comparison mm7_5.cpp @ 237:2799737f8a74
more text parsers refactor
author | Gloval |
---|---|
date | Mon, 18 Feb 2013 00:47:36 +0400 |
parents | 47e06334c564 |
children | a6a8fa73b4ec |
comparison
equal
deleted
inserted
replaced
234:47e06334c564 | 237:2799737f8a74 |
---|---|
2899 pParty->pPlayers[0].pConditions[2] = pParty->uTimePlayed; | 2899 pParty->pPlayers[0].pConditions[2] = pParty->uTimePlayed; |
2900 v90 = pMapStats->GetMapInfo(pCurrentMapName); | 2900 v90 = pMapStats->GetMapInfo(pCurrentMapName); |
2901 if ( !v90 ) | 2901 if ( !v90 ) |
2902 v90 = rand() % (signed int)pMapStats->uNumMaps + 1; | 2902 v90 = rand() % (signed int)pMapStats->uNumMaps + 1; |
2903 pMapInfo = &pMapStats->pInfos[v90]; | 2903 pMapInfo = &pMapStats->pInfos[v90]; |
2904 if ( rand() % 100 + 1 <= pMapInfo->field_30 ) | 2904 if ( rand() % 100 + 1 <= pMapInfo->Encounter_percent ) |
2905 { | 2905 { |
2906 v91 = rand() % 100; | 2906 v91 = rand() % 100; |
2907 v92 = pMapInfo->field_31; | 2907 v92 = pMapInfo->EncM1percent; |
2908 v93 = v91 + 1; | 2908 v93 = v91 + 1; |
2909 if ( v93 > v92 ) | 2909 if ( v93 > v92 ) |
2910 pNPCData4 = (NPCData *)((v93 > v92 + pMapInfo->field_32) + 2); | 2910 pNPCData4 = (NPCData *)((v93 > v92 + pMapInfo->EncM2percent) + 2); |
2911 else | 2911 else |
2912 pNPCData4 = (NPCData *)v0; | 2912 pNPCData4 = (NPCData *)v0; |
2913 if ( !sub_45063B(pMapInfo, (int)pNPCData4) ) | 2913 if ( !sub_45063B(pMapInfo, (int)pNPCData4) ) |
2914 pNPCData4 = 0; | 2914 pNPCData4 = 0; |
2915 if ( pNPCData4 ) | 2915 if ( pNPCData4 ) |