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
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.
Attached is a SAVE - about to enter the Apothacary shop. In Standard ( Nat Hawk ) Story
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 <--
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.
Attached is a SAVE - about to enter the Apothacary shop. In Standard ( Nat Hawk ) Story
Attachments
Last edited: