mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
Added sync on mage fireball spell
This commit is contained in:
@@ -521,6 +521,9 @@ api.spells =
|
|||||||
#console.log {bonus, expBonus:bonus,upBonus:bonus*.1}
|
#console.log {bonus, expBonus:bonus,upBonus:bonus*.1}
|
||||||
user.stats.exp += diminishingReturns(bonus,75)
|
user.stats.exp += diminishingReturns(bonus,75)
|
||||||
user.party.quest.progress.up += diminishingReturns(bonus*.1,50,30)
|
user.party.quest.progress.up += diminishingReturns(bonus*.1,50,30)
|
||||||
|
#Sync the user stats to see if we level the user
|
||||||
|
req = { language: user.preferences.language }
|
||||||
|
user.fns.updateStats( user.stats , req )
|
||||||
|
|
||||||
mpheal:
|
mpheal:
|
||||||
text: t('spellWizardMPHealText')
|
text: t('spellWizardMPHealText')
|
||||||
|
|||||||
@@ -228,6 +228,7 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
|
|||||||
case 'party': msg = window.env.t('youCastParty', {spell: spell.text()});break;
|
case 'party': msg = window.env.t('youCastParty', {spell: spell.text()});break;
|
||||||
}
|
}
|
||||||
Notification.text(msg);
|
Notification.text(msg);
|
||||||
|
User.sync();
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user