refactoring to game base class
This commit is contained in:
6
craft.py
6
craft.py
@@ -4,6 +4,7 @@ import pydirectinput
|
||||
from config_file import UserConfigs
|
||||
from window_capture import WindowCapture
|
||||
from vision import Vision
|
||||
from game_base_class import GameBase
|
||||
|
||||
MODE25X1 = "m25x1"
|
||||
MODE10X2 = "m10x2"
|
||||
@@ -14,11 +15,10 @@ MODE1X5_X = "m1x5_X"
|
||||
MODE_HOUSE = "house"
|
||||
|
||||
|
||||
class Craft:
|
||||
class Craft(GameBase):
|
||||
|
||||
def __init__(self, overlay):
|
||||
self.overlay = overlay
|
||||
self.config = UserConfigs()
|
||||
super().__init__(overlay)
|
||||
|
||||
self.mode = str(overlay.emitter_use.get())
|
||||
self.run_target = int(overlay.energy_use.get())
|
||||
|
||||
Reference in New Issue
Block a user