Explorar el Código

Removed testing code that was left in

tags/v0.1.2^2
Big Bad Waffle hace 7 años
padre
commit
63b2f23ec1
Se han modificado 3 ficheros con 2 adiciones y 3 borrados
  1. +1
    -1
      src/server/config/spells/spellFireblast.js
  2. +1
    -1
      src/server/config/spellsConfig.js
  3. +0
    -1
      src/server/world/physics.js

+ 1
- 1
src/server/config/spells/spellFireblast.js Ver fichero

@@ -83,7 +83,7 @@ define([
dx = ~~(dx / Math.abs(dx)); dx = ~~(dx / Math.abs(dx));
dy = ~~(dy / Math.abs(dy)); dy = ~~(dy / Math.abs(dy));
for (var l = 0; l < this.pushback; l++) { for (var l = 0; l < this.pushback; l++) {
if (physics.isTileBlocking(targetPos.x + dx, targetPos.y + dy, true)) {
if (physics.isTileBlocking(targetPos.x + dx, targetPos.y + dy)) {
if (physics.isTileBlocking(targetPos.x + dx, targetPos.y)) { if (physics.isTileBlocking(targetPos.x + dx, targetPos.y)) {
if (physics.isTileBlocking(targetPos.x, targetPos.y + dy)) { if (physics.isTileBlocking(targetPos.x, targetPos.y + dy)) {
break; break;


+ 1
- 1
src/server/config/spellsConfig.js Ver fichero

@@ -39,7 +39,7 @@ define([
random: { random: {
damage: [6.7, 13.3], damage: [6.7, 13.3],
i_radius: [1, 2.2], i_radius: [1, 2.2],
i_pushback: [5, 10]
i_pushback: [1, 4]
} }
}, },
'smite': { 'smite': {


+ 0
- 1
src/server/world/physics.js Ver fichero

@@ -266,7 +266,6 @@ define([
x = ~~x; x = ~~x;
y = ~~y; y = ~~y;


//Colliders d
var node = this.graph.grid[x][y]; var node = this.graph.grid[x][y];
if (node) if (node)
return node.isWall(); return node.isWall();


Cargando…
Cancelar
Guardar