Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
81bd09e13e | |||
fc4295d8bd |
@ -4,8 +4,8 @@
|
||||
|
||||
__author__ = """Eriks Karls"""
|
||||
__email__ = 'eriks@72.lv'
|
||||
__version__ = '0.20.3.4'
|
||||
__commit_id__ = "8ce56a3"
|
||||
__version__ = '0.20.3.5'
|
||||
__commit_id__ = "fc4295d"
|
||||
|
||||
from erepublik import classes, utils
|
||||
from erepublik.citizen import Citizen
|
||||
|
@ -206,11 +206,11 @@ class BaseCitizen(CitizenAPI):
|
||||
self.energy.recoverable = citizen.get("energyFromFoodRemaining", 0)
|
||||
|
||||
self.details.current_region = citizen.get("regionLocationId", 0)
|
||||
self.details.current_country = citizen.get("countryLocationId", 0) # country where citizen is located
|
||||
self.details.current_country = COUNTRIES.get(citizen.get("countryLocationId", 0)) # country where citizen is located
|
||||
self.details.residence_region = citizen.get("residence", {}).get("regionId", 0)
|
||||
self.details.residence_country = citizen.get("residence", {}).get("countryId", 0)
|
||||
self.details.residence_country = COUNTRIES.get(citizen.get("residence", {}).get("countryId", 0))
|
||||
self.details.citizen_id = citizen.get("citizenId", 0)
|
||||
self.details.citizenship = int(citizen.get("country", 0))
|
||||
self.details.citizenship = COUNTRIES.get(int(citizen.get("country", 0)))
|
||||
self.details.xp = citizen.get("currentExperiencePoints", 0)
|
||||
self.details.daily_task_done = citizen.get("dailyTasksDone", False)
|
||||
self.details.daily_task_reward = citizen.get("hasReward", False)
|
||||
|
@ -1,5 +1,5 @@
|
||||
[bumpversion]
|
||||
current_version = 0.20.3.4
|
||||
current_version = 0.20.3.5
|
||||
commit = True
|
||||
tag = True
|
||||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)\.?(?P<dev>\d+)?
|
||||
|
Reference in New Issue
Block a user