...
 
Commits (4)
$(function () {
var items = [{
name: `Infernal Bite`,
let items = [{
name: 'Infernal Bite',
type: 'Curved Sword',
rqr: {
level: 25,
......@@ -17,7 +17,7 @@ $(function () {
spritesheet: '../../src/client/images/items.png',
sprite: [9, 9]
}, {
name: `Cowl of Obscurity`,
name: 'Cowl of Obscurity',
type: 'Silk Cowl',
rqr: {
level: 20,
......@@ -28,30 +28,59 @@ $(function () {
Vitality: '[20 - 35]',
Dexterity: '[150 - 220]',
'Critical hits heal you for [1% - 3%] of your maximum health': null,
'Your hits have a 50% chance to miss': null,
'Your hits have a 50% chance to miss': null
},
spritesheet: '../../src/client/images/items.png',
sprite: [0, 4]
}, {
name: 'Gaekatlan Offshoot',
type: 'Holy Blossom',
rqr: {
level: 20,
int: 40
},
quality: 3,
stats: {
Vitality: '[5 - 15]',
'Mana Regeneration': '[10 - 20]',
'Your Healing Circle also deals damage for [50% - 150%] of the amount healed': null
},
spritesheet: '../../src/client/images/items.png',
sprite: [8, 6]
}, {
name: 'Verdant Cleaver',
type: 'Axe',
rqr: {
level: 20,
str: 40
},
quality: 3,
stats: {
Strength: '[5 - 15]',
Vitality: '[10 - 15],',
'Your basic attacks have a [20% - 40%] chance to hit an additional target': null
},
spritesheet: '../../src/client/images/items.png',
sprite: [9, 9]
}];
for (var i = 0; i < items.length - 1; i++) {
for (let i = 0; i < items.length - 1; i++)
$('.tooltip:first-child').clone().appendTo('body');
}
items.forEach(function (item, i) {
var div = $('.tooltip').eq(i);
let div = $('.tooltip').eq(i);
for (var p in item) {
for (let p in item) {
var val = item[p];
div.find('.' + p).html(val);
}
var stats = item.stats;
let stats = item.stats;
if (stats) {
var val = '';
for (var s in stats) {
var v = s;
let v = s;
if (stats[s])
v = stats[s] + ' ' + s;
val += '<div class="stat">' + v + '</div>';
......@@ -59,7 +88,7 @@ $(function () {
div.find('.stats').html(val);
}
var rqr = item.rqr;
let rqr = item.rqr;
if (rqr) {
var val = 'Requires: ';
for (var s in rqr) {
......
src/client/images/items.png

13.5 KB | W: | H:

src/client/images/items.png

13.9 KB | W: | H:

src/client/images/items.png
src/client/images/items.png
src/client/images/items.png
src/client/images/items.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -38,6 +38,7 @@ module.exports = {
if (!pickQuest)
pickQuest = config.infini[~~(Math.random() * config.infini.length)];
let pickType = pickQuest.type[0].toUpperCase() + pickQuest.type.substr(1);
pickType = 'KillX';
let questClass = require('../../config/quests/templates/quest' + pickType);
let quest = extend({}, pickQuest, questTemplate, questClass, template);
......
......@@ -59,14 +59,11 @@ module.exports = {
events: {
afterKillMob: function (mob) {
if (!mob.name || !this.mobName) {
console.log(!!mob.name, !!this.mobName);
console.log(this.obj.name);
console.log(this.obj.instance.zone.name);
console.log(this.obj.x, this.obj.y);
}
if ((mob.name.toLowerCase() !== this.mobName.toLowerCase()) || (this.have >= this.need))
if (
this.obj.zoneName !== this.zoneName ||
mob.name.toLowerCase() !== this.mobName.toLowerCase() ||
this.have >= this.need
)
return;
this.have++;
......
......@@ -5,10 +5,12 @@ module.exports = {
if (!this.build())
return false;
let level = this.obj.instance.spawners.zone.level;
level = level[0];
let xp = ~~(level * 22 * this.getXpMultiplier());
this.xp = xp;
if (!this.xp) {
let level = this.obj.instance.spawners.zone.level;
level = level[0];
let xp = ~~(level * 22 * this.getXpMultiplier());
this.xp = xp;
}
this.obj.syncer.setArray(true, 'quests', 'obtainQuests', this.simplify(true));
......