Spaces:
Sleeping
Sleeping
test
Browse files
patches/convex/agent/conversation.ts
CHANGED
|
@@ -262,6 +262,7 @@ export const queryPromptData = internalQuery({
|
|
| 262 |
if (!playerDescription) {
|
| 263 |
throw new Error(`Player description for ${args.playerId} not found`);
|
| 264 |
}
|
|
|
|
| 265 |
const otherPlayer = world.players.find((p) => p.id === args.otherPlayerId);
|
| 266 |
if (!otherPlayer) {
|
| 267 |
throw new Error(`Player ${args.otherPlayerId} not found`);
|
|
|
|
| 262 |
if (!playerDescription) {
|
| 263 |
throw new Error(`Player description for ${args.playerId} not found`);
|
| 264 |
}
|
| 265 |
+
|
| 266 |
const otherPlayer = world.players.find((p) => p.id === args.otherPlayerId);
|
| 267 |
if (!otherPlayer) {
|
| 268 |
throw new Error(`Player ${args.otherPlayerId} not found`);
|
patches/convex/aiTown/player.ts
CHANGED
|
@@ -225,6 +225,7 @@ export class Player {
|
|
| 225 |
speed: 0,
|
| 226 |
}),
|
| 227 |
);
|
|
|
|
| 228 |
game.playerDescriptions.set(
|
| 229 |
playerId,
|
| 230 |
new PlayerDescription({
|
|
|
|
| 225 |
speed: 0,
|
| 226 |
}),
|
| 227 |
);
|
| 228 |
+
console.log("role",role)
|
| 229 |
game.playerDescriptions.set(
|
| 230 |
playerId,
|
| 231 |
new PlayerDescription({
|