Browse Source

Undid last commit which should have gone into staging

tags/v0.1.2
Big Bad Waffle 7 years ago
parent
commit
2d0760dbc6
3 changed files with 2 additions and 1598 deletions
  1. +0
    -17
      project.sublime-project
  2. +0
    -1567
      project.sublime-workspace
  3. +2
    -14
      src/server/config/quests/templates/questKillX.js

+ 0
- 17
project.sublime-project View File

@@ -1,17 +0,0 @@
{
"folders":
[
{
"path": "src/client",
"folder_exclude_patterns": [
"plugins"
]
},
{
"path": "src/server",
"folder_exclude_patterns": [
"node_modules"
]
}
]
}

+ 0
- 1567
project.sublime-workspace
File diff suppressed because it is too large
View File


+ 2
- 14
src/server/config/quests/templates/questKillX.js View File

@@ -12,23 +12,11 @@ define([
type: 'killX',

build: function() {
var mobTypes = this.obj.instance.spawners.zone.mobs;

if (this.mobName) {
if (mobTypes[this.mobName.toLowerCase()].attackable == false)
this.mobName = null;
}

if (!this.mobName) {
var mobTypes = this.obj.instance.spawners.zone.mobs;
var mobCounts = this.obj.instance.spawners.mobTypes;
var keys = Object.keys(mobTypes).filter(function(m) {
return (
(m != 'default') &&
(
(mobTypes[m].attackable) ||
(mobTypes[m].attackable == null)
)
);
return (m != 'default');
});
this.mobType = keys[~~(Math.random() * keys.length)];
var needMax = 8;


Loading…
Cancel
Save