Skip to content

Commit

Permalink
1.9.7
Browse files Browse the repository at this point in the history
- Allow Undead and Night Elf citizens to directly build their goldmines instead of housings.
- Add missing hero icon for Cenarius.
- Fix level of Auto Repair ability when constructing a new Power Generator.
- Fix singleplayer detection for generating savecodes.
- Hero Mountain Giant is not affected by Improved Mount anymore.
- Mention Single/Multiplayer in stats multiboard title.
- Remove Cyclone from Cenarius.
- Set the level of research Cheap Evolution from a savecode as well.
- Replace Demon Infernals by creep Infernals for Dark Portal from Archimonde at level 3.
- Store the hero level in the savecode file name.
- Add missing hero icons for Admiral Proudmoore.
- Fix counting sold workers in the stats multiboard.
- Make walls invulnerable.
- Use player colors for font in the stats multiboard.
- Translate tooltips of Summon Lava Spawn into English.
- Increase range of True Sight from Arcane Observatory.
- Revise savecode messages and print a message during hero selection.
- The lowest hero level of playing users will determine the Evolution level of creeps and bosses.
- Improved Mount research increases the sight range and the cargo slots of mounts.
- Fix tooltip of Improved Mount research.
- Add Neutral Goblin Laboratory and Neutral Mercenary Camp to Freelancers to separate upgrades and units from the Hideout.
- Freelancer AI builds these buildings as well as a Power Generator and uses more upgrades.
- Give multiple melee bosses orbs, so they can attack air units.
- Freelancer AI attacks with trained creeps.
- Give Freelancer AI some start resources.
- Enable Freelancer research for Freelancer AI.
- Add missing hero icon of Anasterian Sunstrider.
- Add hero glow to Anasterian Sunstrider.
- Add walls and gates to be constructed by female citizens.
- Add Neutral Citizens (female).
- Haunted and Entrangled Goldmines train female citizens and pets now.
- Female Citizens can place Goblin Land Mines now.
- Add Pick up all Items to the backpack.
  • Loading branch information
tdauth committed Jan 6, 2022
1 parent 7d5f4f6 commit ad53caf
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/Systems.j
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,35 @@ function ClearRucksackForPlayer takes integer PlayerNumber returns nothing
endloop
endfunction

function AddItemToBackpackForPlayer takes integer PlayerNumber, item whichItem returns boolean
local integer I0 = 0
local integer I1 = 0
local integer index = 0
set I0 = 0
loop
exitwhen(I0 == udg_RucksackMaxPages)
exitwhen (whichItem == null)
set I1 = 0
loop
exitwhen(I1 == bj_MAX_INVENTORY)
exitwhen (whichItem == null)
set index = Index3D(PlayerNumber, I0, I1, udg_RucksackMaxPages, bj_MAX_INVENTORY)
if (udg_RucksackItemType[index] == 0) then
set udg_RucksackItemType[index] = GetItemTypeId(whichItem)
set udg_RucksackItemCharges[index] = GetItemCharges(whichItem)
call RemoveItem(whichItem)
set whichItem = null

return true
endif
set I1 = I1 + 1
endloop
set I0 = I0 + 1
endloop

return false
endfunction

function DestroyRucksackSystemForPlayer takes integer PlayerNumber returns nothing
if (udg_Rucksack[PlayerNumber] != null) then
call RemoveUnit(udg_Rucksack[PlayerNumber])
Expand Down
Binary file modified wowr1.9.7.w3x
Binary file not shown.

0 comments on commit ad53caf

Please sign in to comment.