Skip to content

Commit

Permalink
epai17: move script_overrides to repair proc, so that it's called by …
Browse files Browse the repository at this point in the history
…use_skill too, ref #325
  • Loading branch information
burner1024 committed Jan 13, 2025
1 parent 3ed9c9e commit b93e7d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts_src/epa/epai17.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ end
* Fixes the terminal if `skill_level >= MIN_REPAIR_LEVEL`
*/
procedure repair_self(variable skill_level) begin
script_overrides;
if (skill_level >= MIN_REPAIR_LEVEL) then begin
if (local_var(LVAR_Problem) == 1) then begin
set_global_var(GVAR_MAGNETIC_FIELD, 1);
Expand Down Expand Up @@ -71,7 +72,6 @@ procedure use_obj_on_p_proc begin
variable bonus = 0;
if (tool == PID_MULTI_TOOL) then bonus = 20;
if (tool == PID_SUPER_TOOL_KIT) then bonus = 40;
script_overrides;
call repair_self(skill + bonus);
end
end
Expand Down

0 comments on commit b93e7d7

Please sign in to comment.