File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff 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
486496end
487497
488498procedure 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);
You can’t perform that action at this time.
0 commit comments