• 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!

Officer loyality editing

jip2

Sailor Apprentice
I have noticed that my officers loyality has decreased a lot. Is there a way to raise it? I also found this in the officers.c file:

void ChangeOfficersLoyality(int iIncr, int iType)
{
//iType may take those importances:
// 0 - íå ó÷èòûâàòü ýëàéìåíò
// 1 - ó÷èòûâàòü ýëàéìåíò

int iPassQuantity = GetPassengersQuantity(pchar);
int cn = -1;
ref chr;
int iAlignment, iNation;

if(iIncr == 100)
{
iIncr = 80;
}

iIncr = makeint(iIncr / (1.0 + (0.1 * iGameArcade)));
int iLeadership = GetSummonSkillFromName(pchar, SKILL_LEADERSHIP);
iIncr = iIncr - iIncr * (0.01 * iLeadership);

for (int i = 0; i < iPassQuantity; i++)
{
cn = GetPassenger(pchar, i);
if(cn != -1)
{
chr = &characters[cn];
if(!CheckAttribute(chr, "prisoner"))
{
chr.prisoner = 0;
}
if(CheckAttribute(chr, "loyality") && sti(chr.prisoner) != 1)
{
if(iType == 1)
{
iAlignment = sti(chr.loyality.alignment);

if(iAlignment == GOOD)
{
chr.loyality = sti(chr.loyality) + iIncr;
}
else
{
chr.loyality = sti(chr.loyality) - iIncr;
}
}
else
{
chr.loyality = sti(chr.loyality) + iIncr;
}

if(sti(chr.loyality) < 1)
{
chr.loyality = 1;
}
if(sti(chr.loyality) > 99)
{
chr.loyality = 99;
}
CheckForFire(chr);
}
}
}
}

My c++ skills are very poor but I think by changing this I would get the loyality to increase more. I also found other intresting files like career and boyntyhunters. Is it possible to raise my sallary and rank names by editing the career file? I also wondered what for the boyntyhunter file is? I haven't seen any boynty hunters in the game.
 
Back
Top