Skip to content

Commit

Permalink
Merge pull request #62 from StoicLoofah/balance_patch_5_0_11_support
Browse files Browse the repository at this point in the history
update ladder data for 5.0.11, mark 2.10.0 release
  • Loading branch information
StoicLoofah authored Feb 14, 2023
2 parents 42cc5ab + dd30c0b commit 7566f45
Show file tree
Hide file tree
Showing 10 changed files with 38,158 additions and 33,086 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Changes
=======

* v2.10.0, February 13, 2023 -- update ladder data for balance patch 5.0.11
* v2.9.0, August 17, 2021 -- Fix Liberator build time, add more display names
* v2.8.0, October 28, 2020 -- add Mengsk
* v2.7.0, January 18, 2020 -- update ladder data for balance patch 4.11.0
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import find_packages, setup

__version__ = "2.9.0"
__version__ = "2.10.0"

setup(
name="spawningtool",
Expand Down
31 changes: 16 additions & 15 deletions spawningtool/lotv_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
"display_name": "Liberator"
},
"Raven": {
"build_time": 43,
"build_time": 34, # 42.9 -> 34.3 in 5.0.11
"built_from": [ "Starport" ],
"display_name": "Raven"
},
Expand Down Expand Up @@ -187,7 +187,7 @@
"display_name": "Stalker"
},
"Sentry": {
"build_time": 26,
"build_time": 23, # 26.4 -> 22.9 in 5.0.11
"built_from": [ "Gateway", "WarpGate" ],
"display_name": "Sentry"
},
Expand Down Expand Up @@ -358,7 +358,8 @@
"built_from": [ "Overlord" ],
"display_name": "Overseer"
},
"RavagerCocoon": { # Ravager - egg not itself because it is the start time, normal build time is 9
"RavagerCocoon": { # Ravager - egg not itself because it is the start time, normal build time is 12 seconds
# increased 8.57 -> 12.14 seconds in 5.0.11
"build_time": 0,
"built_from": [ "Roach" ],
"display_name": "Ravager"
Expand Down Expand Up @@ -739,7 +740,7 @@
"built_from": [ "GhostAcademy" ],
"display_name": "Moebius Reactor"
},
"EnhancedShockwaves": {
"EnhancedShockwaves": { # deprecated in 5.0.11
"build_time": 79,
"built_from": [ "GhostAcademy" ],
"display_name": "Enhanced Shockwaves",
Expand Down Expand Up @@ -817,13 +818,13 @@
"built_from": [ "TechLab" ],
"display_name": "Durable Materials"
},
"RavenCorvidReactor": {
"RavenCorvidReactor": { # deprecated in 5.0.11
"build_time": 79,
"built_from": [ "TechLab" ],
"display_name": "Corvid Reactor"
},
"BansheeSpeed": {
"build_time": 121, # was 93 before 3.8.0
"build_time": 121, # 93 -> 121 in 3.8.0, 121.4 -> 100 in 5.0.11
"built_from": [ "TechLab" ],
"display_name": "Hyperflight Rotors"
},
Expand Down Expand Up @@ -858,47 +859,47 @@
},
# protoss upgrades
"ProtossGroundWeaponsLevel1": {
"build_time": 129,
"build_time": 122, # 128.6 -> 121.6 in 5.0.11
"built_from": [ "Forge" ],
"display_name": "Protoss Ground Weapons Level 1"
},
"ProtossGroundWeaponsLevel2": {
"build_time": 154,
"build_time": 145, # 153.6 -> 144.6 in 5.0.11
"built_from": [ "Forge" ],
"display_name": "Protoss Ground Weapons Level 2"
},
"ProtossGroundWeaponsLevel3": {
"build_time": 179,
"build_time": 168, # 178.6 -> 167.9 in 5.0.11
"built_from": [ "Forge" ],
"display_name": "Protoss Ground Weapons Level 3"
},
"ProtossGroundArmorsLevel1": {
"build_time": 129,
"build_time": 122, # 128.6 -> 121.6 in 5.0.11
"built_from": [ "Forge" ],
"display_name": "Protoss Ground Armor Level 1"
},
"ProtossGroundArmorsLevel2": {
"build_time": 154,
"build_time": 145, # 153.6 -> 144.6 in 5.0.11
"built_from": [ "Forge" ],
"display_name": "Protoss Ground Armor Level 2"
},
"ProtossGroundArmorsLevel3": {
"build_time": 179,
"build_time": 168, # 178.6 -> 167.9 in 5.0.11
"built_from": [ "Forge" ],
"display_name": "Protoss Ground Armor Level 3"
},
"ProtossShieldsLevel1": {
"build_time": 129,
"build_time": 122, # 128.6 -> 121.6 in 5.0.11
"built_from": [ "Forge" ],
"display_name": "Protoss Shields Level 1"
},
"ProtossShieldsLevel2": {
"build_time": 154,
"build_time": 145, # 153.6 -> 144.6 in 5.0.11
"built_from": [ "Forge" ],
"display_name": "Protoss Shields Level 2"
},
"ProtossShieldsLevel3": {
"build_time": 179,
"build_time": 168, # 178.6 -> 167.9 in 5.0.11
"built_from": [ "Forge" ],
"display_name": "Protoss Shields Level 3"
},
Expand Down
15 changes: 15 additions & 0 deletions tests/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def assertObjectsEqual(self, results, expected_results, path):
def _test_replay(self, filename, expected_results_filename):
results = spawningtool.parser.parse_replay("replays/{}".format(filename))
with open('tests/{}'.format(expected_results_filename), 'r') as expected_results_file:
# json.dump(results, expected_results_file, indent=4)
expected_results = json.load(expected_results_file)

self.assertDictsEqual(results, expected_results)
Expand Down Expand Up @@ -92,6 +93,20 @@ def test_coop(self):
self._test_replay('kerrigan.SC2Replay',
'kerrigan.json')

def test_patch_400(self):
"""
Test 4.0.0 patch
"""
self._test_replay('patch_400.SC2Replay',
'patch_400.json')

def test_patch_5_0_11(self):
"""
Test 5.0.11 patch
"""
self._test_replay('patch_5_0_11.SC2Replay',
'patch_5_0_11.json')


if __name__ == '__main__':
unittest.main()
Loading

0 comments on commit 7566f45

Please sign in to comment.