Skip to content

Commit

Permalink
Use stat rolls for is_critical checks, ref BGforgeNet/Fallout2_Unoffi…
Browse files Browse the repository at this point in the history
  • Loading branch information
burner1024 committed Mar 31, 2024
1 parent 79680d3 commit fa6fb1d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts_src/klamath/kscorveg.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ procedure repair_it begin
end

procedure zamin_it begin
per_check:=do_check(dude_obj, STAT_pe, 0);
per_check = roll_vs_stat(dude_obj, STAT_pe, 0);
if (local_var(LVAR_Part_Given) == 0) then begin //added check by killap
if (is_success(per_check)) then begin
if (is_critical(per_check)) then
Expand Down
2 changes: 1 addition & 1 deletion scripts_src/navarro/cimine.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ procedure spatial_p_proc begin
if (Range_Mod > PERCEPTION_BONUS) then
Range_Mod:= PERCEPTION_BONUS;

Detection_Roll:=do_check(source_obj,STAT_pe,Range_Mod);
Detection_Roll = roll_vs_stat(source_obj, STAT_pe, Range_Mod);

if (is_success(Detection_Roll)) then begin

Expand Down
2 changes: 1 addition & 1 deletion scripts_src/raiders/iimine.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ procedure spatial_p_proc begin
if (Range_Mod > PERCEPTION_BONUS) then
Range_Mod:= PERCEPTION_BONUS;

Detection_Roll:=do_check(source_obj,STAT_pe,Range_Mod);
Detection_Roll = roll_vs_stat(source_obj, STAT_pe, Range_Mod);

if (is_success(Detection_Roll)) then begin

Expand Down
2 changes: 1 addition & 1 deletion scripts_src/raiders/iipit.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ procedure spatial_p_proc begin
if (Range_Mod > PERCEPTION_BONUS) then
Range_Mod:= PERCEPTION_BONUS;

Detection_Roll:=do_check(source_obj,STAT_pe,Range_Mod);
Detection_Roll = roll_vs_stat(source_obj, STAT_pe, Range_Mod);

if (is_success(Detection_Roll)) then begin

Expand Down
2 changes: 1 addition & 1 deletion scripts_src/redding/rtlndmin.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ procedure Trap_Detection begin
if (Range_Mod > PERCEPTION_BONUS) then
Range_Mod:= PERCEPTION_BONUS;

Detection_Roll:=do_check(source_obj,STAT_pe,Range_Mod);
Detection_Roll = roll_vs_stat(source_obj, STAT_pe, Range_Mod);

if (is_success(Detection_Roll)) then begin

Expand Down
2 changes: 1 addition & 1 deletion scripts_src/sierra/wtlndmin.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ procedure Trap_Detection begin
if (Range_Mod > PERCEPTION_BONUS) then
Range_Mod:= PERCEPTION_BONUS;

Detection_Roll:=do_check(source_obj,STAT_pe,Range_Mod);
Detection_Roll = roll_vs_stat(source_obj, STAT_pe, Range_Mod);

if (is_success(Detection_Roll)) then begin

Expand Down

0 comments on commit fa6fb1d

Please sign in to comment.