Hacker News new | ask | show | jobs
by jacktoole1 4449 days ago
nice!

similarly,

    var oldPlaceObject = map.placeObject;
    var newPlaceObject = function(x, y, type) {
    	if (type !== 'block') {
        	map.placeObject = oldPlaceObject;
        	map.placeObject(x, y, type);
            map.placeObject = newPlaceObject;
        }
    };
    map.placeObject = newPlaceObject;
was my solution to multiple levels ;).
1 comments

I also had to overwrite the map.verifyXitems (or whatever it was) to return true regardless.