Skip to content

Commit

Permalink
wip: fix js
Browse files Browse the repository at this point in the history
  • Loading branch information
wighawag committed Sep 4, 2023
1 parent 0efc1d8 commit 6db1794
Show file tree
Hide file tree
Showing 3 changed files with 202 additions and 168 deletions.
8 changes: 4 additions & 4 deletions common/src/grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type Cell = {
lastEpochUpdate?: number;
epochWhenTokenIsAdded?: number;
delta?: number;
enemymask?: number;
enemyMap?: number;
};

type TmpCell = Cell & {
Expand Down Expand Up @@ -313,7 +313,7 @@ export function fromContractFullCellToCell(
color: cell.color,
life: cell.life,
delta: cell.delta,
enemymask: cell.enemymask,
enemyMap: cell.enemyMap,
owner:
cell.owner == zeroAddress
? undefined
Expand Down Expand Up @@ -341,7 +341,7 @@ export function fromContractFullCellToCell(
// y: 2,
// color: Color.Red,
// delta: 0,
// enemymask: 0,
// enemyMap: 0,
// epochWhenTokenIsAdded: 1,
// lastEpochUpdate: 1,
// life: 1,
Expand Down Expand Up @@ -383,7 +383,7 @@ export function fromContractFullCellToCell(
// y: 2,
// color: Color.Red,
// delta: 0,
// enemymask: 0,
// enemyMap: 0,
// epochWhenTokenIsAdded: 1,
// lastEpochUpdate: 1,
// life: 1,
Expand Down
Loading

0 comments on commit 6db1794

Please sign in to comment.