if (articles || CheckAttribute(pchar,"professionalnavy") || UNLIMITEDLOOT) // LDH add test for navy character if available - 16Apr09
{
// do nothing
DeleteAttribute(pchar, "articles_note"); // PB: Reset this
DeleteQuestHeader("crew_affairs"); // PB: Remove Questbook entry // <-------------- ADD THIS LINE --------------
}
else
{
// PB: Include ship's chests -->
ref loc = &locations[FindLocation("Tutorial_Deck")];
int money = sti(pchar.money);
if(CheckAttribute(loc, "weaponslocker.money")) money = money + sti(loc.weaponslocker.money);
if(CheckAttribute(loc, "box1.money")) money = money + sti(loc.box1.money);
money = money - ( 1000000 + GetEstimatedOfficerPay() + GetEstimatedCrewPay() );
// PB: Include ship's chests <--
if (money > 0)
{
norm_morale = norm_morale - money/(1000*makeint(pchar.reputation)); // Sulan: an honest trader will less likely provoke mutiny in his crew than a pirate
Trace("DailyCrewUpdate: morale lowered by " + money/(1000*makeint(pchar.reputation)) + " due to undivided loot"); // LDH - 06Mar09
if(!CheckAttribute(pchar, "articles_note"))
{
pchar.articles_note = true; // PB: Show this only once
LogIt("Captain, the crew is envious of the amount of money we have on board and wants to sign articles"); // PB: Log message added + effect increased to become visible
SetQuestHeader("crew_affairs"); // PB: Add to Questbook too
AddQuestRecord("crew_affairs", 1); // PB: Add to Questbook too
}
}
else
{
DeleteAttribute(pchar, "articles_note"); // PB: Reset once this has been sorted
DeleteQuestHeader("crew_affairs"); // PB: Remove Questbook entry
}
}