Skip to content

Commit

Permalink
Replace stat checks with rolls where necessary, actual fix for #112.
Browse files Browse the repository at this point in the history
  • Loading branch information
burner1024 committed Mar 31, 2024
1 parent 456e4e7 commit 26823b9
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 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
2 changes: 1 addition & 1 deletion scripts_src/template/spear_trap.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,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/template/sprtrp0.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,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/template/wtpltrp.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,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

0 comments on commit 26823b9

Please sign in to comment.