feat(quests): goldeknight auto-drops at 40

This commit is contained in:
Tyler Renelle 2014-11-11 21:04:21 -07:00
parent 73bdc0dbaf
commit 97a9ecf1f4
3 changed files with 9 additions and 2 deletions

View file

@ -13266,6 +13266,7 @@ api.quests = {
text: t('questGoldenknight1Text'),
notes: t('questGoldenknight1Notes'),
value: 4,
lvl: 40,
collect: {
testimony: {
text: t('questGoldenknight1CollectTestimony'),
@ -13289,6 +13290,7 @@ api.quests = {
notes: t('questGoldenknight2Notes'),
value: 4,
previous: 'goldenknight1',
lvl: 45,
boss: {
name: t('questGoldenknight2Boss'),
hp: 1000,
@ -13312,6 +13314,7 @@ api.quests = {
completion: t('questGoldenknight3Completion'),
previous: 'goldenknight2',
value: 4,
lvl: 50,
boss: {
name: t('questGoldenknight3Boss'),
hp: 1700,
@ -15490,7 +15493,8 @@ api.wrap = function(user, main) {
_.each({
vice1: 30,
atom1: 15,
moonstone1: 60
moonstone1: 60,
goldenknight1: 40
}, function(lvl, k) {
var _base, _base1, _ref;
if (!((_ref = user.flags.levelDrops) != null ? _ref[k] : void 0) && user.stats.lvl >= lvl) {

View file

@ -1200,6 +1200,7 @@ api.quests =
text: t('questGoldenknight1Text')
notes: t('questGoldenknight1Notes')
value: 4
lvl: 40
collect:
testimony: text: t('questGoldenknight1CollectTestimony'), count: 300
drop:
@ -1213,6 +1214,7 @@ api.quests =
notes: t('questGoldenknight2Notes')
value: 4
previous: 'goldenknight1'
lvl: 45
boss:
name: t('questGoldenknight2Boss')
hp: 1000
@ -1229,6 +1231,7 @@ api.quests =
completion: t('questGoldenknight3Completion')
previous: 'goldenknight2'
value: 4
lvl: 50
boss:
name: t('questGoldenknight3Boss')
hp: 1700

View file

@ -1256,7 +1256,7 @@ api.wrap = (user, main=true) ->
if !user.flags.classSelected and user.stats.lvl >= 10
user.flags.classSelected
# Level Drops
_.each {vice1:30, atom1:15, moonstone1:60}, (lvl,k)->
_.each {vice1:30, atom1:15, moonstone1:60, goldenknight1: 40}, (lvl,k)->
if !user.flags.levelDrops?[k] and user.stats.lvl >= lvl
user.items.quests[k] ?= 0
user.items.quests[k]++