-
Notifications
You must be signed in to change notification settings - Fork 124
Conversation
This is the first step towards a personal top10/logbook. The array is not saved in storage yet.
This stores scores in an array and shows an additional overlay; some functions were cleaned up as well. BTW: I changed the 'colour' to 'color', sorry Britain.
var original_redraw = window.redraw.toString(); | ||
var new_redraw = original_redraw.replace( | ||
'gsc!=f&&(gsc<f?(gsc+=2E-4,gsc>=f&&(gsc=f)):(gsc-=2E-4,gsc<=f&&(gsc=f)))', ''); | ||
window.redraw = new Function(new_redraw.substring( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Function constructor is eval.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not this again -_- (ignore)
Giving a treat to the Hound.
} | ||
behaviorData: { | ||
foodTarget: 0, | ||
followTime :0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra space after key "followTime".
Missing space before value for key "followTime".
//Canvas Coordinates | ||
// X = 0 -> CanvasWidth | ||
// Y = 0 -> CanvasHeight | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing spaces not allowed.
Adding newline at the end.
|
||
canvas.drawLine2(canvasPosA.x, canvasPosA.y, canvasPosB.x, canvasPosB.y, 2, 'yellow'); | ||
canvas.drawLine(canvasPosA, canvasPosB, 'yellow', 2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"canvas" is not defined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ignore, canvas is a module in bot.user.js. Hound does not know this.
More trailing spaces, damnit np++.
bot.isBotRunning = false; | ||
// Update the HUD | ||
userInterface.onPrefChange(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"userInterface" was used before it was defined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ignore, just the arrangement of modules.
Should be ok now.
I think I can fix this module issue... |
This is amazing! |
Lol, I love it how hound keeps finding errors that are blatantly not errors at all... |
Description
Motivation and Context
Types of changes
Checklist: