Skip to content

Commit f30e2b4

Browse files
committed
Support 2.0.2 war3 patch #512
1 parent ec587f9 commit f30e2b4

File tree

10 files changed

+30
-18
lines changed

10 files changed

+30
-18
lines changed

CHANGELOG.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66
## [Unreleased]
77

88
### Added
9-
- (DevTools) Strategy Manager now has tooltips for various buttons.
9+
- Optimal version for REFORGED in line with war3 2.0.2 patch.
10+
- (DevTools) Strength prediction rules supports negative end time to have running all game.
11+
- (DevTools) Strategy Manager now has tooltips for various buttons.
1012
- (DevTools) Strategy Manager can now compile all scripts.
1113
- (DevTools) Strategy Manager now finally has some mouse wheel support (jzy-chitong56)
1214

1315
### Changed
14-
- Some fixes and optimizations to the chat logic.
16+
- Some fixes and optimizations to the chat logic. (jzy-chitong56)
1517

1618
### Fixed
1719
- Fixed some consistency and edge case issues when checking if expansions are claimed. (jzy-chitong56)
1820
- Improvements to the chinese language translations (jzy-chitong56)
19-
- Fixes to random hero mode not being responsive enough in detecting the hero (jzy-chitong56)
21+
- Fixes to random hero mode not being responsive enough in detecting the hero.
2022
- (DevTools) Strategy Manager will strip whitespace when extracting or importing new strategies and profiles correctly. (jzy-chitong56)
2123

22-
2324
## [3.4.2b] - 2025-04-05
2425

2526
### Changed

Electron/src/app/home/home.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ <h1 class="title">
88
<img id="ImagesREFEnable" src="assets/REF.Enable.png" alt="REFSelected" [ngStyle]="{'display': Images_REF_Shown ? 'block' : 'none'}"/>
99
<img id="ImagesREFDisable" src="assets/REF.Disable.png" alt="REF" [ngStyle]="{'display': !Images_REF_Shown ? 'block' : 'none'}"/>
1010
<span>1.33+</span>
11-
<span class="reccomendations">Optimal:1.36.2-2.0.0</span>
11+
<span class="reccomendations">Optimal:2.0.2</span>
1212
</div>
1313
<div id="imageTFT" class="imageContainerTFT" #imageTFT data-action="Tft" (mouseover)="onMouseEnter($event, 'Tft')" (mouseout)="onMouseLeave($event, 'Tft')" (click)="onClick($event, 'Tft')">
1414
<img id="ImagesTFTEnable" src="assets/TFT.Enable.png" alt="TFTSelected" [ngStyle]="{'display': Images_TFT_Shown ? 'block' : 'none'}"/>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Improvements and fixes to the core AI engine will improve the older scripts as w
3333

3434
| AMAI Scripts | Optimal Version | Supported Version |
3535
| ----------------- | ------------------- | ------------------|
36-
| **REFORGED** | **1.36.2-2.0.0** | 1.33+ |
36+
| **REFORGED** | **2.0.2** | 1.33+ |
3737
| **TFT** | **1.24-1.28** | 1.24+ |
3838
| **ROC** | **1.24-1.28** | 1.24 - 1.31 |
3939

REFORGED/Elf/BuildSequence.ai

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ function global_build_sequence takes nothing returns nothing
208208
// TIER 1 UPGRADES
209209
//--------------------------------------------------------
210210
if tier >= 1 then
211+
call BuildUpgr(1, UPG_BACKPACK_ELF, 10)
211212
endif
212213
call BuildAdvUpgr2(1, UPG_ULTRAVISION, 1, TownCountDone(ARCHER) + TownCountDone(HUNTRESS), 5, 10, 10)
213214
call BuildAdvUpgr2(1, UPG_SCOUT, 1,TownCountDone(HUNTRESS),1,10,15)
@@ -223,7 +224,9 @@ function global_build_sequence takes nothing returns nothing
223224
call BuildUpgr(1, UPG_BLESSING, 50)
224225
endif
225226
call BuildAdvUpgr2(1, UPG_BOWS,2,TownCountDone(ARCHER),1,10,40)
226-
call BuildAdvUpgr2(1, UPG_GLAIVE, 2,TownCountDone(HUNTRESS),0.5,15,70)
227+
if enemy_magic < 10 or enemy_piercing > enemy_magic*2 or enemy_siege > enemy_magic*2 then // converts to heavy armor if upgraded so avoid if enemy type counters that armor
228+
call BuildAdvUpgr2(1, UPG_GLAIVE, 2,TownCountDone(HUNTRESS),0.5,15,70)
229+
endif
227230
call BuildAdvUpgr2(1, UPG_BOLT, 2,TownCountDone(BALLISTA),0.25,10,40)
228231
call BuildAdvUpgr2(1, UPG_ABOLISH, 2, TownCountDone(DRYAD),0.33,15,75)
229232
call BuildAdvUpgr2(2, UPG_DRUID_CLAW, 2, TownCountDone(DRUID_CLAW),0.33,15,80)

REFORGED/Human/BuildSequence.ai

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ function global_build_sequence takes nothing returns nothing
213213

214214
// TIER 1 UPGRADES
215215
//--------------------------------------------------------
216-
if tier == 1 then
216+
if tier >= 1 then
217+
call BuildUpgr(1, UPG_BACKPACK_HUMAN, 10)
217218
endif
218219
call BuildAdvUpgr2(1, UPG_DEFEND, 1,TownCountDone(FOOTMAN), 0.33, 15, 50)
219220
call BuildAdvUpgr(1, UPG_WOOD,1,1,1,5,40)

REFORGED/Orc/BuildSequence.ai

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ function global_build_sequence takes nothing returns nothing
207207

208208
// TIER 1 UPGRADES
209209
//--------------------------------------------------------
210-
if tier == 1 then
210+
if tier >= 1 then
211+
call BuildUpgr(1, UPG_BACKPACK_ORC, 10)
211212
endif
212213
call BuildAdvUpgr2(3, UPG_ORC_MELEE, 1,TownCountDone(GRUNT) + TownCountDone(TAUREN) + TownCountDone(RAIDER), 4,15,40)
213214
call BuildAdvUpgr2(3, UPG_ORC_ARMOR, 1,TownCountDone(GRUNT) + TownCountDone(TAUREN) + TownCountDone(RAIDER) + TownCountDone(HEAD_HUNTER) + TownCountDone(CATAPULT) + TownCountDone(KODO_BEAST) + TownCountDone(WYVERN) + TownCountDone(BATRIDER), 3,15,40)

REFORGED/StandardUnits.txt

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ STEAM_TANK hmtt HUMAN siege UNIT WORKSHOP CASTLE 0 ROCKET_TANK 0 true 0 0 0 0 0
1919
ROCKET_TANK hrtt HUMAN siege UNIT WORKSHOP CASTLE 0 STEAM_TANK 0 true 0 0 0 0 0 0 0 1 0 0 3 0 0 0 0 0
2020
MILITIA hmil HUMAN militia,mutated UNIT 0 0 0 PEASANT 0 false 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1
2121
SPELL_BREAKER hspt HUMAN 0 UNIT SANCTUM KEEP ARCANE_VAULT 0 0 true 0 0 0 0 0 0 0 0 0 3 0 0 0 0 3 0
22-
HUMAN_DRAGON_HAWK hdhw HUMAN 0 UNIT AVIARY ARCANE_VAULT 0 0 0 true 0 0 0 0 0 3 0 0 3 0 0 0 0 3 0 0
22+
HUMAN_DRAGON_HAWK hdhw HUMAN 0 UNIT AVIARY 0 0 0 0 true 0 0 0 0 0 3 0 0 3 0 0 0 0 3 0 0
2323
AVIARY hgra HUMAN 0 BUILDING PEASANT KEEP LUMBER_MILL 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2424
BARRACKS hbar HUMAN 0 BUILDING PEASANT 0 0 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2525
BLACKSMITH hbla HUMAN 0 BUILDING PEASANT TOWN_HALL 0 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
@@ -56,8 +56,9 @@ UPG_CONT_MAGIC Rhss HUMAN upgrade UPGRADE SANCTUM CASTLE ARCANE_VAULT 0 0 false
5656
UPG_FRAGS Rhfs HUMAN upgrade UPGRADE WORKSHOP CASTLE 0 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
5757
UPG_TANK Rhrt HUMAN upgrade UPGRADE WORKSHOP CASTLE 0 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
5858
UPG_FLAK Rhfc HUMAN upgrade UPGRADE WORKSHOP KEEP 0 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
59-
UPG_CLOUD Rhcd HUMAN upgrade UPGRADE AVIARY CASTLE ARCANE_VAULT 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
59+
UPG_CLOUD Rhcd HUMAN upgrade UPGRADE AVIARY CASTLE 0 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
6060
UPG_SUN_BLADE Rhsb HUMAN upgrade UPGRADE BARRACKS CASTLE BLACKSMITH 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
61+
UPG_BACKPACK_HUMAN Rhpm HUMAN upgrade UPGRADE 0 0 0 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
6162
BLADE_MASTER Obla ORC hero HERO ORC_ALTAR STRONGHOLD FORTRESS 0 0 false 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0
6263
FAR_SEER Ofar ORC hero HERO ORC_ALTAR STRONGHOLD FORTRESS 0 0 false 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
6364
TAUREN_CHIEF Otch ORC hero HERO ORC_ALTAR STRONGHOLD FORTRESS 0 0 false 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
@@ -106,6 +107,7 @@ UPG_ORC_DOCS Rowd ORC upgrade ML_UPGRADE LODGE FORTRESS 0 0 0 false 0 0 0 0 0 0
106107
UPG_ORC_SHAMAN Rost ORC upgrade ML_UPGRADE LODGE FORTRESS 0 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
107108
UPG_ORC_SWALKER Rowt ORC upgrade ML_UPGRADE TOTEM FORTRESS 0 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
108109
UPG_ORC_NAPTHA Robf ORC upgrade UPGRADE ORC_BARRACKS FORTRESS 0 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
110+
UPG_BACKPACK_ORC Ropm ORC upgrade UPGRADE 0 0 0 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
109111
DEATH_KNIGHT Udea UNDEAD hero HERO UNDEAD_ALTAR NECROPOLIS_2 NECROPOLIS_3 0 0 false 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0
110112
DREAD_LORD Udre UNDEAD hero HERO UNDEAD_ALTAR NECROPOLIS_2 NECROPOLIS_3 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
111113
LICH Ulic UNDEAD hero HERO UNDEAD_ALTAR NECROPOLIS_2 NECROPOLIS_3 0 0 false 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
@@ -161,6 +163,7 @@ UPG_UNHOLY_ARMOR Ruar UNDEAD upgrade ML_UPGRADE GRAVEYARD NECROPOLIS_2 NECROPOLI
161163
UPG_CR_ARMOR Rucr UNDEAD upgrade ML_UPGRADE GRAVEYARD NECROPOLIS_2 NECROPOLIS_3 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
162164
UPG_NECROS Rune UNDEAD upgrade ML_UPGRADE DAMNED_TEMPLE NECROPOLIS_3 0 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
163165
UPG_BANSHEE Ruba UNDEAD upgrade ML_UPGRADE DAMNED_TEMPLE NECROPOLIS_3 0 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
166+
UPG_BACKPACK_UNDEAD Rupm UNDEAD upgrade UPGRADE 0 0 0 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
164167
DEMON_HUNTER Edem ELF hero HERO ELF_ALTAR TREE_AGES TREE_ETERNITY 0 0 false 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0
165168
DEMON_HUNTER_M Edmm ELF hero,mutated HERO ELF_ALTAR TREE_AGES TREE_ETERNITY 0 0 false 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0
166169
KEEPER Ekee ELF hero HERO ELF_ALTAR TREE_AGES TREE_ETERNITY 0 0 false 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
@@ -176,7 +179,7 @@ DRUID_CLAW_M edcm ELF mutated UNIT 0 0 0 0 DRUID_CLAW true 0 0 0 0 0 0 4 0 0 4 0
176179
DRYAD edry ELF 0 UNIT ANCIENT_LORE 0 0 0 0 true 0 0 0 0 0 0 0 0 3 0 0 0 3 0 0 0
177180
HIPPO ehip ELF 0 UNIT ANCIENT_WIND 0 0 0 0 true 0 0 0 0 0 2 0 0 0 2 0 0 2 0 0 0
178181
HIPPO_RIDER ehpr ELF 0 UNIT HIPPO ARCHER 0 0 0 true 0 0 0 0 0 4 0 0 4 0 0 0 0 4 0 0
179-
HUNTRESS esen ELF 0 UNIT ANCIENT_WAR HUNTERS_HALL 0 0 0 true 0 0 0 0 0 0 0 0 0 3 0 0 3 0 0 0
182+
HUNTRESS esen ELF 0 UNIT ANCIENT_WAR HUNTERS_HALL 0 0 0 true 0 0 0 0 0 0 0 0 0 3 0 0 3-3*GetUpgradeLevel(old_id[UPG_GLAIVE]) 0 0 3*GetUpgradeLevel(old_id[UPG_GLAIVE])
180183
CHIMAERA echm ELF siege UNIT CHIMAERA_ROOST 0 0 0 0 true 0 0 0 0 0 5 0 0 0 0 0 5 0 5 0 0
181184
ENT efon ELF 0 UNIT KEEPER 0 0 0 0 false 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1
182185
MOUNTAIN_GIANT emtg ELF 0 UNIT ANCIENT_LORE TREE_AGES DEN_OF_WONDERS 0 0 true 0 0 0 0 0 0 0 0 0 7 3 0 0 0 7 0
@@ -215,6 +218,7 @@ UPG_MOON_ARMOR Rema ELF upgrade ML_UPGRADE HUNTERS_HALL TREE_AGES TREE_ETERNITY
215218
UPG_HIDES Rerh ELF upgrade ML_UPGRADE HUNTERS_HALL TREE_AGES TREE_ETERNITY 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
216219
UPG_DRUID_TALON Redt ELF upgrade ML_UPGRADE ANCIENT_WIND TREE_ETERNITY 0 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
217220
UPG_DRUID_CLAW Redc ELF upgrade ML_UPGRADE ANCIENT_LORE TREE_ETERNITY 0 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
221+
UPG_BACKPACK_ELF Repm ELF upgrade UPGRADE 0 0 0 0 0 false 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
218222
NAGA_SORCERESS Nngs NEUTRAL hero NEUTRAL_HERO racial_altar racial_hall[2] racial_hall[3] 0 0 false 135 2 0 0 2 0 0 0 0 0 0 0 0 0 0 0
219223
BEAST_MASTER Nbst NEUTRAL hero NEUTRAL_HERO racial_altar racial_hall[2] racial_hall[3] 0 0 false 135 2 0 0 2 0 0 0 0 0 0 0 0 0 0 0
220224
DARK_RANGER Nbrn NEUTRAL hero NEUTRAL_HERO racial_altar racial_hall[2] racial_hall[3] 0 0 false 135 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0
@@ -275,7 +279,7 @@ KOBOLD nkob NEUTRAL merc MERC 0 0 0 0 0 true 60 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0
275279
MURLOC_HUNTSMAN nmrr NEUTRAL merc MERC 0 0 0 0 0 true 110 110 0 0 0 0 0 0 0 0 0 0 0 0 0 0
276280
DARK_TROLL_BERSERKER ndtb NEUTRAL merc MERC 0 0 0 0 0 true 220 210 0 0 0 0 0 0 0 0 0 0 0 0 0 0
277281
DARK_TROLL_SHADOW_PRIEST ndtp NEUTRAL merc MERC 0 0 0 0 0 true 120 110 0 0 0 0 0 0 0 0 0 0 0 0 0 0
278-
GIANT_WOLF nwlg NEUTRAL merc MERC 0 0 0 0 0 true 220 210 0 0 0 0 0 0 0 0 0 0 0 0 0 0
282+
GIANT_WOLF nwlg NEUTRAL merc MERC 0 0 0 0 0 true 440 210 0 0 0 0 0 0 0 0 0 0 0 0 0 0
279283
QUILLBOAR_HUNTER nqbh NEUTRAL merc MERC 0 0 0 0 0 true 220 160 0 0 0 0 0 0 0 0 0 0 0 0 0 0
280284
CENTAUR_ARCHER ncea NEUTRAL merc MERC 0 0 0 0 0 true 120 110 0 0 0 0 0 0 0 0 0 0 0 0 0 0
281285
BLOODFIEND nfgb NEUTRAL merc MERC 0 0 0 0 0 true 220 210 0 0 0 0 0 0 0 0 0 0 0 0 0 0
@@ -320,7 +324,7 @@ HEALING_POTION phea item RACIAL_ITEM racial_shop racial_hall[2] 0 0 0 false 440
320324
MANA_POTION pman item RACIAL_ITEM racial_shop racial_hall[2] 0 0 0 false 440 120 150 0 0 0 0 0 0 0 0 0 0 0 0 0
321325
TOWN_PORTAL stwp item tp RACIAL_ITEM racial_shop racial_hall[2] 0 0 0 false 440 120 325 0 0 0 0 0 0 0 0 0 0 0 0 0
322326
IVORY_TOWER tsct item RACIAL_ITEM racial_shop racial_hall[2] 0 0 0 false 0 30 40 25 0 0 0 0 0 0 0 0 0 0 0 0
323-
ORB_OF_FIRE ofr2 item RACIAL_ITEM racial_shop racial_hall[3] 0 0 0 false 0 120 250 0 0 0 0 0 0 0 0 0 0 0 0 0
327+
ORB_OF_SLOW oslo item RACIAL_ITEM racial_shop racial_hall[3] 0 0 0 false 0 120 325 0 0 0 0 0 0 0 0 0 0 0 0 0
324328
STAFF_OF_SANCTUARY ssan item sanctuary_item RACIAL_ITEM racial_shop racial_hall[3] 0 0 0 false 0 120 200 0 0 0 0 0 0 0 0 0 0 0 0 0
325329
HEALING_SALVE hslv item RACIAL_ITEM racial_shop 0 0 0 0 false 0 60 100 0 0 0 0 0 0 0 0 0 0 0 0 0
326330
SCROLL_OF_SPEED shas item RACIAL_ITEM racial_shop 0 0 0 0 false 0 60 70 0 0 0 0 0 0 0 0 0 0 0 0 0
@@ -336,7 +340,7 @@ MOONSTONE moon item RACIAL_ITEM racial_shop 0 0 0 0 false 0 90 50 0 0 0 0 0 0 0
336340
STAFF_OF_PRESERVATION spre item preservation_item RACIAL_ITEM racial_shop racial_hall[2] 0 0 0 false 0 120 150 0 0 0 0 0 0 0 0 0 0 0 0 0
337341
ORB_OF_VENOM oven item RACIAL_ITEM racial_shop racial_hall[3] 0 0 0 false 0 120 325 0 0 0 0 0 0 0 0 0 0 0 0 0
338342
ANTI_MAGIC_POTION pams item RACIAL_ITEM racial_shop racial_hall[3] 0 0 0 false 0 120 100 0 0 0 0 0 0 0 0 0 0 0 0 0
339-
RITUAL_DAGGER ritd item RACIAL_ITEM racial_shop 0 0 0 0 false 0 90 100 0 0 0 0 0 0 0 0 0 0 0 0 0
343+
RITUAL_DAGGER ritd item RACIAL_ITEM racial_shop 0 0 0 0 false 0 90 75 0 0 0 0 0 0 0 0 0 0 0 0 0
340344
CIRCLET_OF_NOBILITY cnob item MERCHANT_ITEM 0 0 0 0 0 false 0 120 200 0 0 0 0 0 0 0 0 0 0 0 0 0
341345
PERIAPT_OF_VITALITY prvt item MERCHANT_ITEM 0 0 0 0 0 false 0 120 300 0 0 0 0 0 0 0 0 0 0 0 0 0
342346
BOOTS_OF_SPEED bspd item MERCHANT_ITEM 0 0 0 0 0 false 220 60 250 0 0 0 0 0 0 0 0 0 0 0 0 0

REFORGED/StrengthPredictionRules.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ magic 20 40 GetPlayerUnitTypeCount(p, oLODGE) >= 1 10
1010
magic 20 40 GetPlayerUnitTypeCount(p, oANCIENT_WIND) >= 1 5
1111
air 20 50 GetPlayerUnitTypeCount(p, oANCIENT_WIND) >= 1 and GetPlayerUnitTypeCount(p, oTREE_ETERNITY) >= 1 10
1212
air 20 40 GetPlayerUnitTypeCount(p, oAVIARY) >= 1 10
13-
normal 0 30 true 8
13+
normal 0 30 true 8
14+
heavyarmor 0 -1 tier >= 2 and GetUpgradeLevel(old_id[UPG_GLAIVE]) == 0 and GetPlayerUnitTypeCount(p, oHUNTRESS) >= 1 10

REFORGED/Undead/BuildSequence.ai

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ function global_build_sequence takes nothing returns nothing
182182

183183
// TIER 1 UPGRADES
184184
//--------------------------------------------------------
185-
if tier == 1 then
185+
if tier >= 1 then
186+
call BuildUpgr(1, UPG_BACKPACK_UNDEAD, 10)
186187
endif
187188
call BuildAdvUpgr2(3, UPG_UNHOLY_STR, 1,TownCountDone(GHOUL) + TownCountDone(ABOMINATION) + TownCountDone(MEAT_WAGON), 3,15,35)
188189
call BuildAdvUpgr2(3, UPG_UNHOLY_ARMOR,1,TownCountDone(GHOUL) + TownCountDone(ABOMINATION),3,15,35)

common.eai

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5480,7 +5480,7 @@ function GetPlayer%1Strength takes player p returns real
54805480
#ENDINCLUDE
54815481
#DEFINE $CSTRENGTH$ %1
54825482
#INCLUDETABLE <$VER$\StrengthPredictionRules.txt> #EFR #COND '%1' eq '$CSTRENGTH$'
5483-
if ai_time >= %2 and ai_time <= %3 and %4 then
5483+
if ai_time >= %2 and ((%3 >= 0 and ai_time <= %3) or %3 < 0) and %4 then
54845484
set strength = strength + %5
54855485
endif
54865486
#ENDINCLUDE

0 commit comments

Comments
 (0)