Skip to content

Commit

Permalink
v5.0.6 - Date: 18/4/2022
Browse files Browse the repository at this point in the history
 - Improved: Nox support.
 - Fixed: SuperTroops.
  • Loading branch information
boludoz committed Apr 18, 2022
1 parent 0a91c47 commit fbac4f6
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ AutoUpdate.txt
#AIOMod.Updater.exe
#MyBot.run.exe
#MyBot.run.MiniGui.exe
bin/AdbPath/
4 changes: 3 additions & 1 deletion COCBot/functions/Config/applyConfig.au3
Original file line number Diff line number Diff line change
Expand Up @@ -1230,14 +1230,15 @@ Func ApplyConfig_600_22($TypeReadSave)
GUICtrlSetState($g_hChkBoostBarracksHours[$i], $g_abBoostBarracksHours[$i] ? $GUI_CHECKED : $GUI_UNCHECKED)
Next
GUICtrlSetState($g_hChkSuperTroops, $g_bSuperTroopsEnable ? $GUI_CHECKED : $GUI_UNCHECKED)
chkSuperTroops()
For $i = 0 To $iMaxSupersTroop - 1
_GUICtrlComboBox_SetCurSel($g_ahCmbSuperTroops[$i], $g_iCmbSuperTroops[$i])
_GUICtrlSetImage($g_ahPicSuperTroops[$i], $g_sLibIconPath, $g_aSuperTroopsIcons[$g_iCmbSuperTroops[$i]])
Next
; Custom Super Troops - Team AIO Mod++
GUICtrlSetState($g_hChkSuperAutoTroops, $g_bSuperAutoTroops ? $GUI_CHECKED : $GUI_UNCHECKED)
If $g_iCmbSuperTroopsResources < 0 Then $g_iCmbSuperTroopsResources = 0
_GUICtrlComboBox_SetCurSel($g_hCmbSuperTroopsResources, $g_iCmbSuperTroopsResources)
chkSuperTroops()
cmbSuperTroopsResources()
Case "Save"
$g_iCmbBoostBarracks = _GUICtrlComboBox_GetCurSel($g_hCmbBoostBarracks)
Expand All @@ -1256,6 +1257,7 @@ Func ApplyConfig_600_22($TypeReadSave)
$g_iCmbSuperTroops[$i] = _GUICtrlComboBox_GetCurSel($g_ahCmbSuperTroops[$i])
Next
; Custom Super Troops - Team AIO Mod++
$g_bSuperAutoTroops = (GUICtrlRead($g_hChkSuperAutoTroops) = $GUI_CHECKED)
$g_iCmbSuperTroopsResources = _GUICtrlComboBox_GetCurSel($g_hCmbSuperTroopsResources)
EndSwitch
EndFunc ;==>ApplyConfig_600_22
Expand Down
3 changes: 3 additions & 0 deletions COCBot/functions/Config/readConfig.au3
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,8 @@ Func ReadConfig_600_22()
For $i = 0 To 23
$g_abBoostBarracksHours[$i] = ($g_abBoostBarracksHours[$i] = "1")
Next


IniReadS($g_bSuperTroopsEnable, $g_sProfileConfigPath, "SuperTroopsBoost", "SuperTroopsEnable", False, "Bool")
For $i = 0 To $iMaxSupersTroop - 1
$g_iCmbSuperTroops[$i] = Int(IniRead($g_sProfileConfigPath, "SuperTroopsBoost", "SuperTroopsIndex" & $i, 0))
Expand All @@ -1094,6 +1096,7 @@ Func ReadConfig_600_22()
; Note: These global variables are not stored to the ini file, to prevent automatic boosting (and spending of gems) when the bot is started:
; $g_iCmbBoostBarracks, $g_iCmbBoostSpellFactory, $g_iCmbBoostWorkshop, $g_iCmbBoostBarbarianKing, $g_iCmbBoostArcherQueen, $g_iCmbBoostWarden
; Custom Super Troops - Team AIO Mod++
IniReadS($g_bSuperAutoTroops, $g_sProfileConfigPath, "SuperTroopsBoost", "SuperAutoTroops", True, "Bool")
$g_iCmbSuperTroopsResources = Int(IniRead($g_sProfileConfigPath, "SuperTroopsBoost", "CmbSuperTroopsResources", 0))
EndFunc ;==>ReadConfig_600_22

Expand Down
1 change: 1 addition & 0 deletions COCBot/functions/Config/saveConfig.au3
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,7 @@ Func SaveConfig_600_22()
_Ini_Add("SuperTroopsBoost", "SuperTroopsIndex" & $i, $g_iCmbSuperTroops[$i])
Next
; Custom Super Troops - Team AIO Mod++
_Ini_Add("SuperTroopsBoost", "SuperAutoTroops", $g_bSuperAutoTroops ? 1 : 0)
_Ini_Add("SuperTroopsBoost", "CmbSuperTroopsResources", $g_iCmbSuperTroopsResources)
EndFunc ;==>SaveConfig_600_22

Expand Down
4 changes: 4 additions & 0 deletions ModChangelog
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
Do everything you project.

Based on MyBot.run v7.9.7
v5.0.6 - Date: 18/4/2022
- Improved: Nox support.
- Fixed: SuperTroops.

v5.0.5 - Date: 13/4/2022
- Improved some things.
- Fixed: Quick train not double train and improved troops detection.
Expand Down
2 changes: 1 addition & 1 deletion MyBot.run.version.au3
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
Global $g_sBotVersion = "v7.9.7" ;~ Don't add more here, but below. Version can't be longer than vX.y.z because it is also used in Checkversion()

; Check Version - Team AiO MOD++
Global $g_sModVersion = "v5.0.5" ;<== Just Change This to Version Number
Global $g_sModVersion = "v5.0.6" ;<== Just Change This to Version Number
Global $g_sModSupportUrl = "https://github.com/boludoz/AIO-Mod/releases" ;<== Our Website Link Download

0 comments on commit fbac4f6

Please sign in to comment.