Remove depricated Config.wt property

Add Config.ot for overtime enabling/disabling
This commit is contained in:
Eriks Karls 2020-02-26 18:43:27 +02:00
parent 70e78023eb
commit bf5f3d74b3
2 changed files with 4 additions and 6 deletions

View File

@ -5,7 +5,7 @@
__author__ = """Eriks Karls""" __author__ = """Eriks Karls"""
__email__ = 'eriks@72.lv' __email__ = 'eriks@72.lv'
__version__ = '0.20.0' __version__ = '0.20.0'
__commit_id__ = "8dcebde" __commit_id__ = "70e7802"
from erepublik import classes, utils from erepublik import classes, utils
from erepublik.citizen import Citizen from erepublik.citizen import Citizen

View File

@ -204,6 +204,7 @@ class Config:
work = True work = True
train = True train = True
wam = False wam = False
ot = True
auto_sell: List[str] = None auto_sell: List[str] = None
auto_sell_all = False auto_sell_all = False
employees = False employees = False
@ -231,14 +232,11 @@ class Config:
def __init__(self): def __init__(self):
self.auto_sell = [] self.auto_sell = []
@property
def wt(self):
return self.work and self.train
def reset(self): def reset(self):
self.work = True self.work = True
self.train = True self.train = True
self.wam = False self.wam = False
self.ot = True
self.auto_sell = list() self.auto_sell = list()
self.auto_sell_all = False self.auto_sell_all = False
self.employees = False self.employees = False
@ -265,7 +263,7 @@ class Config:
@property @property
def __dict__(self): def __dict__(self):
return dict(email=self.email, work=self.work, train=self.train, wam=self.wam, return dict(email=self.email, work=self.work, train=self.train, wam=self.wam, ot=self.ot,
auto_sell=self.auto_sell, auto_sell_all=self.auto_sell_all, employees=self.employees, auto_sell=self.auto_sell, auto_sell_all=self.auto_sell_all, employees=self.employees,
fight=self.fight, air=self.air, ground=self.ground, all_in=self.all_in, fight=self.fight, air=self.air, ground=self.ground, all_in=self.all_in,
next_energy=self.next_energy, boosters=self.boosters, travel_to_fight=self.travel_to_fight, next_energy=self.next_energy, boosters=self.boosters, travel_to_fight=self.travel_to_fight,