Browse Source

Removed testing code that was left in

tags/v0.1.2^2
Big Bad Waffle 7 years ago
parent
commit
63b2f23ec1
3 changed files with 2 additions and 3 deletions
  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 View File

@@ -83,7 +83,7 @@ define([
dx = ~~(dx / Math.abs(dx));
dy = ~~(dy / Math.abs(dy));
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, targetPos.y + dy)) {
break;


+ 1
- 1
src/server/config/spellsConfig.js View File

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


+ 0
- 1
src/server/world/physics.js View File

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

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


Loading…
Cancel
Save