Skip to content

Commit b714452

Browse files
committed
Hub Deathclaw
- Tweaked: Added fail-safe to Harold and Beth dialog to not accidentally reset the Deathclaw status when the player already killed it before in a random encounter.
1 parent 3c7422d commit b714452

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

Fallout2/Fallout1in2/Mapper/source/scripts/06hub/HAROLD.ssl

+4-1
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,10 @@ procedure Harold45 begin
575575
end
576576

577577
procedure Harold47 begin
578-
set_global_var(GVAR_KILL_DEATHCLAW, 1);
578+
// Only set to 1 if the deathclaw wasn't killed yet
579+
if (global_var(GVAR_KILL_DEATHCLAW) < 2) then begin
580+
set_global_var(GVAR_KILL_DEATHCLAW, 1);
581+
end
579582
Reply(233);
580583
NOption(234, Harold49, 4);
581584
end

Fallout2/Fallout1in2/Mapper/source/scripts/06hub/HBETH.ssl

+4-1
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,10 @@ procedure Beth45 begin
644644
end
645645

646646
procedure Beth46 begin
647-
set_global_var(GVAR_KILL_DEATHCLAW, 1);
647+
// Only set to 1 if the deathclaw wasn't killed yet
648+
if (global_var(GVAR_KILL_DEATHCLAW) < 2) then begin
649+
set_global_var(GVAR_KILL_DEATHCLAW, 1);
650+
end
648651
Reply(240);
649652
NOption(241, Beth47, 4);
650653
BOption(242, Beth49, 4);

Fallout2/Fallout1in2/Mapper/source/scripts/GlobalScripts/gl_fo1mechanics.ssl

+3-6
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ procedure GameModeChange_handler begin
129129
call skilled;
130130

131131
// The Eyebot has a built-in motion scanner function
132-
if Eyebot_In_Party then
133-
call motion_scanner;
132+
if Eyebot_In_Party then call motion_scanner;
134133

135134
// Activate special radiation death if > 1000 rem. See data/enddeath.txt
136135
set_global_var(GVAR_SPECIAL_RADIATION_DEATH, dude_rads);
@@ -221,8 +220,7 @@ end
221220

222221
procedure skilled begin
223222
// We have to manually do this, because we are overwriting the hardcoded effect in the perks.ini file.
224-
if dude_trait(TRAIT_skilled) then
225-
set_perk_freq(4);
223+
if dude_trait(TRAIT_skilled) then set_perk_freq(4);
226224
end
227225

228226
procedure gecko_skinning begin
@@ -374,8 +372,7 @@ procedure UseObjOn_handler begin
374372
item := get_sfall_arg;
375373

376374
// Give 1 bottle cap when drinking a Nuka Cola :>
377-
if (obj_pid(item) == PID_NUKA_COLA) then
378-
item_caps_adjust(source, 1);
375+
if (obj_pid(item) == PID_NUKA_COLA) then item_caps_adjust(source, 1);
379376
end
380377

381378
procedure WithinPerception_handler begin

Fallout2/Fallout1in2/Mapper/source/scripts/headers/critpid.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
#define PID_MEAN_PIG_RAT (16777393)
188188
#define PID_FARMER_4 (16777394)
189189
#define PID_WORKER_3 (16777395)
190-
#define PID_MERCHANT_6 (16777396)
190+
#define PID_MERCHANT_6 (16777396) // Merchant PID that spawns with carvlead script in towns
191191
#define PID_GUARD_4 (16777397)
192192
#define PID_GLOWER (16777398)
193193
#define PID_MAD_GLOWING_ONE (16777399)

0 commit comments

Comments
 (0)