Ver a proveniência

started on generator

tags/v0.4^2
Shaun Kichenbrand há 4 anos
ascendente
cometimento
4afd90b591
5 ficheiros alterados com 28 adições e 0 eliminações
  1. BIN
     
  2. BIN
     
  3. +15
    -0
      src/server/config/maps/sewer/zone.js
  4. +2
    -0
      src/server/config/recipes/alchemy.js
  5. +11
    -0
      src/server/items/generators/recipeBook.js


+ 15
- 0
src/server/config/maps/sewer/zone.js Ver ficheiro

@@ -89,6 +89,21 @@ module.exports = {
fjolgard: 22
},

regular: {
drops: {
rolls: 1,
noRandom: true,
alsoRandom: true,
blueprints: [{
chance: 100,
type: 'recipe',
name: 'Recipe: Rune of Ambush',
profession: 'alchemy',
teaches: 'runeAmbush'
}]
}
},

rare: {
count: 0
}


+ 2
- 0
src/server/config/recipes/alchemy.js Ver ficheiro

@@ -27,8 +27,10 @@ module.exports = [{
quantity: 1
}]
}, {
id: 'runeAmbush',
name: 'Stinky Oil',
description: 'Makes your weapon both stinkier, and hurtier.',
default: false,
item: {
name: 'Stinky Oil',
type: 'consumable',


+ 11
- 0
src/server/items/generators/recipeBook.js Ver ficheiro

@@ -0,0 +1,11 @@
module.exports = {
generate: function (item, { profession, teaches, sprite = [0, 5] }) {
item.sprite = sprite;
item.spritesheet = '';

item.recipe = {
profession,
teaches
};
}
};

Carregando…
Cancelar
Guardar