diff mm7_3.cpp @ 652:1ff57450f090

* Some fixes to TravelByTransport * Minor bug with npc profession names * Fixed not loading npc profession decriptions * NPC professions enum
author Nomad
date Tue, 12 Mar 2013 04:45:38 +0200
parents ccf8b4815a1f
children c10163a6d946 1eb5021cefcb c508daac2c07
line wrap: on
line diff
--- a/mm7_3.cpp	Tue Mar 12 03:10:35 2013 +0200
+++ b/mm7_3.cpp	Tue Mar 12 04:45:38 2013 +0200
@@ -3917,15 +3917,15 @@
   if ( uCurrentlyLoadedLevelType != LEVEL_Outdoor )
     v0 = &pIndoor->dlv;
   v1 = 0;
-  if ( CheckHiredNPCSpeciality(0x2Du) )
-    v1 = 5;
-  if ( CheckHiredNPCSpeciality(0x33u) )
+  if ( CheckHiredNPCSpeciality(Pirate) )
+    v1 += 5;
+  if ( CheckHiredNPCSpeciality(Burglar) )
     v1 += 5;
-  if ( CheckHiredNPCSpeciality(0x30u) )
+  if ( CheckHiredNPCSpeciality(Gypsy) )
     v1 += 5;
-  if ( CheckHiredNPCSpeciality(0x32u) )
+  if ( CheckHiredNPCSpeciality(Duper) )
     v1 += 5;
-  if ( CheckHiredNPCSpeciality(0x34u) )
+  if ( CheckHiredNPCSpeciality(FallenWizard) )
     v1 += 5;
   return v1 + v0->uReputation;
 }
@@ -11946,7 +11946,7 @@
   uBlue = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0, 0xFFu);
   auto bWizardEyeActive = pParty->WizardEyeActive();
   auto uWizardEyeSkillLevel = pParty->WizardEyeSkillLevel();
-  if (CheckHiredNPCSpeciality(0x26u))
+  if (CheckHiredNPCSpeciality(Cartographer))
   {
     bWizardEyeActive = true;
     uWizardEyeSkillLevel = 2;
@@ -13864,13 +13864,13 @@
   signed int v0; // esi@1
 
   v0 = uDefaultTravelTime_ByFoot;
-  if ( CheckHiredNPCSpeciality(5u) )
+  if ( CheckHiredNPCSpeciality(Guide) )
     --v0;
-  if ( CheckHiredNPCSpeciality(6u) )
+  if ( CheckHiredNPCSpeciality(Tracker) )
     v0 -= 2;
-  if ( CheckHiredNPCSpeciality(7u) )
+  if ( CheckHiredNPCSpeciality(Pathfinder) )
     v0 -= 3;
-  if ( CheckHiredNPCSpeciality(0x2Cu) )
+  if ( CheckHiredNPCSpeciality(Explorer) )
     --v0;
   if ( v0 < 1 )
     v0 = 1;