Fixed xp calculation #1.1.0.rc5
This commit is contained in:
parent
78b761a672
commit
92001a45be
@ -291,7 +291,7 @@ class DataIntegrityService:
|
|||||||
self._user_joins_vc.update_user_joined_voice_channel(join)
|
self._user_joins_vc.update_user_joined_voice_channel(join)
|
||||||
|
|
||||||
if self._is_for_shutdown:
|
if self._is_for_shutdown:
|
||||||
user.xp = round(join.time * settings.xp_per_ontime_hour)
|
user.xp += round(join.time * settings.xp_per_ontime_hour)
|
||||||
self._users.update_user(user)
|
self._users.update_user(user)
|
||||||
|
|
||||||
self._db_context.save_changes()
|
self._db_context.save_changes()
|
||||||
@ -356,7 +356,7 @@ class DataIntegrityService:
|
|||||||
|
|
||||||
self._user_joined_gs.update_user_joined_game_server(join)
|
self._user_joined_gs.update_user_joined_game_server(join)
|
||||||
if self._is_for_shutdown:
|
if self._is_for_shutdown:
|
||||||
user.xp = round(join.time * settings.xp_per_ontime_hour)
|
user.xp += round(join.time * settings.xp_per_ontime_hour)
|
||||||
self._users.update_user(user)
|
self._users.update_user(user)
|
||||||
|
|
||||||
self._db_context.save_changes()
|
self._db_context.save_changes()
|
||||||
|
Loading…
Reference in New Issue
Block a user