Skip to content

Commit 51d7af7

Browse files
committed
Add: island production planner
1 parent 2e5e618 commit 51d7af7

13 files changed

Lines changed: 2026 additions & 1 deletion

File tree

alas.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,10 @@ def event_story(self):
427427
from module.eventstory.eventstory import EventStory
428428
EventStory(config=self.config, device=self.device, task="EventStory").run()
429429

430+
def island_production_planner(self):
431+
from module.island_handler.production_planner import IslandProductionPlanner
432+
IslandProductionPlanner(config=self.config).run()
433+
430434
def azur_lane_uncensored(self):
431435
from module.daemon.uncensored import AzurLaneUncensored
432436
AzurLaneUncensored(config=self.config, device=self.device, task="AzurLaneUncensored").run()

config/template.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1907,6 +1907,23 @@
19071907
"Storage": {}
19081908
}
19091909
},
1910+
"IslandProduction": {
1911+
"Scheduler": {
1912+
"Enable": false,
1913+
"NextRun": "2020-01-01 00:00:00",
1914+
"Command": "IslandProduction",
1915+
"SuccessInterval": 0,
1916+
"FailureInterval": 120,
1917+
"ServerUpdate": "00:00"
1918+
},
1919+
"IslandProduction": {
1920+
"MinStockItems": null,
1921+
"AccumulatingItems": null
1922+
},
1923+
"Storage": {
1924+
"Storage": {}
1925+
}
1926+
},
19101927
"IslandFreebie": {
19111928
"Scheduler": {
19121929
"Enable": false,
@@ -1936,6 +1953,31 @@
19361953
"Storage": {}
19371954
}
19381955
},
1956+
"IslandRestaurant": {
1957+
"Scheduler": {
1958+
"Enable": false,
1959+
"NextRun": "2020-01-01 00:00:00",
1960+
"Command": "IslandRestaurant",
1961+
"SuccessInterval": 0,
1962+
"FailureInterval": 120,
1963+
"ServerUpdate": "00:00"
1964+
},
1965+
"IslandRestaurant": {
1966+
"KoiGrade": "bronze",
1967+
"KoiWaitress": "any",
1968+
"BearGrade": "bronze",
1969+
"BearWaitress": "any",
1970+
"EateryGrade": "bronze",
1971+
"EateryWaitress": "any",
1972+
"GrillGrade": "bronze",
1973+
"GrillWaitress": "any",
1974+
"CafeGrade": "bronze",
1975+
"CafeWaitress": "any"
1976+
},
1977+
"Storage": {
1978+
"Storage": {}
1979+
}
1980+
},
19391981
"Daemon": {
19401982
"Daemon": {
19411983
"EnterMap": true
@@ -1961,6 +2003,17 @@
19612003
"Storage": {}
19622004
}
19632005
},
2006+
"IslandProductionPlanner": {
2007+
"IslandProductionPlanner": {
2008+
"DailyProfitLowerLimit": 50000,
2009+
"FieldsEfficiency": 0,
2010+
"OrchardEfficiency": 0,
2011+
"NurseryEfficiency": 0
2012+
},
2013+
"Storage": {
2014+
"Storage": {}
2015+
}
2016+
},
19642017
"Benchmark": {
19652018
"Benchmark": {
19662019
"DeviceType": "emulator",

module/config/argument/args.json

Lines changed: 256 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9293,6 +9293,61 @@
92939293
}
92949294
}
92959295
},
9296+
"IslandProduction": {
9297+
"Scheduler": {
9298+
"Enable": {
9299+
"type": "checkbox",
9300+
"value": false,
9301+
"option": [
9302+
true,
9303+
false
9304+
]
9305+
},
9306+
"NextRun": {
9307+
"type": "datetime",
9308+
"value": "2020-01-01 00:00:00",
9309+
"validate": "datetime"
9310+
},
9311+
"Command": {
9312+
"type": "input",
9313+
"value": "IslandProduction",
9314+
"display": "hide"
9315+
},
9316+
"SuccessInterval": {
9317+
"type": "input",
9318+
"value": 0,
9319+
"display": "hide"
9320+
},
9321+
"FailureInterval": {
9322+
"type": "input",
9323+
"value": 120,
9324+
"display": "hide"
9325+
},
9326+
"ServerUpdate": {
9327+
"type": "input",
9328+
"value": "00:00",
9329+
"display": "hide"
9330+
}
9331+
},
9332+
"IslandProduction": {
9333+
"MinStockItems": {
9334+
"type": "textarea",
9335+
"value": ""
9336+
},
9337+
"AccumulatingItems": {
9338+
"type": "textarea",
9339+
"value": ""
9340+
}
9341+
},
9342+
"Storage": {
9343+
"Storage": {
9344+
"type": "storage",
9345+
"value": {},
9346+
"valuetype": "ignore",
9347+
"display": "disabled"
9348+
}
9349+
}
9350+
},
92969351
"IslandFreebie": {
92979352
"Scheduler": {
92989353
"Enable": {
@@ -9389,6 +9444,164 @@
93899444
}
93909445
}
93919446
},
9447+
"IslandRestaurant": {
9448+
"Scheduler": {
9449+
"Enable": {
9450+
"type": "checkbox",
9451+
"value": false,
9452+
"option": [
9453+
true,
9454+
false
9455+
]
9456+
},
9457+
"NextRun": {
9458+
"type": "datetime",
9459+
"value": "2020-01-01 00:00:00",
9460+
"validate": "datetime"
9461+
},
9462+
"Command": {
9463+
"type": "input",
9464+
"value": "IslandRestaurant",
9465+
"display": "hide"
9466+
},
9467+
"SuccessInterval": {
9468+
"type": "input",
9469+
"value": 0,
9470+
"display": "hide"
9471+
},
9472+
"FailureInterval": {
9473+
"type": "input",
9474+
"value": 120,
9475+
"display": "hide"
9476+
},
9477+
"ServerUpdate": {
9478+
"type": "input",
9479+
"value": "00:00",
9480+
"display": "hide"
9481+
}
9482+
},
9483+
"IslandRestaurant": {
9484+
"KoiGrade": {
9485+
"type": "select",
9486+
"value": "bronze",
9487+
"option": [
9488+
"bronze",
9489+
"silver",
9490+
"gold",
9491+
"diamond"
9492+
]
9493+
},
9494+
"KoiWaitress": {
9495+
"type": "select",
9496+
"value": "any",
9497+
"option": [
9498+
"none",
9499+
"any",
9500+
"zhaohe",
9501+
"any+any",
9502+
"zhaohe+any"
9503+
]
9504+
},
9505+
"BearGrade": {
9506+
"type": "select",
9507+
"value": "bronze",
9508+
"option": [
9509+
"bronze",
9510+
"silver",
9511+
"gold",
9512+
"diamond"
9513+
]
9514+
},
9515+
"BearWaitress": {
9516+
"type": "select",
9517+
"value": "any",
9518+
"option": [
9519+
"none",
9520+
"any",
9521+
"chaijun",
9522+
"any+any",
9523+
"chaijun+any"
9524+
]
9525+
},
9526+
"EateryGrade": {
9527+
"type": "select",
9528+
"value": "bronze",
9529+
"option": [
9530+
"bronze",
9531+
"silver",
9532+
"gold",
9533+
"diamond"
9534+
]
9535+
},
9536+
"EateryWaitress": {
9537+
"type": "select",
9538+
"value": "any",
9539+
"option": [
9540+
"none",
9541+
"any",
9542+
"hailunna",
9543+
"ougen",
9544+
"any+any",
9545+
"hailunna+any",
9546+
"ougen+any",
9547+
"hailunna+ougen"
9548+
]
9549+
},
9550+
"GrillGrade": {
9551+
"type": "select",
9552+
"value": "bronze",
9553+
"option": [
9554+
"bronze",
9555+
"silver",
9556+
"gold",
9557+
"diamond"
9558+
]
9559+
},
9560+
"GrillWaitress": {
9561+
"type": "select",
9562+
"value": "any",
9563+
"option": [
9564+
"none",
9565+
"any",
9566+
"aogusite",
9567+
"ougen",
9568+
"any+any",
9569+
"aogusite+any",
9570+
"ougen+any",
9571+
"aogusite+ougen"
9572+
]
9573+
},
9574+
"CafeGrade": {
9575+
"type": "select",
9576+
"value": "bronze",
9577+
"option": [
9578+
"bronze",
9579+
"silver",
9580+
"gold",
9581+
"diamond"
9582+
]
9583+
},
9584+
"CafeWaitress": {
9585+
"type": "select",
9586+
"value": "any",
9587+
"option": [
9588+
"none",
9589+
"any",
9590+
"chaijun",
9591+
"any+any",
9592+
"chaijun+any"
9593+
]
9594+
}
9595+
},
9596+
"Storage": {
9597+
"Storage": {
9598+
"type": "storage",
9599+
"value": {},
9600+
"valuetype": "ignore",
9601+
"display": "disabled"
9602+
}
9603+
}
9604+
},
93929605
"Daemon": {
93939606
"Daemon": {
93949607
"EnterMap": {
@@ -9447,6 +9660,49 @@
94479660
}
94489661
}
94499662
},
9663+
"IslandProductionPlanner": {
9664+
"IslandProductionPlanner": {
9665+
"DailyProfitLowerLimit": {
9666+
"type": "input",
9667+
"value": 50000
9668+
},
9669+
"FieldsEfficiency": {
9670+
"type": "select",
9671+
"value": 0,
9672+
"option": [
9673+
0,
9674+
0.04,
9675+
0.12
9676+
]
9677+
},
9678+
"OrchardEfficiency": {
9679+
"type": "select",
9680+
"value": 0,
9681+
"option": [
9682+
0,
9683+
0.04,
9684+
0.12
9685+
]
9686+
},
9687+
"NurseryEfficiency": {
9688+
"type": "select",
9689+
"value": 0,
9690+
"option": [
9691+
0,
9692+
0.04,
9693+
0.12
9694+
]
9695+
}
9696+
},
9697+
"Storage": {
9698+
"Storage": {
9699+
"type": "storage",
9700+
"value": {},
9701+
"valuetype": "ignore",
9702+
"display": "disabled"
9703+
}
9704+
}
9705+
},
94509706
"Benchmark": {
94519707
"Benchmark": {
94529708
"DeviceType": {

0 commit comments

Comments
 (0)