257 Commits

Author SHA1 Message Date
Eriks K
65b555f2bd Minor tweaks and double-quoted strings converted into single-quoted strings 2021-01-21 19:05:00 +02:00
Eriks K
b71cb0c263 Minor tweaks and double-quoted strings converted into single-quoted strings 2021-01-21 19:00:40 +02:00
Eriks K
a1c6fb06a0 Task fetcher updates, state update repeater frequency increased for restricted IPs to not timeout cookie session 2021-01-20 22:25:07 +02:00
Eriks K
c57bf99976 If citizen is on restricted IP, clear cookies when session times out 2021-01-20 16:42:36 +02:00
Eriks K
34d7230faf Response serialization update to include status code. Json encoder and decoder updates 2021-01-20 16:07:19 +02:00
Eriks K
88c8d5a9a0 Unified all event setting 2021-01-18 16:35:31 +02:00
Eriks K
0c877e315b as_dict updates 2021-01-18 16:12:26 +02:00
Eriks K
c95f642fee Citizen.as_dict rewrite 2021-01-18 16:00:29 +02:00
Eriks K
da0276f9a6 Removed unused CitizenMilitary.boosters property
Explicitly updated all Citizen*.as_dict properties
2021-01-18 15:22:53 +02:00
Eriks K
f89f91e969 Concurrency checks placed directly in Citizen class
Added concurrency checks also for citizen updates

Sentry: EREPUBLIK-BOT-77
2021-01-18 15:11:40 +02:00
Eriks K
56c2ca1b6e House renewal price check bugfix 2021-01-12 08:05:57 +02:00
Eriks K
0ed03877ce Damage booster's name change 2021-01-11 21:05:12 +02:00
Eriks K
491c9f5efe CitizenMilitary.countries were never used - all countries are available at constants.COUNTIRES, but allies and deployed allies are also available on every Battle 2021-01-11 16:27:23 +02:00
Eriks K
bff4183cb6 Added option to fight with energy bars, count small energy bars more precisely 2021-01-11 16:19:10 +02:00
Eriks K
a32fd039dd Report details about fighting also on telegram 2021-01-08 11:08:50 +02:00
Eriks K
52038a86d5 PackBooster icon update 2021-01-07 17:00:59 +02:00
Eriks K
b53b2f0fae Update loop 2021-01-07 15:54:56 +02:00
Eriks K
caa41c85f6 minor tweaks 2021-01-07 15:36:27 +02:00
Eriks K
da3b5d5768 Update inventory on booster activation 2021-01-07 15:31:46 +02:00
Eriks K
c693a5182e Merge branch 'master' of github.com:eeriks/erepublik 2021-01-07 15:14:17 +02:00
Eriks K
0dfba6a9ff Find battle and fight - reuse already calculated hit count 2021-01-07 15:14:11 +02:00
Eriks Karls
0e8680daca bugfix 2021-01-06 23:35:25 +02:00
Eriks K
308807d800 isort, pre-commit 2021-01-05 19:29:20 +02:00
Eriks K
09cd275a69 type bugfix 2021-01-05 16:30:42 +02:00
Eriks K
5aecefbd9d Protect those precious air boosters and 100% ground boosters 2021-01-05 15:50:38 +02:00
Eriks K
8b9ee5042d Bugfixes and inventory redone 2021-01-05 15:41:51 +02:00
Eriks K
771dbdf826 With invalid bomb (bomb not in inventory) quit after first try 2020-12-17 18:03:04 +02:00
Eriks K
fccd0134b5 Merge branch 'remove-tox' 2020-12-17 14:07:46 +02:00
Eriks K
b9010fa856 Fixed MRO error 2020-12-17 14:07:29 +02:00
Eriks K
661a019b0a Broken MRO 2020-12-17 14:03:30 +02:00
Eriks K
23d682959d Party presidency and congress election bugfix if player is not part of a party 2020-12-17 12:13:44 +02:00
Eriks K
5806ccb6ca Buy food if unable to work/train because of food shortage 2020-12-14 13:51:16 +02:00
Eriks K
a9bc78b701 Sleep accepts floats and decimals, not only integers. Bomb deploy should use Citizen.sleep instead of utils.sleep 2020-12-11 17:22:45 +02:00
Eriks K
86f820771b Hits done bugfix 2020-12-11 11:11:25 +02:00
Eriks K
94de509026 __all__ definitions 2020-12-10 14:36:34 +02:00
Eriks K
c462eac369 Bomb deploy update 2020-12-10 13:25:47 +02:00
Eriks K
084a47b07a TelegramBot renamed to TelegramReporter 2020-12-09 13:30:18 +02:00
Eriks K
c9971f3570 str.format() -> f-string 2020-12-09 13:28:56 +02:00
Eriks K
2524173da0 Telegram bot's token can be reused 2020-12-08 18:05:18 +02:00
Eriks K
4a4b991faf Telegram bot's token can be reused 2020-12-08 18:05:01 +02:00
Eriks K
f0f47566a0 Bugfix: Don't travel to renew house if You can't afford the house 2020-12-07 14:10:40 +02:00
Eriks K
7be129a781 Quickfix for forbidding Dictatorship/Liberation wars 2020-12-07 14:01:22 +02:00
Eriks K
00ceabf8e3 cleanup 2020-12-04 13:13:10 +02:00
Eriks K
19113da8e6 cleanup 2020-12-04 13:11:11 +02:00
Eriks K
3ad7172925 cleanup 2020-12-04 13:08:42 +02:00
Eriks K
179f1a0892 Only init TelegramReporter if both chat id and token have been supplied 2020-12-04 13:08:16 +02:00
Eriks K
65adf707e2 Only init TelegramReporter if both chat id and token have been supplied 2020-12-04 13:08:04 +02:00
Eriks K
fa3881bf10 Updated classes.OfferItem default price to be higher considerably higher than max price for cheapest most expensive items on sale (Q5 houses), Updated house renewal 2020-12-02 18:40:33 +02:00
Eriks K
8133461fd7 pep8 2020-12-02 13:00:33 +02:00
Eriks K
a080163af9 Bugfix 2020-12-01 18:49:33 +02:00