Mercurial > mm7
comparison NPC.h @ 289:92d443ed0cba
Слияние
author | Ritor1 |
---|---|
date | Mon, 18 Feb 2013 19:16:38 +0600 |
parents | f1218b9d67f1 |
children | 0ea5fbd16edb |
comparison
equal
deleted
inserted
replaced
288:9a6052fecad4 | 289:92d443ed0cba |
---|---|
15 | 15 |
16 /* 136 */ | 16 /* 136 */ |
17 #pragma pack(push, 1) | 17 #pragma pack(push, 1) |
18 struct NPCData | 18 struct NPCData |
19 { | 19 { |
20 inline bool Hired() {return uFlags & 0x80;} | |
21 | |
20 char *pName; | 22 char *pName; |
21 unsigned int uPortraitID; | 23 unsigned int uPortraitID; |
22 unsigned int uFlags; // & 0x80 no greeting on dialogue start | 24 unsigned int uFlags; // & 0x80 no greeting on dialogue start; looks like hired |
23 int fame; | 25 int fame; |
24 int rep; | 26 int rep; |
25 int house; | 27 int house; |
26 unsigned int uProfession; | 28 unsigned int uProfession; |
27 int greet; | 29 int greet; |
55 | 57 |
56 /* 139 */ | 58 /* 139 */ |
57 #pragma pack(push, 1) | 59 #pragma pack(push, 1) |
58 struct NPCStats_stru0 | 60 struct NPCStats_stru0 |
59 { | 61 { |
60 int field_0; | 62 int field_0; //summ |
61 char field_4[60]; | 63 char field_4[60]; //prof position |
62 }; | 64 }; |
63 #pragma pack(pop) | 65 #pragma pack(pop) |
64 | 66 |
65 /* 140 */ | 67 /* 140 */ |
66 #pragma pack(push, 1) | 68 #pragma pack(push, 1) |
88 void Initialize(); | 90 void Initialize(); |
89 void Release(); | 91 void Release(); |
90 bool InitializeAdditionalNPCs(NPCData *a2, int a3, int a4, int a5); | 92 bool InitializeAdditionalNPCs(NPCData *a2, int a3, int a4, int a5); |
91 void _476C60(); | 93 void _476C60(); |
92 | 94 |
93 | 95 |
94 NPCData pNPCData[501]; | 96 NPCData pNPCData[501]; |
95 NPCData pNewNPCData[501]; | 97 NPCData pNewNPCData[501]; |
96 char *pNPCNames[540][2]; | 98 char *pNPCNames[540][2]; |
97 int field_13A58; | 99 int field_13A58; |
98 int field_13A5C; | 100 int field_13A5C; |
101 int field_13A68; | 103 int field_13A68; |
102 NPCProfession pProfessions[58]; | 104 NPCProfession pProfessions[58]; |
103 NPCData array_13EF4[100]; | 105 NPCData array_13EF4[100]; |
104 char *pCatchPhrases[52]; | 106 char *pCatchPhrases[52]; |
105 char *pNPCNames2[500]; | 107 char *pNPCNames2[500]; |
106 NPCStats_stru0 array_16544[77]; | 108 NPCStats_stru0 array_16544[77]; //16544h proffesion position in area |
107 int field_17884; | 109 int field_17884; |
108 int field_17888; | 110 int field_17888; |
109 NPCGreeting pNPCGreetings[205]; | 111 NPCGreeting pNPCGreetings[205]; |
110 unsigned __int16 pGroups[51]; | 112 unsigned __int16 pGroups[51]; |
111 unsigned __int16 pGroups_copy[51]; | 113 unsigned __int16 pGroups_copy[51]; |
124 char *pNPCGreetTXT_Raw; | 126 char *pNPCGreetTXT_Raw; |
125 char *pNCPGroupTXT_Raw; | 127 char *pNCPGroupTXT_Raw; |
126 }; | 128 }; |
127 #pragma pack(pop) | 129 #pragma pack(pop) |
128 | 130 |
131 bool PartyHasDragon(); | |
132 bool CheckHiredNPCSpeciality(unsigned int uProfession); |