mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Fixing Exponential Quest Reward Scrolls (#7800)
* adding quest owner specific rewards. closes #2715 * Updating model to prevent this from being a breaking change. * Removing duplicate translatable string and readding accidentally deleted portion * capitalizing according to pr. * fixing according to comments on pr * removing final mistakes * fixing whitespace * re-adding the onlyOwner field that got deleted when the index.js file was moved and fixed console errors. * moving cleaning of empty obejct for quest owner updates into quest owner updates method * Fixing so tests pass by updating variable name and removing unnecessary parameter definition. * adding a new test and refactoring client side code to use controller method.
This commit is contained in:
@@ -867,7 +867,8 @@ api.quests = {
|
||||
{
|
||||
type: 'quests',
|
||||
key: "vice2",
|
||||
text: t('questVice1DropVice2Quest')
|
||||
text: t('questVice1DropVice2Quest'),
|
||||
onlyOwner: true
|
||||
}
|
||||
],
|
||||
gp: 20,
|
||||
@@ -892,7 +893,8 @@ api.quests = {
|
||||
{
|
||||
type: 'quests',
|
||||
key: 'vice3',
|
||||
text: t('questVice2DropVice3Quest')
|
||||
text: t('questVice2DropVice3Quest'),
|
||||
onlyOwner: true
|
||||
}
|
||||
],
|
||||
gp: 20,
|
||||
@@ -1116,7 +1118,8 @@ api.quests = {
|
||||
{
|
||||
type: 'quests',
|
||||
key: "atom2",
|
||||
text: t('questAtom1Drop')
|
||||
text: t('questAtom1Drop'),
|
||||
onlyOwner: true
|
||||
}
|
||||
],
|
||||
gp: 7,
|
||||
@@ -1140,7 +1143,8 @@ api.quests = {
|
||||
{
|
||||
type: 'quests',
|
||||
key: "atom3",
|
||||
text: t('questAtom2Drop')
|
||||
text: t('questAtom2Drop'),
|
||||
onlyOwner: true
|
||||
}
|
||||
],
|
||||
gp: 20,
|
||||
@@ -1293,7 +1297,8 @@ api.quests = {
|
||||
{
|
||||
type: 'quests',
|
||||
key: "moonstone2",
|
||||
text: t('questMoonstone1DropMoonstone2Quest')
|
||||
text: t('questMoonstone1DropMoonstone2Quest'),
|
||||
onlyOwner: true
|
||||
}
|
||||
],
|
||||
gp: 50,
|
||||
@@ -1317,7 +1322,8 @@ api.quests = {
|
||||
{
|
||||
type: 'quests',
|
||||
key: 'moonstone3',
|
||||
text: t('questMoonstone2DropMoonstone3Quest')
|
||||
text: t('questMoonstone2DropMoonstone3Quest'),
|
||||
onlyOwner: true
|
||||
}
|
||||
],
|
||||
gp: 500,
|
||||
@@ -1398,7 +1404,8 @@ api.quests = {
|
||||
{
|
||||
type: 'quests',
|
||||
key: "goldenknight2",
|
||||
text: t('questGoldenknight1DropGoldenknight2Quest')
|
||||
text: t('questGoldenknight1DropGoldenknight2Quest'),
|
||||
onlyOwner: true
|
||||
}
|
||||
],
|
||||
gp: 15,
|
||||
@@ -1422,7 +1429,8 @@ api.quests = {
|
||||
{
|
||||
type: 'quests',
|
||||
key: 'goldenknight3',
|
||||
text: t('questGoldenknight2DropGoldenknight3Quest')
|
||||
text: t('questGoldenknight2DropGoldenknight3Quest'),
|
||||
onlyOwner: true
|
||||
}
|
||||
],
|
||||
gp: 75,
|
||||
|
||||
Reference in New Issue
Block a user