• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Solved Bridgetown Apothacary - not taking money from player

Talisman

Smuggler
Storm Modder
In Beta 3

When you take the 4 items - ( Confectio Damocritis - Acetum Saturnium - Tincture of Laudenum - Tutepth ) to the Apothacary to get increased HP etc.

The Apothacary charges you a fee in the dialog - but does not appear to take any money from the player.

this is the code ( I think) from apothacary_dialog.c in PROGRAM \ DIALOGS

Code:
void increaseMaxHP(ref pChar, ref nextDiag)
{ 
   int officerIndex = sti(pChar.apothecary.chr);
   int playerMoney = sti(pChar.wealth);
   ref refOfficer;
   int increasePer;
 
   if (officerIndex == 0) {
     refOfficer = pChar;   
     increasePer = sti(refOfficer.chr_ai.hp_max) / 10;     // 10% increase
   } else {
     int intOfficer = sti(GetOfficersIndex(PChar, officerIndex));
     refOfficer = GetCharacter(intOfficer);
     increasePer = sti(refOfficer.chr_ai.hp_max) / 20;     // 5% increase
   }
 
   ChangeHPBonus(&refOfficer, increasePer);
   ResetHP(&refOfficer); 
 
   string logMsg1 = DLG_TEXT[38] + GetMyFullName(&refOfficer) + DLG_TEXT[39] + GetMyPronoun(&refOfficer, "he") + DLG_TEXT[40];
   string logMsg2 = DLG_TEXT[41];
   string logMsg3 = DLG_TEXT[42] + increasePer + DLG_TEXT[43];
   DialogExit();
   nextDiag.CurrentNode = nextDiag.TempNode;
   playerMoney -= sti(pChar.apothecary.payment);  <<<<<<<-------THIS NOT WORKING ???????
   if (playerMoney < 0) playerMoney = 0;   // just in case
   pChar.wealth = PlayerMoney;

   DeleteAttribute(pChar, "apothecary");   // LDH
 
   // NK 05-07-03 -->
   /*ChangeHPBonus(&PChar, 5);
   ResetHP(&PChar);
   pchar.chr_ai.hp_max = sti(pchar.chr_ai.hp_max) + 5;
   LAi_SetCurHPMax(pchar);*/
   // NK <--
   LAi_Fade("", "");
   WaitDate("", 0,0,1,0,0);
   RecalculateJumpTable();
   PlaySound("AMBIENT\SHOP\sigh2.wav");
   Log_SetStringToLog(logMsg1);
   Log_SetStringToLog(logMsg2);
   Log_SetStringToLog(logMsg3);
   TakeItemFromCharacter(pChar, "meds1");
   TakeItemFromCharacter(pChar, "meds2");
   TakeItemFromCharacter(pChar, "meds3");
   TakeItemFromCharacter(pChar, "meds4");
}
// Swindler <--
// LDH <--

:facepalm


EDIT:- Just realised that the fee is taken from the players Wealth NOT the Crew Money ( which is where I thought it would be taken from. :facepalm

Attached is a SAVE - about to enter the Apothacary shop. In Standard ( Nat Hawk ) Story
 

Attachments

  • -=Player=- Barbados.7z
    559 KB · Views: 154
Last edited:
Eh? I never looked to see if any money is taken. :shrug

I like the idea of personal money being used for certain things.
 
ideed it seems to be taken from the personal money.
 
The wealth is your personal money. You get paid right along with everyone else so that when you don't pay your crew you are also not paying yourself.
 
Wealth is used to determine how well-known you are. Indeed the Apothecary is the only one who requires you to pay out of your wealth rather than the crew fund.
 
Back
Top