diff --git a/erepublik/citizen.py b/erepublik/citizen.py
index 371b72f..6f6b9c0 100644
--- a/erepublik/citizen.py
+++ b/erepublik/citizen.py
@@ -261,6 +261,9 @@ class Citizen(CitizenAPI):
r"
", medal, re.M | re.S)
about = info.group(1).strip()
title = info.group(2).strip()
+ award_id = re.search(r'"wall_enable_alerts_(\d+)', medal)
+ if award_id:
+ self._post_main_wall_post_automatic(**{'message': title, 'awardId': award_id.group(1)})
reward, currency = info.group(3).strip().split(" ")
while not isinstance(reward, float):
try:
@@ -1337,7 +1340,7 @@ class Citizen(CitizenAPI):
if not self.get_active_ground_damage_booster():
duration = 0
for length, amount in self.boosters[50].items():
- if amount > 1:
+ if amount > 2:
duration = length
break
if duration:
diff --git a/erepublik/classes.py b/erepublik/classes.py
index 209988f..8b4798c 100644
--- a/erepublik/classes.py
+++ b/erepublik/classes.py
@@ -904,6 +904,10 @@ Class for unifying eRepublik known endpoints and their required/optional paramet
data = {"_token": self.token, "post_message": body}
return self.post("{}/main/wall-post/create/json".format(self.url), data=data)
+ def _post_main_wall_post_automatic(self, **kwargs) -> Response:
+ kwargs.update(_token=self.token)
+ return self.post("{}/main/wall-post/create/json".format(self.url), data=kwargs)
+
def _post_main_wall_post_retrieve(self) -> Response:
data = {"_token": self.token, "page": 1, "switchedFrom": False}
return self.post("{}/main/wall-post/retrieve/json".format(self.url), data=data)