Skip to content

Commit

Permalink
Update hoc22.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
neonerz committed Jun 8, 2022
1 parent e2b1f74 commit f0c5131
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions hoc22.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const placeBlockMechanicsCommunicationPos = world(0, 64, 0)
const weightDropPosition = world(27, 27, 33)
const communicationsTimeout = 100
const chessTimeout = 500
const plateTimeout = 500
const teleportTimeout = 750

const directions = [
Expand Down Expand Up @@ -220,31 +221,31 @@ namespace hoc22 {
//% block="swap red side"
export function dinnerTableSwapRed(): void {
blocks.place(Block.OrangeConcrete, placeBlockMechanicsCommunicationPos)
loops.pause(communicationsTimeout)
loops.pause(plateTimeout)
}
/**
* Dinner Table Swap Green
*/
//% block="swap green side"
export function dinnerTableSwapGreen(): void {
blocks.place(Block.YellowConcrete, placeBlockMechanicsCommunicationPos)
loops.pause(communicationsTimeout)
loops.pause(plateTimeout)
}
/**
* Dinner Table Swap Blue
*/
//% block="swap blue side"
export function dinnerTableSwapBlue(): void {
blocks.place(Block.LightBlueConcrete, placeBlockMechanicsCommunicationPos)
loops.pause(communicationsTimeout)
loops.pause(plateTimeout)
}
/**
* Dinner Table Swap Yellow
*/
//% block="swap yellow side"
export function dinnerTableSwapYellow(): void {
blocks.place(Block.MagentaConcrete, placeBlockMechanicsCommunicationPos)
loops.pause(communicationsTimeout)
loops.pause(plateTimeout)
}

/**
Expand Down

0 comments on commit f0c5131

Please sign in to comment.