Widget:tileSearch: Difference between revisions
Jump to navigation
Jump to search
Removed the divs from the allowed selector |
Fixed wrong counting system GRRRR |
||
Line 95: | Line 95: | ||
var arr = new Array(3); | var arr = new Array(3); | ||
arr[0] = new Array(3); | arr[0] = new Array(3); | ||
arr[0][ | arr[0][2] = row.data('tile1') == "1"; | ||
arr[0][1] = row.data('tile4') == "1"; | arr[0][1] = row.data('tile4') == "1"; | ||
arr[0][ | arr[0][0] = row.data('tile7') == "1"; | ||
arr[1] = new Array(3); | arr[1] = new Array(3); | ||
arr[1][ | arr[1][2] = row.data('tile2') == "1"; | ||
arr[1][1] = row.data('tile5') == "1"; | arr[1][1] = row.data('tile5') == "1"; | ||
arr[1][ | arr[1][0] = row.data('tile8') == "1"; | ||
arr[2] = new Array(3); | arr[2] = new Array(3); | ||
arr[2][ | arr[2][2] = row.data('tile3') == "1"; | ||
arr[2][1] = row.data('tile6') == "1"; | arr[2][1] = row.data('tile6') == "1"; | ||
arr[2][ | arr[2][0] = row.data('tile9') == "1"; | ||
return arr; | return arr; | ||
} | } | ||
Line 142: | Line 142: | ||
function getDollOffset(row) { | function getDollOffset(row) { | ||
if (row.data('tile2') == "0") return { x: -1, y: | if (row.data('tile2') == "0") return { x: -1, y: -2 }; | ||
if (row.data('tile3') == "0") return { x: -2, y: | if (row.data('tile3') == "0") return { x: -2, y: -2 }; | ||
if (row.data('tile4') == "0") return { x: 0, y: -1 }; | if (row.data('tile4') == "0") return { x: 0, y: -1 }; | ||
if (row.data('tile5') == "0") return { x: -1, y: -1 }; | if (row.data('tile5') == "0") return { x: -1, y: -1 }; | ||
if (row.data('tile6') == "0") return { x: -2, y: -1 }; | if (row.data('tile6') == "0") return { x: -2, y: -1 }; | ||
if (row.data('tile7') == "0") return { x: 0, y: | if (row.data('tile7') == "0") return { x: 0, y: 0 }; | ||
if (row.data('tile8') == "0") return { x: -1, y: | if (row.data('tile8') == "0") return { x: -1, y: 0 }; | ||
if (row.data('tile9') == "0") return { x: -2, y: | if (row.data('tile9') == "0") return { x: -2, y: 0 }; | ||
return { x: 0, y: | return { x: 0, y: -2 }; | ||
} | } | ||
</script> | </script> |
Revision as of 23:12, 7 May 2018
The doll should buff these fields:
The doll may stand on these fields: