Skip to content

Commit

Permalink
Add slight detection of enemy towers #273
Browse files Browse the repository at this point in the history
  • Loading branch information
SMUnlimited committed Nov 18, 2024
1 parent 92db457 commit 6545100
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- (DevTools) Note chat placeholders is no longer supported in languages. This affects both Jass and Lua maps.
- (DevTools) Conditionals are supported in languages by adding a second column to language translations with a jass conditional expression. String comparisons can only be included in a third column which will be converted to a string as the "" characters cannot be used in the extra columns.
- Aggressive AMAI profiles now have a chance to expand early and up to a 4th mine when rich.
- Added detection of towers to base defense and triggering town threatened defense.
- (Classic) Zoom hotkeys can now be enabled or disabled via `-zoomkey` command. (jzy-chitong56)
- (Installer) Added translations to installer and will attempt to automatically set language based on users system.
- If that fails you can manually change language from the menu toolbar.
Expand Down
2 changes: 1 addition & 1 deletion Jobs/ARMY_TRACK.eai
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function UpdateSpecificTownThreat takes integer num returns nothing
local real max_threat = 0
local location loc = null

set town_threat[num] = 0
set town_threat[num] = GetLocationTowerStrength(GetLocationX(town_loc[num]), GetLocationY(town_loc[num]), ver_tower_check_radius) * 2 // Detect any tower rush events
loop
exitwhen i >= army_num
if (army_owner[i] != town_owner[i]) then
Expand Down

0 comments on commit 6545100

Please sign in to comment.