feat(quests): lvl 15 ATOM quest drop
This commit is contained in:
@@ -973,6 +973,55 @@ api.quests =
|
||||
gp: 25
|
||||
exp: 125
|
||||
|
||||
atom1:
|
||||
text: t('questAtom1Text')
|
||||
notes: t('questAtom1Notes')
|
||||
value: 4
|
||||
lvl: 15
|
||||
collect:
|
||||
soapBars: text: t('questAtom1CollectSoapBars'), count: 20
|
||||
drop:
|
||||
items: [
|
||||
{type: 'quests', key: "atom2", text: t('questAtom1Drop')}
|
||||
]
|
||||
gp: 7
|
||||
exp: 50
|
||||
atom2:
|
||||
text: t('questAtom2Text')
|
||||
notes: t('questAtom2Notes')
|
||||
previous: 'atom1'
|
||||
value: 4
|
||||
lvl: 15
|
||||
boss:
|
||||
name: t('questAtom2Boss')
|
||||
hp: 300
|
||||
str: 1
|
||||
drop:
|
||||
items: [
|
||||
{type: 'quests', key: "atom3", text: t('questAtom2Drop')}
|
||||
]
|
||||
gp: 20
|
||||
exp: 100
|
||||
atom3:
|
||||
text: t('questAtom3Text')
|
||||
notes: t('questAtom3Notes')
|
||||
previous: 'atom2'
|
||||
completion: t('questAtom3Completion')
|
||||
value: 4
|
||||
lvl: 15
|
||||
boss:
|
||||
name: t('questAtom3Boss')
|
||||
hp: 800
|
||||
str: 1.5
|
||||
drop:
|
||||
items: [
|
||||
{type: 'gear', key: "head_special_2", text: t('headSpecial2Text')}
|
||||
{type: 'hatchingPotions', key: "Base", text: t('questAtom3DropPotion')}
|
||||
{type: 'hatchingPotions', key: "Base", text: t('questAtom3DropPotion')}
|
||||
]
|
||||
gp: 25
|
||||
exp: 125
|
||||
|
||||
_.each api.quests, (v,key) ->
|
||||
_.defaults v, {key,canBuy:true}
|
||||
b = v.boss
|
||||
|
||||
+10
-8
@@ -1145,14 +1145,16 @@ api.wrap = (user, main=true) ->
|
||||
if user.items.eggs["Wolf"] > 0 then user.items.eggs["Wolf"]++ else user.items.eggs["Wolf"] = 1
|
||||
if !user.flags.classSelected and user.stats.lvl >= 10
|
||||
user.flags.classSelected
|
||||
if !user.flags.levelDrops?.vice1 and user.stats.lvl >= 30
|
||||
user.items.quests.vice1 ?= 0
|
||||
user.items.quests.vice1++
|
||||
(user.flags.levelDrops ?= {}).vice1 = true
|
||||
user.markModified? 'flags.levelDrops'
|
||||
user._tmp.drop = _.defaults content.quests.vice1,
|
||||
type: 'Quest'
|
||||
dialog: i18n.t('messageFoundQuest', {questText: content.quests.vice1.text(req.language)}, req.language)
|
||||
# Level Drops
|
||||
_.each {vice1:30, atom1:15}, (lvl,k)->
|
||||
if !user.flags.levelDrops?[k] and user.stats.lvl >= lvl
|
||||
user.items.quests[k] ?= 0
|
||||
user.items.quests[k]++
|
||||
(user.flags.levelDrops ?= {})[k] = true
|
||||
user.markModified? 'flags.levelDrops'
|
||||
user._tmp.drop = _.defaults content.quests[k],
|
||||
type: 'Quest'
|
||||
dialog: i18n.t('messageFoundQuest', {questText: content.quests[k].text(req.language)}, req.language)
|
||||
if !user.flags.rebirthEnabled and (user.stats.lvl >= 50 or user.achievements.ultimateGear or user.achievements.beastMaster)
|
||||
user.flags.rebirthEnabled = true
|
||||
if user.stats.lvl >= 100 and !user.flags.freeRebirth
|
||||
|
||||
Reference in New Issue
Block a user