Fixed major issue with user being undefined on battle pairing, reduced sunlight effect by 40%, reduced "a high level match is being played" spam by 75%
|
@ -133,6 +133,7 @@ $side-width = ($battle-width - $screen-width) / 2
|
||||||
&.sand
|
&.sand
|
||||||
background linear-gradient(top, rgba(128, 64, 0, .3), rgba(64, 32, 48, .5))
|
background linear-gradient(top, rgba(128, 64, 0, .3), rgba(64, 32, 48, .5))
|
||||||
&.sun
|
&.sun
|
||||||
|
opacity 0.6!important
|
||||||
background rgba(255, 196, 64, .3)
|
background rgba(255, 196, 64, .3)
|
||||||
|
|
||||||
.battle_pane
|
.battle_pane
|
||||||
|
|
|
@ -268,7 +268,7 @@ class @Pokemon extends Backbone.Model
|
||||||
|
|
||||||
slugSpecies = slugify(@get('species'))
|
slugSpecies = slugify(@get('species'))
|
||||||
slugForme = slugify(@get('forme'))
|
slugForme = slugify(@get('forme'))
|
||||||
"//pokebattle.com/dex/pokemon/#{slugSpecies}/#{slugForme}"
|
"//wiki.p-insurgence.com/#{slugSpecies}"
|
||||||
|
|
||||||
getIllu: ->
|
getIllu: ->
|
||||||
@get('illu')
|
@get('illu')
|
||||||
|
|
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 2.0 KiB |
|
@ -327,7 +327,7 @@ h1{font-family:"PT Sans Narrow","Helvetica Neue",sans-serif;font-size:2em;font-w
|
||||||
.battle .battle_overlays .battle_overlay.weather.rain{background:rgba(0,48,196,0.3)}
|
.battle .battle_overlays .battle_overlay.weather.rain{background:rgba(0,48,196,0.3)}
|
||||||
.battle .battle_overlays .battle_overlay.weather.hail{background:rgba(128,255,255,0.3)}
|
.battle .battle_overlays .battle_overlay.weather.hail{background:rgba(128,255,255,0.3)}
|
||||||
.battle .battle_overlays .battle_overlay.weather.sand{background:-webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(128,64,0,0.3)), color-stop(1, rgba(64,32,48,0.5)));background:-webkit-linear-gradient(top, rgba(128,64,0,0.3) 0, rgba(64,32,48,0.5) 100%);background:-moz-linear-gradient(top, rgba(128,64,0,0.3) 0, rgba(64,32,48,0.5) 100%);background:-o-linear-gradient(top, rgba(128,64,0,0.3) 0, rgba(64,32,48,0.5) 100%);background:-ms-linear-gradient(top, rgba(128,64,0,0.3) 0, rgba(64,32,48,0.5) 100%);background:linear-gradient(top, rgba(128,64,0,0.3) 0, rgba(64,32,48,0.5) 100%)}
|
.battle .battle_overlays .battle_overlay.weather.sand{background:-webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(128,64,0,0.3)), color-stop(1, rgba(64,32,48,0.5)));background:-webkit-linear-gradient(top, rgba(128,64,0,0.3) 0, rgba(64,32,48,0.5) 100%);background:-moz-linear-gradient(top, rgba(128,64,0,0.3) 0, rgba(64,32,48,0.5) 100%);background:-o-linear-gradient(top, rgba(128,64,0,0.3) 0, rgba(64,32,48,0.5) 100%);background:-ms-linear-gradient(top, rgba(128,64,0,0.3) 0, rgba(64,32,48,0.5) 100%);background:linear-gradient(top, rgba(128,64,0,0.3) 0, rgba(64,32,48,0.5) 100%)}
|
||||||
.battle .battle_overlays .battle_overlay.weather.sun{background:rgba(255,196,64,0.3)}
|
.battle .battle_overlays .battle_overlay.weather.sun{opacity:.6 !important;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)" !important;filter:alpha(opacity=60) !important;background:rgba(255,196,64,0.3)}
|
||||||
.battle .battle_pane{position:absolute;width:400px;height:300px;top:0;left:100px;}
|
.battle .battle_pane{position:absolute;width:400px;height:300px;top:0;left:100px;}
|
||||||
.battle .battle_pane .pokemon.bottom .pokemon-info{bottom:35%;left:200px}
|
.battle .battle_pane .pokemon.bottom .pokemon-info{bottom:35%;left:200px}
|
||||||
.battle .battle_pane .pokemon.bottom .sprite.fade{position:absolute;left:-20px;opacity:.3;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";filter:alpha(opacity=30)}
|
.battle .battle_pane .pokemon.bottom .sprite.fade{position:absolute;left:-20px;opacity:.3;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";filter:alpha(opacity=30)}
|
||||||
|
|
|
@ -1863,7 +1863,7 @@
|
||||||
};
|
};
|
||||||
slugSpecies = slugify(this.get('species'));
|
slugSpecies = slugify(this.get('species'));
|
||||||
slugForme = slugify(this.get('forme'));
|
slugForme = slugify(this.get('forme'));
|
||||||
return "//pokebattle.com/dex/pokemon/" + slugSpecies + "/" + slugForme;
|
return "//wiki.p-insurgence.com/" + slugSpecies;
|
||||||
};
|
};
|
||||||
|
|
||||||
Pokemon.prototype.getIllu = function() {
|
Pokemon.prototype.getIllu = function() {
|
||||||
|
|
|
@ -1863,7 +1863,7 @@
|
||||||
};
|
};
|
||||||
slugSpecies = slugify(this.get('species'));
|
slugSpecies = slugify(this.get('species'));
|
||||||
slugForme = slugify(this.get('forme'));
|
slugForme = slugify(this.get('forme'));
|
||||||
return "//pokebattle.com/dex/pokemon/" + slugSpecies + "/" + slugForme;
|
return "//wiki.p-insurgence.com/" + slugSpecies;
|
||||||
};
|
};
|
||||||
|
|
||||||
Pokemon.prototype.getIllu = function() {
|
Pokemon.prototype.getIllu = function() {
|
||||||
|
|
|
@ -21,7 +21,7 @@ replays = require('./replays')
|
||||||
modify = require('./modify')
|
modify = require('./modify')
|
||||||
|
|
||||||
MAX_MESSAGE_LENGTH = 250
|
MAX_MESSAGE_LENGTH = 250
|
||||||
MAX_RANK_DISPLAYED = 100
|
MAX_RANK_DISPLAYED = 25
|
||||||
|
|
||||||
# A MD5 hash of all the JavaScript files used by the client. This is passed to
|
# A MD5 hash of all the JavaScript files used by the client. This is passed to
|
||||||
# each new connection via the .jade template, and when the client connects. If
|
# each new connection via the .jade template, and when the client connects. If
|
||||||
|
|
|
@ -306,20 +306,21 @@ class @BattleServer
|
||||||
# Add user to spectators
|
# Add user to spectators
|
||||||
# TODO: player.id should be using player.name, but alts present a problem.
|
# TODO: player.id should be using player.name, but alts present a problem.
|
||||||
user = @users.get(player.id)
|
user = @users.get(player.id)
|
||||||
battle.add(spark) for spark in user.sparks
|
if typeof user != 'undefined'
|
||||||
|
battle.add(spark) for spark in user.sparks
|
||||||
|
|
||||||
# Add/remove player ids to/from user battles
|
# Add/remove player ids to/from user battles
|
||||||
@userBattles[player.id] ?= {}
|
@userBattles[player.id] ?= {}
|
||||||
@userBattles[player.id][battleId] = true
|
@userBattles[player.id][battleId] = true
|
||||||
|
|
||||||
# Add the player to the list if its not an alt
|
# Add the player to the list if its not an alt
|
||||||
if player.id == player.ratingKey # hacky - but no alternative right now
|
if player.id == player.ratingKey # hacky - but no alternative right now
|
||||||
@visibleUserBattles[player.id] ?= {}
|
@visibleUserBattles[player.id] ?= {}
|
||||||
@visibleUserBattles[player.id][battleId] = true
|
@visibleUserBattles[player.id][battleId] = true
|
||||||
|
|
||||||
battle.once 'end', @removeUserBattle.bind(this, player.id, player.name, battleId)
|
battle.once 'end', @removeUserBattle.bind(this, player.id, player.name, battleId)
|
||||||
|
|
||||||
battle.once 'expire', @removeBattle.bind(this, battleId)
|
battle.once 'expire', @removeBattle.bind(this, battleId)
|
||||||
|
|
||||||
# Add the battle to the achievements system
|
# Add the battle to the achievements system
|
||||||
# Uneligible battles are ignored by this function
|
# Uneligible battles are ignored by this function
|
||||||
|
|