Skip to content

Commit

Permalink
♻️ rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Roms1383 committed Feb 22, 2023
1 parent c17a7ce commit 28c477b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions scripts/Addicted/Helper.reds
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ public class Helper {
public static func AppropriateHint(id: TweakDBID, threshold: Threshold, now: Float) -> ref<Hint> {
if Helper.IsSerious(threshold) {
let request: ref<Hint>;
let hint: ref<Hint>;
if Generic.IsInhaler(id) {
request = new CoughingHint();
hint = new CoughingHint();
}
// anabolic are also pills, but the opposite isn't true
let anabolic = Generic.IsAnabolic(id);
Expand All @@ -173,25 +173,25 @@ public class Helper {
}
if anabolic {
if above {
request = new VomitingHint();
hint = new VomitingHint();
}
request = new BreatheringHint();
hint = new BreatheringHint();
} else {
if above {
request = new VomitingHint();
hint = new VomitingHint();
}
request = new HeadAchingHint();
hint = new HeadAchingHint();
}
}
if Generic.IsInjector(id) {
request = new AchingHint();
hint = new AchingHint();
}
request.threshold = threshold;
let randtime = request.RandTime();
request.until = now + randtime;
request.times = request.InitialTimes();
E(s"packing appropriate request: until \(ToString(request.until)) (randtime \(ToString(randtime))), \(ToString(request.times)) time(s), threshold \(ToString(request.threshold)) (\(TDBID.ToStringDEBUG(id)))");
return request;
hint.threshold = threshold;
let randtime = hint.RandTime();
hint.until = now + randtime;
hint.times = hint.InitialTimes();
E(s"packing appropriate hint: until \(ToString(hint.until)) (randtime \(ToString(randtime))), \(ToString(hint.times)) time(s), threshold \(ToString(hint.threshold)) (\(TDBID.ToStringDEBUG(id)))");
return hint;
}
return null;
}
Expand Down

0 comments on commit 28c477b

Please sign in to comment.