This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<div style="position: relative"> | |
<img src="https://i.imgur.com/4yFmNEI.jpg"> | |
<div style="position: absolute; top: 20; left: 25"> | |
<font size="5" color="white">Jake Newport</font> | |
<br> | |
<br> | |
<font size="3" color="white">[email protected]</font> | |
<br> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Module code goes here. Use 'module.exports' to export things: | |
* module.exports = 'a thing'; | |
* | |
* You can import it from another modules like this: | |
* var mod = require('Profiler'); // -> 'a thing' | |
*/ | |
var Profiles_open = {} | |
var Profiles_start = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getCachedPath(originPosition, destinationPosition) | |
{ | |
var originString = originPosition.roomName + "x" + originPosition.x + "y" + originPosition.y; | |
var destinationString = destinationPosition.roomName + "x" + destinationPosition.x + "y" + destinationPosition.y; | |
if(Memory.pathCache === undefined) | |
{ | |
Memory.pathCache = {}; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.reversePath = function(path) | |
{ | |
var reversedPath = []; | |
for(var i = 0; i < path.length; i++) | |
{ | |
var currentStep = path[i]; | |
var dx = currentStep.dx * -1; | |
var dy = currentStep.dy * -1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function (firstArg, secondArg) { | |
var $__2 = utils.fetchXYArguments(firstArg, secondArg, globals), | |
x = $__2[0], | |
y = $__2[1], | |
roomName = $__2[2]; | |
return x == this.x && y == this.y && (!roomName || roomName == this.roomName); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Room.prototype.getLargestEnergyPile = function() | |
{ | |
var droppedEnergyArray = this.find(FIND_DROPPED_ENERGY); | |
//console.log(droppedEnergyArray.length); | |
if(droppedEnergyArray.length === 0) return null; | |
var largestPile = droppedEnergyArray[0]; | |
for(var i = 0; i < droppedEnergyArray.length; i++) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Module code goes here. Use 'module.exports' to export things: | |
* module.exports = 'a thing'; | |
* | |
* You can import it from another modules like this: | |
* var mod = require('creepmanager'); // -> 'a thing' | |
*/ | |
//Need to be able to state "I want x of type x, y of type y, and z of type z" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var profiler = require('profiler'); | |
var AGGRESSION_COOLDOWN = 1800; //Wait 10 minutes before trying to go back on an aggressed route | |
var SHOULD_BE_COMPLAINING = false; | |
//Have a function to allow adding a room position for a source as a mining target to memory. Contains room, coords, count for miners to send, and assaulted flag. It'll be under Memory.remoteSources[roomx#y#] | |
//require('remoteMiner').addRemoteMiningTarget('XXXX', 30, 35, 'W2N1', 23, 32, 2); | |
exports.addRemoteMiningTarget = function(sourceRoomName, source_x, source_y, storageRoomName, storage_x, storage_y, minerCount) | |
{ | |
//memory.remoteminingtargets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TypeError: endNodes.objects.forEach is not a function | |
at RoomPosition.findClosest (/opt/engine/dist/game/rooms.js:771:24) | |
at getNonEmptyContainer (roadman:55:26) | |
at getMoreEnergy (roadman:22:22) | |
at module.exports (roadman:8:9) | |
at main:66:9 | |
function getNonEmptyContainer() | |
{ | |
var nonFullArray = creep.room.getNonEmptyContainerArray(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var AGGRESSION_COOLDOWN = 600; //Wait 10 minutes before trying to go back on an aggressed route | |
//Have a function to allow adding a room position for a source as a mining target to memory. Contains room, coords, count for miners to send, and assaulted flag. It'll be under Memory.remoteSources[roomx#y#] | |
//require('remoteMiner').addRemoteMiningTarget('XXXX', 30, 35, 'W2N1', 23, 32, 2); | |
exports.addRemoteMiningTarget = function(sourceRoomName, source_x, source_y, storageRoomName, storage_x, storage_y, minerCount) | |
{ | |
//memory.remoteminingtargets | |
var remoteMiningTargets = Memory.remoteMiningTargets; | |
if(remoteMiningTargets === undefined) |
NewerOlder