public/js-roguelike-skeleton/src/lighting-rot.js
function(x, y){
            var tile = this.game.map.get(x, y);

            if(!tile){
                return 0;
            }

            if(tile.lightingReflectivity){
                return tile.lightingReflectivity;
            }

            if(tile.blocksLos){
                return this.defaultWallReflectivity;
            } else {
                return this.defaultFloorReflectivity;
            }
        }
function(x, y){
            var tile = this.game.map.get(x, y);

            if(!tile){
                return 0;
            }

            if(tile.lightingReflectivity){
                return tile.lightingReflectivity;
            }

            if(tile.blocksLos){
                return this.defaultWallReflectivity;
            } else {
                return this.defaultFloorReflectivity;
            }
        }
function ( x , y ) { var tile = this . game . map . get ( x , y ) ; if ( ! tile ) { return 0 ; } if ( tile . lightingReflectivity ) { return tile . lightingReflectivity ; } if ( tile . blocksLos ) { return this . defaultWallReflectivity ; } else { return this . defaultFloorReflectivity ; } }
Returns the reflectivity value of a tile
@method getTileReflectivity
@param {Number} x - Map tile x coord.
@param {Number} y - Map tile y coord.
Returns the reflectivity value of a tile