Possible solution for , needs testing. Added crossbow bolts to missile orientation display logic.

This commit is contained in:
Nick Winter 2015-08-09 14:10:32 -07:00
parent cd0c252b14
commit 1d81133f24
2 changed files with 3 additions and 2 deletions
app
assets/javascripts/workers
lib/surface

View file

@ -85,7 +85,8 @@ var ensureLanguagesImportedFromUserCodeMap = function (userCodeMap) {
var restricted = ["XMLHttpRequest", "Worker"];
if (!self.navigator || !(self.navigator.userAgent.indexOf('MSIE') > 0) &&
!self.navigator.userAgent.match(/Trident.*rv\:11\./)) {
!self.navigator.userAgent.match(/Trident.*rv\:11\./) &&
!self.navigator.userAgent.match(/Edge/)) {
// Can't restrict 'importScripts' in IE11, skip for all IE versions
restricted.push("importScripts");
}

View file

@ -61,7 +61,7 @@ module.exports = Lank = class Lank extends CocoClass
constructor: (@thangType, options) ->
super()
spriteName = @thangType.get('name')
@isMissile = /(Missile|Arrow|Spear)/.test(spriteName) and not /(Tower|Charge)/.test(spriteName)
@isMissile = /(Missile|Arrow|Spear|Bolt)/.test(spriteName) and not /(Tower|Charge)/.test(spriteName)
@options = _.extend($.extend(true, {}, @options), options)
@setThang @options.thang
if @thang?