9
0
mirror of https://github.com/Auxilor/EcoQuests.git synced 2025-12-22 08:29:18 +00:00

Compare commits

...

4 Commits

Author SHA1 Message Date
Will FP
5814587ed5 libreforge-updater 2024-11-06 18:33:27 +00:00
Will FP
f4682214cc libreforge-updater 2024-10-22 12:14:38 +01:00
Will FP
3c0d5651d8 Merge pull request #3 from kiriharu/master
FIX: Prevent to give expirience to task when it marked as completed
2024-09-26 19:08:57 +01:00
kiriharu
ed947b354f FIX: Stop giving exp to task and call steps related to it when task already marked as completed 2024-09-21 13:00:51 +03:00
2 changed files with 8 additions and 3 deletions

View File

@@ -146,6 +146,11 @@ class Task(
* Give experience directly
*/
fun giveExperience(player: Player, amount: Double) {
if (player.profile.read(hasCompletedKey)) {
return
}
val requiredXp = getExperienceRequired(player)
val newXp = player.profile.read(xpKey) + amount

View File

@@ -1,5 +1,5 @@
#libreforge-updater
#Sun Sep 22 17:00:59 BST 2024
#Wed Nov 06 18:33:27 GMT 2024
kotlin.code.style=official
libreforge-version=4.72.0
version=1.43.0
libreforge-version=4.72.2
version=1.43.2