comparison NPC.h @ 353:95be2dcecadf

Partial refactor for Player::GetActualSkillLevel
author Nomad
date Thu, 21 Feb 2013 03:49:33 +0200
parents 0ea5fbd16edb
children f0f66f690777
comparison
equal deleted inserted replaced
352:ec6cc5cefa4b 353:95be2dcecadf
20 unsigned int uPortraitID; //4 20 unsigned int uPortraitID; //4
21 unsigned int uFlags; //8 // & 0x80 no greeting on dialogue start; looks like hired 21 unsigned int uFlags; //8 // & 0x80 no greeting on dialogue start; looks like hired
22 int fame; //c 22 int fame; //c
23 int rep; //10 23 int rep; //10
24 unsigned int Location2D; //14 24 unsigned int Location2D; //14
25 unsigned int uProfession; //18 25 unsigned int uProfession; //18 CheckHiredNPCSpeciality(uProfession)
26 /*
27
28 case PLAYER_SKILL_MONSTER_ID:
29 if ( CheckHiredNPCSpeciality(58) )
30 skill += 6;
31 if ( CheckHiredNPCSpeciality(57) )
32 skill += 6;
33
34 case PLAYER_SKILL_ARMSMASTER:
35 if ( CheckHiredNPCSpeciality(15) )
36 skill += 2;
37 if ( CheckHiredNPCSpeciality(16) )
38 skill += 3;
39
40 case PLAYER_SKILL_STEALING:
41 if (CheckHiredNPCSpeciality(51))
42 skill +=
43
44 case PLAYER_SKILL_ALCHEMY:
45 if ( CheckHiredNPCSpeciality(23) )
46 skill += 4;
47 if ( CheckHiredNPCSpeciality(24) )
48 skill += 8
49
50 case PLAYER_SKILL_LEARNING:
51 if ( CheckHiredNPCSpeciality(13) )
52 skill += 10;
53 if ( CheckHiredNPCSpeciality(14) )
54 skill += 15;
55 if ( CheckHiredNPCSpeciality(4) )
56 skill += 5;
57
58 case PLAYER_SKILL_UNARMED:
59 if (CheckHiredNPCSpeciality(56) )
60 skill +
61
62 case PLAYER_SKILL_DODGE:
63 if ( CheckHiredNPCSpeciality(56) )
64 skill+
65
66 case PLAYER_SKILL_MERCHANT:
67 if ( CheckHiredNPCSpeciality(20) )
68 skill += 4;
69 if ( CheckHiredNPCSpeciality(21) )
70 skill += 6;
71 if ( CheckHiredNPCSpeciality(48) )
72 skill += 3;
73 if ( CheckHiredNPCSpeciality(50) )
74 skill += 8;
75
76 case PLAYER_SKILL_PERCEPTION:
77 if ( CheckHiredNPCSpeciality(22) )
78 v2 = 6;
79 if ( CheckHiredNPCSpeciality(47) )
80 v2 += 5;
81
82 case PLAYER_SKILL_TRAP_DISARM:
83 if ( CheckHiredNPCSpeciality(25) )
84 v2 = 4;
85 if ( CheckHiredNPCSpeciality(26) )
86 v2 += 6;
87 if ( CheckHiredNPCSpeciality(51) )
88 v2 += 8;
89
90 FIRE WATER EARTH AIR
91 if ( CheckHiredNPCSpeciality(17) )
92 v2 = 2;
93 if ( CheckHiredNPCSpeciality(18) )
94 v2 += 3;
95 if ( CheckHiredNPCSpeciality(19) )
96 v2 += 4;
97 if ( classType == PLAYER_CLASS_WARLOCK && PartyHasDragon() )
98 v2 += 3;
99
100 SPIRIT MIND BODY
101 if ( CheckHiredNPCSpeciality(53) )
102 v2 = 2;
103 if ( CheckHiredNPCSpeciality(54) )
104 v2 += 3;
105 if ( CheckHiredNPCSpeciality(55) )
106 v2 += 4;
107 */
26 int greet; //1c 108 int greet; //1c
27 int joins; //20 109 int joins; //20
28 int field_24; 110 int field_24;
29 unsigned int evt_A; //28 111 unsigned int evt_A; //28
30 unsigned int evt_B; //2c evtb 112 unsigned int evt_B; //2c evtb