Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Line 5236 to 5246:
if(4-sti(RealShips[sti(pchar.Ship.Type)].Class) > 0 || sti(RealShips[sti(pchar.ship.type)].basetype) == SHIP_FLEUT) return false;
for(int i = 0; i < COMPANION_MAX; i++)
{
iTemp = GetCompanionIndex(PChar, i);
if(iTemp > 0)
{
sld = GetCharacter(iTemp);
if(4-sti(RealShips[sti(sld.Ship.Type)].Class) > 0 || sti(RealShips[sti(sld.ship.type)].basetype) == SHIP_FLEUT) return false;
}
}
return true;
Let me explain to you what it means.
if(4-sti(RealShips[sti(pchar.Ship.Type)].Class) > 0 || sti(RealShips[sti(pchar.ship.type)].basetype) == SHIP_FLEUT) return false;
just means that if you sail any class 3, 2 and 1 ship OR a fluyt, you cannot dock at Justice Island,
because (4 - 3) or (4 - 2) or (4 - 1) are all > 0, and the fluyt line is self-explanatory.
return false just disables docking at Justice Island.
So, what you wanna do, is to change the equation to suit your needs.
Like, you can change 4-sti(RealShips[sti(pchar.Ship.Type)].Class) > 0 to let's say
sti(RealShips[sti(pchar.Ship.Type)].Class) < 0
as no ship has a negative class number, you can dock at JI with any ship except for a fluyt.
Therefore, if you really want to sail a fluyt (why would you?) to JI,
just remove || sti(RealShips[sti(pchar.ship.type)].basetype) == SHIP_FLEUT.
Yes, remove the "II" because these two vertical lines represent "or".
The lines below the first two are basically the same but for your companions. The game checks if you have companions, then evaluates their ship class(es).
Also, this chunk of code is linked to line 2000 in quests\Sharlie\Saga.c, which is the actual code that determines whether you are allowed to dock or not.
Hopefully this explanation is decent enough for people to not make any mistakes while editing the codes. Reply to me if it doesn't work please, because I may be wrong.