getting rid of small weird changes

This commit is contained in:
Isadora White 2025-03-03 17:35:47 -08:00
parent 932798195f
commit 8e08c025ae
2 changed files with 0 additions and 9 deletions

View file

@ -130,7 +130,6 @@ export class Agent {
//wait for a bit so inventory is cleared
await new Promise((resolve) => setTimeout(resolve, 500));
console.log(this.task && "agent_number" in this.task && this.task.agent_number > 1);
if (this.task && "agent_number" in this.task && this.task.agent_number > 1) {
var initial_inventory = this.task.initial_inventory[this.name];
console.log("Initial inventory:", initial_inventory);
@ -218,11 +217,6 @@ export class Agent {
this._setupEventHandlers(save_data, init_message);
this.startEvents();
console.log("HERE IS THE LOGGED TASK")
console.log(this.task)
this.task.initBotTask();

View file

@ -4,7 +4,6 @@ import { getPosition } from './library/world.js';
import settings from '../../settings.js';
import { Vec3 } from 'vec3';
import { ConstructionTaskValidator, Blueprint } from './construction_tasks.js';
import {autoBuild, autoDelete} from "../../test/test_blueprint_layout.js";
import { CookingTaskInitiator } from './task_types/cooking_tasks.js';
//todo: modify validator code to return an object with valid and score -> do more testing hahah
@ -179,7 +178,6 @@ export class Task {
this.blocked_actions.push('!endGoal');
if (this.conversation)
this.blocked_actions.push('!endConversation');
console.log('Task loaded:', this.data);
}
this.name = this.agent.name;
@ -216,7 +214,6 @@ export class Task {
const tasksFile = readFileSync(task_path, 'utf8');
const tasks = JSON.parse(tasksFile);
let task = tasks[task_id];
console.log('Loaded task:', task);
if (!task) {
throw new Error(`Task ${task_id} not found`);
}