Skip to content
This repository was archived by the owner on May 2, 2023. It is now read-only.

Commit bc00f85

Browse files
authored
Merge pull request #15 from codesidian/object-and-flow-change
improvement: Apply new object and flow changes
2 parents 3e0755d + e2ca483 commit bc00f85

File tree

7 files changed

+286
-106
lines changed

7 files changed

+286
-106
lines changed

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"python.formatting.provider": "black"
3+
}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**A small bot for the game missionchief written in Python, automatically reads the missions requirements and tries to despatch the required vehicles accordingly.**
44

5-
**This bot only works with a vanilla / default account, so don't expect it to work with custom callsigns - Just yet.**
5+
**This bot is meant for use with standard Chrome, please do not use any MissionChief mods, such as LSS manager.**
66

77

88
## How to use

chromedriver.exe

-1.04 MB
Binary file not shown.

despatch.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
class Despatch:
2+
#ID - Mission ID (String)
3+
#vehicles - List of vehicle ID's sent to mission
4+
#remSec - Remaining time in seconds
5+
def __init__(self, ID,vehicles, remSec):
6+
self.ID = ID
7+
self.vehicles = vehicles
8+
self.remSec = remSec
9+
10+
def getID(self):
11+
return self.ID
12+
def getVehicles(self):
13+
return self.vehicles
14+
def __eq__(self, other):
15+
return self.ID == other.ID

mission.py

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
class Mission:
2+
#ID - Mission ID (String)
3+
#name - Mission Name (String)
4+
#requirements - Mission Requirements (list)
5+
#status - Mission Status (int)
6+
def __init__(self, ID,name,requirements,status=0):
7+
self.name = name
8+
self.ID = ID
9+
self.requirements = requirements
10+
self.status=status
11+
12+
13+
def getName(self):
14+
return self.name
15+
def getID(self):
16+
return self.ID
17+
def getStatus(self):
18+
return self.status
19+
def setStatus(self, status):
20+
self.status = status
21+
def getRequirements(self):
22+
return self.requirements
23+
def __eq__(self, other):
24+
return self.ID == other.ID

0 commit comments

Comments
 (0)