Don't set ATTACKED_DRUUGE if Druuge attempted to salvage your ship; bug #1013
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3194 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
Changes towards version 0.7:
|
Changes towards version 0.7:
|
||||||
|
- Druuge no longer turn hostile after attempting a salvage (bug #1013) - Alex
|
||||||
- Process subtitles correctly with no timestamp file (bug #1060) - Alex
|
- Process subtitles correctly with no timestamp file (bug #1060) - Alex
|
||||||
- Lander will no longer hang when killed on planets with a lot of
|
- Lander will no longer hang when killed on planets with a lot of
|
||||||
natural disasters (bug #584) - Alex
|
natural disasters (bug #584) - Alex
|
||||||
|
|||||||
@@ -157,6 +157,7 @@ static LOCDATA druuge_desc =
|
|||||||
};
|
};
|
||||||
|
|
||||||
static COUNT SlaveryCount = 0;
|
static COUNT SlaveryCount = 0;
|
||||||
|
static BOOLEAN AttemptedSalvage = FALSE;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ExitConversation (RESPONSE_REF R)
|
ExitConversation (RESPONSE_REF R)
|
||||||
@@ -688,8 +689,6 @@ Intro (void)
|
|||||||
{
|
{
|
||||||
BYTE NumVisits;
|
BYTE NumVisits;
|
||||||
|
|
||||||
SlaveryCount = 0;
|
|
||||||
|
|
||||||
if (LOBYTE (GLOBAL (CurrentActivity)) == WON_LAST_BATTLE)
|
if (LOBYTE (GLOBAL (CurrentActivity)) == WON_LAST_BATTLE)
|
||||||
{
|
{
|
||||||
NPCPhrase (OUT_TAKES);
|
NPCPhrase (OUT_TAKES);
|
||||||
@@ -761,7 +760,9 @@ Intro (void)
|
|||||||
if (GET_GAME_STATE (ATTACKED_DRUUGE)
|
if (GET_GAME_STATE (ATTACKED_DRUUGE)
|
||||||
&& !GET_GAME_STATE (DRUUGE_DISCLAIMER))
|
&& !GET_GAME_STATE (DRUUGE_DISCLAIMER))
|
||||||
{
|
{
|
||||||
// NPCPhrase (HOSTILE_TRADE);
|
// There is no HOSTILE_TRADE voice track that we know of
|
||||||
|
// so this is currently disabled
|
||||||
|
//NPCPhrase (HOSTILE_TRADE);
|
||||||
SET_GAME_STATE (DRUUGE_DISCLAIMER, 1);
|
SET_GAME_STATE (DRUUGE_DISCLAIMER, 1);
|
||||||
}
|
}
|
||||||
if (GET_GAME_STATE (MAIDENS_ON_SHIP)
|
if (GET_GAME_STATE (MAIDENS_ON_SHIP)
|
||||||
@@ -860,6 +861,7 @@ Intro (void)
|
|||||||
SET_GAME_STATE (DRUUGE_SALVAGE, NumVisits);
|
SET_GAME_STATE (DRUUGE_SALVAGE, NumVisits);
|
||||||
|
|
||||||
SET_GAME_STATE (BATTLE_SEGUE, 1);
|
SET_GAME_STATE (BATTLE_SEGUE, 1);
|
||||||
|
AttemptedSalvage = TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -891,6 +893,7 @@ static void
|
|||||||
post_druuge_enc (void)
|
post_druuge_enc (void)
|
||||||
{
|
{
|
||||||
if (GET_GAME_STATE (BATTLE_SEGUE) == 1
|
if (GET_GAME_STATE (BATTLE_SEGUE) == 1
|
||||||
|
&& !AttemptedSalvage
|
||||||
&& !GET_GAME_STATE (DRUUGE_MANNER))
|
&& !GET_GAME_STATE (DRUUGE_MANNER))
|
||||||
{
|
{
|
||||||
if (!GET_GAME_STATE (ATTACKED_DRUUGE))
|
if (!GET_GAME_STATE (ATTACKED_DRUUGE))
|
||||||
@@ -906,6 +909,9 @@ init_druuge_comm (void)
|
|||||||
{
|
{
|
||||||
LOCDATA *retval;
|
LOCDATA *retval;
|
||||||
|
|
||||||
|
SlaveryCount = 0;
|
||||||
|
AttemptedSalvage = FALSE;
|
||||||
|
|
||||||
druuge_desc.init_encounter_func = Intro;
|
druuge_desc.init_encounter_func = Intro;
|
||||||
druuge_desc.post_encounter_func = post_druuge_enc;
|
druuge_desc.post_encounter_func = post_druuge_enc;
|
||||||
druuge_desc.uninit_encounter_func = uninit_druuge;
|
druuge_desc.uninit_encounter_func = uninit_druuge;
|
||||||
|
|||||||
Reference in New Issue
Block a user