Skip to content

Commit

Permalink
Support BGE Crackdown
Browse files Browse the repository at this point in the history
  • Loading branch information
APN-Pucky committed Sep 8, 2018
1 parent 117e625 commit b29e294
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Makefile.ahk.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@Echo off
"C:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe" /in SimpleTUOptimizeStarter.ahk /out SimpleTUOptimizeStarter.exe
"C:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe" /in SimpleTUOptimizeStarter.ahk /out SimpleTUOptimizeStarter-x86.exe /bin "C:\Program Files\AutoHotkey\Compiler\ANSI 32-bit.bin"
Binary file modified SimpleTUOptimizeStarter-x86.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion SimpleTUOptimizeStarter.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ FileDelete, %file%

MaxCardsSections := 100

BGEffects := "none|Devotion|Unity|Iron-Will|Cold-Sleep|Blood-Vengeance|Oath-of-Loyalty|Furiosity|TemporalBacklash|CriticalReach|Devour|HaltedOrders|ZealotsPreservation|Virulence|Enfeeble all X|Enhance all S X|Evolve n S1 S2|Heal all X|Mortar X|Protect all X|Rally all X|Siege all X|Strike all X|Weaken all X|Brigade|Bloodlust X|Counterflux|Divert|EnduringRage|Fortification|Heroism|Metamorphosis|Megamorphosis|Revenge X|TurningTides"
BGEffects := "none|Crackdown|Devotion|Unity|Iron-Will|Cold-Sleep|Blood-Vengeance|Oath-of-Loyalty|Furiosity|TemporalBacklash|CriticalReach|Devour|HaltedOrders|ZealotsPreservation|Virulence|Enfeeble all X|Enhance all S X|Evolve n S1 S2|Heal all X|Mortar X|Protect all X|Rally all X|Siege all X|Strike all X|Weaken all X|Brigade|Bloodlust X|Counterflux|Divert|EnduringRage|Fortification|Heroism|Metamorphosis|Megamorphosis|Revenge X|TurningTides"
IniFileName := "data\SimpleTUOptimizeStarter.ini"
IniSection := "onLoad"

Expand Down
Binary file modified SimpleTUOptimizeStarter.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion sim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ void turn_end_phase(Field* fd)
{
continue;
}
unsigned refresh_value = status.skill(Skill::refresh);
unsigned refresh_value = status.skill(Skill::refresh) + __builtin_expect(fd->bg_effects[fd->tapi][PassiveBGE::crackdown],false)?(status.skill(Skill::subdue)+1)/2:0; //BGE: crackdown refresh+=subdue/2
if (refresh_value && skill_check<Skill::refresh>(fd, &status, nullptr))
{
_DEBUG_MSG(1, "%s refreshes %u health\n", status_description(&status).c_str(), refresh_value);
Expand Down
4 changes: 2 additions & 2 deletions tyrant.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ enum Skill
payback, revenge, tribute, refresh, wall, barrier,

// Combat-Modifier:
coalition, legion, pierce, rupture, swipe, drain, venom, hunt,
coalition, legion, pierce, rupture, swipe, drain, venom, hunt,

// Damage-Dependent:
berserk, inhibit, sabotage, leech, poison,
Expand Down Expand Up @@ -84,7 +84,7 @@ enum PassiveBGE
bloodlust, brigade, counterflux, divert, enduringrage, fortification, heroism,
zealotspreservation, metamorphosis, megamorphosis, revenge, turningtides, virulence,
haltedorders, devour, criticalreach, temporalbacklash, furiosity, oath_of_loyalty,
bloodvengeance, coldsleep,ironwill,unity,devotion,
bloodvengeance, coldsleep,ironwill,unity,devotion,crackdown,

// End of BGEs
num_passive_bges
Expand Down
1 change: 1 addition & 0 deletions tyrant_optimize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1844,6 +1844,7 @@ void print_available_effects()
" Iron-Will\n"
" Unity\n"
" Devotion\n"
" Crackdown\n"
;
}
void usage(int argc, char** argv)
Expand Down

0 comments on commit b29e294

Please sign in to comment.