<commit_before>//TODO have easy memory access and structure here

var defaultCreep = {
  role:"none",
  path:null,

};
var defaultRoom = {
  roles: {
      numCreeps:0,
      numHarvesters:0,
      maxHarvesters:1,
      numUpgraders:0,
      maxUpgraders:0,
      numBuilders:0,
      maxBuilders:1,
      numRepair:0,
      maxRepair:1,
      numArchitects:0,
      betterHarvesters1:0,
      betterHarvesters2:0,
      numMiners:0,
      maxMiners:0,
      numHaulers:0,
      maxHaulers:1,
      numFeeders:0,
      maxFeeders:1,
      numGeo:0,
      maxGeo:1,
      numGeoH:0,
      maxGeoH:0,
      numMerchant:0,
      maxMerchant:0,
    },
  spawnQ:[],
  conservation: false,
  fortify: false,
  towers:[],
  sourceIDs:[],
  initialized:false, //Set to true when init is run

};
var defaultTower = {
  target:null,
  mode:"attack"
};

var modMemory = {

  init:function(){  }, //TODO init whole structure with global info
  initRoom:function(roomName){
    Memory.rooms[roomName] = defaultRoom;
    //TODO any other things go here
    Memory.rooms[roomName].initialized = true;
  },
  initCreep:function(creep, creepType){}, //TODO init creep with data currently down in modSpawning
  initTower:function(tower){
    var roomName = tower.room.name;
    var towerID = tower.id;
    Memory.rooms[roomName].towers[tower.id] = defaultTower;
  },
  getSpawnQ:function(roomName){
    return Memory.rooms[roomName].spawnQ;
  },
  changeCreepNum:function(roomName,creepType,num,set){}, //creepType - creepJob to change, num, num to add or set to, set - bool, true to set, false to add

};

module.exports = modMemory;
<commit_msg>Modified init functinos more<commit_after>//TODO have easy memory access and structure here

var defaultCreep = {
  role:"none",
  path:null,

};
var defaultRoom = {
  roles: {
      numCreeps:0,
      numHarvesters:0,
      maxHarvesters:1,
      numUpgraders:0,
      maxUpgraders:0,
      numBuilders:0,
      maxBuilders:1,
      numRepair:0,
      maxRepair:1,
      numArchitects:0,
      betterHarvesters1:0,
      betterHarvesters2:0,
      numMiners:0,
      maxMiners:0,
      numHaulers:0,
      maxHaulers:1,
      numFeeders:0,
      maxFeeders:1,
      numGeo:0,
      maxGeo:1,
      numGeoH:0,
      maxGeoH:0,
      numMerchant:0,
      maxMerchant:0,
    },
  spawnQ:[],
  conservation: false,
  fortify: false,
  towers:[],
  sourceIDs:[],
  initialized:false, //Set to true when init is run

};
var defaultTower = {
  target:null,
  mode:"attack"
};

var modMemory = {

  init:function(){
    for(var roomName in Game.rooms){
      this.initRoom(roomName);
    }
    Memory.initialized = true;
  },
  initRoom:function(roomName){
    Memory.rooms[roomName] = defaultRoom;
    //TODO any other things go here (like Tower init)
    Memory.rooms[roomName].initialized = true;
  },
  initCreep:function(creep, creepType){}, //TODO init creep with data currently down in modSpawning
  initTower:function(tower){
    var roomName = tower.room.name;
    var towerID = tower.id;
    Memory.rooms[roomName].towers[tower.id] = defaultTower;
  },
  getSpawnQ:function(roomName){
    return Memory.rooms[roomName].spawnQ;
  },
  changeCreepNum:function(roomName,creepType,num,set){}, //creepType - creepJob to change, num, num to add or set to, set - bool, true to set, false to add

};

module.exports = modMemory;

{'fraction_non_alphanumeric': 0.11926058437686345, 'fraction_numerical': 0.015503875968992248, 'mean_word_length': 3.047044632086852, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1497984', 'n_tokens_mistral': 1214, 'n_tokens_neox': 1210, 'n_words': 254}