Commit b714452 1 parent 3c7422d commit b714452 Copy full SHA for b714452
File tree 4 files changed +12
-9
lines changed
Fallout2/Fallout1in2/Mapper/source/scripts
4 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -575,7 +575,10 @@ procedure Harold45 begin
575
575
end
576
576
577
577
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
579
582
Reply(233);
580
583
NOption(234, Harold49, 4);
581
584
end
Original file line number Diff line number Diff line change @@ -644,7 +644,10 @@ procedure Beth45 begin
644
644
end
645
645
646
646
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
648
651
Reply(240);
649
652
NOption(241, Beth47, 4);
650
653
BOption(242, Beth49, 4);
Original file line number Diff line number Diff line change @@ -129,8 +129,7 @@ procedure GameModeChange_handler begin
129
129
call skilled;
130
130
131
131
// 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;
134
133
135
134
// Activate special radiation death if > 1000 rem. See data/enddeath.txt
136
135
set_global_var(GVAR_SPECIAL_RADIATION_DEATH, dude_rads);
221
220
222
221
procedure skilled begin
223
222
// 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);
226
224
end
227
225
228
226
procedure gecko_skinning begin
@@ -374,8 +372,7 @@ procedure UseObjOn_handler begin
374
372
item := get_sfall_arg;
375
373
376
374
// 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);
379
376
end
380
377
381
378
procedure WithinPerception_handler begin
Original file line number Diff line number Diff line change 187
187
#define PID_MEAN_PIG_RAT (16777393)
188
188
#define PID_FARMER_4 (16777394)
189
189
#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
191
191
#define PID_GUARD_4 (16777397)
192
192
#define PID_GLOWER (16777398)
193
193
#define PID_MAD_GLOWING_ONE (16777399)
You can’t perform that action at this time.
0 commit comments