0
|
1 #pragma once
|
|
2
|
|
3
|
|
4 struct NPCTopic
|
|
5 {
|
|
6 const char *pTopic;
|
|
7 const char *pText;
|
|
8 };
|
|
9
|
|
10 extern NPCTopic pNPCTopics[789];
|
|
11
|
|
12
|
|
13
|
|
14
|
|
15
|
|
16 /* 136 */
|
|
17 #pragma pack(push, 1)
|
|
18 struct NPCData
|
|
19 {
|
|
20 char *pName;
|
|
21 unsigned int uPortraitID;
|
188
|
22 unsigned int uFlags; // & 0x80 no greeting on dialogue start
|
0
|
23 int fame;
|
|
24 int rep;
|
|
25 int house;
|
|
26 unsigned int uProfession;
|
|
27 int greet;
|
|
28 int joins;
|
|
29 int field_24;
|
|
30 unsigned int bDrawSomeAnim;
|
130
|
31 int _anim_current_time; //evtb
|
|
32 int _anim_end_time; //evtc
|
0
|
33 int evtd;
|
|
34 int evte;
|
|
35 int evtf;
|
|
36 int uSex;
|
|
37 int bHasUsedTheAbility;
|
|
38 int news_topic;
|
|
39 };
|
|
40 #pragma pack(pop)
|
|
41
|
|
42
|
|
43 /* 138 */
|
|
44 #pragma pack(push, 1)
|
|
45 struct NPCProfession
|
|
46 {
|
|
47 unsigned int uHirePrice;
|
|
48 char *pBenefits;
|
|
49 char *pActionText;
|
|
50 char *pJoinText;
|
|
51 char *pDismissText;
|
|
52 };
|
|
53 #pragma pack(pop)
|
|
54
|
|
55
|
|
56 /* 139 */
|
|
57 #pragma pack(push, 1)
|
|
58 struct NPCStats_stru0
|
|
59 {
|
237
|
60 int field_0; //summ
|
|
61 char field_4[60]; //prof position
|
0
|
62 };
|
|
63 #pragma pack(pop)
|
|
64
|
|
65 /* 140 */
|
|
66 #pragma pack(push, 1)
|
|
67 struct NPCGreeting
|
|
68 {
|
|
69 char *pGreeting1;
|
|
70 char *pGreeting2;
|
|
71 };
|
|
72 #pragma pack(pop)
|
|
73
|
|
74
|
|
75
|
|
76 /* 137 */
|
|
77 #pragma pack(push, 1)
|
|
78 struct NPCStats
|
|
79 {
|
|
80 inline NPCStats():
|
|
81 pNPCTextTXT_Raw(nullptr), pNPCTopicTXT_Raw(nullptr), pNPCDistTXT_Raw(nullptr)
|
|
82 {
|
|
83 uNumNPCNames[0] = uNumNPCNames[1] = 0;
|
|
84 }
|
|
85
|
|
86 void Initialize2();
|
|
87 void Initialize1();
|
|
88 void Initialize();
|
|
89 void Release();
|
|
90 bool InitializeAdditionalNPCs(NPCData *a2, int a3, int a4, int a5);
|
|
91 void _476C60();
|
|
92
|
237
|
93
|
0
|
94 NPCData pNPCData[501];
|
|
95 NPCData pNewNPCData[501];
|
|
96 char *pNPCNames[540][2];
|
|
97 int field_13A58;
|
|
98 int field_13A5C;
|
|
99 int field_13A60;
|
|
100 int field_13A64;
|
|
101 int field_13A68;
|
|
102 NPCProfession pProfessions[58];
|
|
103 NPCData array_13EF4[100];
|
|
104 char *pCatchPhrases[52];
|
|
105 char *pNPCNames2[500];
|
237
|
106 NPCStats_stru0 array_16544[77]; //16544h proffesion position in area
|
0
|
107 int field_17884;
|
|
108 int field_17888;
|
|
109 NPCGreeting pNPCGreetings[205];
|
|
110 unsigned __int16 pGroups[51];
|
|
111 unsigned __int16 pGroups_copy[51];
|
|
112 int field_17FC0;
|
|
113 unsigned int uNumNewNPCs;
|
|
114 int field_17FC8;
|
|
115 unsigned int uNumNPCProfessions;
|
|
116 unsigned int uNumNPCNames[2];
|
|
117 char *pNPCDataTXT_Raw;
|
|
118 char *pNPCNamesTXT_Raw;
|
|
119 char *pNPCProfTXT_Raw;
|
|
120 char *pNPCNewsTXT_Raw;
|
|
121 char *pNPCTopicTXT_Raw;
|
|
122 char *pNPCTextTXT_Raw;
|
|
123 char *pNPCDistTXT_Raw;
|
|
124 char *pNPCGreetTXT_Raw;
|
|
125 char *pNCPGroupTXT_Raw;
|
|
126 };
|
|
127 #pragma pack(pop)
|
|
128
|
251
|
129 bool __cdecl sub_476387();
|
|
130 bool CheckHiredNPCSpeciality(unsigned int uProfession);
|