Skip to content

Commit e4f4159

Browse files
committed
Check Repair skill instead of Speech in robodog repair routine, fixes #193.
1 parent d35ea67 commit e4f4159

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

scripts_src/ncr/scrobo.ssl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,17 @@ procedure Heal_Robo(variable bonus);
106106
#define LVAR_WAITING (9)
107107
#define LVAR_FOLLOW_DISTANCE (10)
108108
#define LVAR_TEAM (11)
109+
110+
/**
111+
* Counter of "healing" (repair) usage.
112+
* Each use increases by 50, every passing hour decreases by 50.
113+
* More advanced Repair skill allows to use Repair more often.
114+
*/
109115
#define LVAR_Heal_Count (12)
116+
/**
117+
* Time counter to keep track when Robodog was last repaired.
118+
* Decreases LVAR_Heal_Count when hit (every hour).
119+
*/
110120
#define LVAR_Heal_Dec_Time (13)
111121

112122
/* Imported variables from the Map scripts. These should only be
@@ -486,7 +496,7 @@ procedure Node1100 begin // rejoin party
486496
end
487497

488498
procedure Heal_Robo(variable bonus) begin
489-
if (local_var(LVAR_Heal_Count) < has_skill(source_obj, SKILL_SPEECH)) then begin
499+
if (local_var(LVAR_Heal_Count) < has_skill(source_obj, SKILL_REPAIR)) then begin
490500
if (skill_success(source_obj, SKILL_REPAIR, bonus)) then begin
491501
critter_heal(self_obj, Random(10, 40));
492502
set_local_var(LVAR_Heal_Count, local_var(LVAR_Heal_Count) + 50);

0 commit comments

Comments
 (0)