diff --git a/scripts_src/ncr/scrobo.ssl b/scripts_src/ncr/scrobo.ssl index e655e2f79..6de0bbbd7 100644 --- a/scripts_src/ncr/scrobo.ssl +++ b/scripts_src/ncr/scrobo.ssl @@ -106,7 +106,17 @@ procedure Heal_Robo(variable bonus); #define LVAR_WAITING (9) #define LVAR_FOLLOW_DISTANCE (10) #define LVAR_TEAM (11) + +/** + * Counter of "healing" (repair) usage. + * Each use increases by 50, every passing hour decreases by 50. + * More advanced Repair skill allows to use Repair more often. + */ #define LVAR_Heal_Count (12) +/** + * Time counter to keep track when Robodog was last repaired. + * Decreases LVAR_Heal_Count when hit (every hour). + */ #define LVAR_Heal_Dec_Time (13) /* Imported variables from the Map scripts. These should only be @@ -480,7 +490,7 @@ procedure Node1100 begin // rejoin party end procedure Heal_Robo(variable bonus) begin - if (local_var(LVAR_Heal_Count) < has_skill(source_obj, SKILL_SPEECH)) then begin + if (local_var(LVAR_Heal_Count) < has_skill(source_obj, SKILL_REPAIR)) then begin if (skill_success(source_obj, SKILL_REPAIR, bonus)) then begin critter_heal(self_obj, Random(10, 40)); set_local_var(LVAR_Heal_Count, local_var(LVAR_Heal_Count) + 50);