Skip to content

Commit b714397

Browse files
committed
Reorganize the data directory and add new codes for 17326 and 19595.
1 parent a2167dd commit b714397

File tree

5 files changed

+21
-16
lines changed

5 files changed

+21
-16
lines changed

sc2reader/data/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import absolute_import
22

33
from sc2reader.data.utils import DataObject
4-
from sc2reader.data.v110_113 import Data_110_113
5-
from sc2reader.data.v120_131 import Data_120_131
6-
from sc2reader.data.v132_136 import Data_132_136
7-
from sc2reader.data.v140_ import Data_140_
4+
from sc2reader.data.build16561 import Data_16561
5+
from sc2reader.data.build17326 import Data_17326
6+
from sc2reader.data.build18317 import Data_18317
7+
from sc2reader.data.build19595 import Data_19595
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from sc2reader.data.base import *
44
from sc2reader.data.utils import *
55

6-
class Data_110_113(BaseData):
6+
class Data_16561(BaseData):
77

88
class DataObject(DataObject):
99
abilities = {
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from sc2reader.data.utils import *
55

66
#Hell, this might even cover 1.3.2 as well. Definitely not 1.3.3 though.
7-
class Data_120_131(BaseData):
7+
class Data_17326(BaseData):
88

99
class DataObject(DataObject):
1010
abilities = {
@@ -15,6 +15,7 @@ class DataObject(DataObject):
1515
class Moveable(DataObject):
1616
abilities = {
1717
0x002400: 'Stop',
18+
0x002403: 'Stop',
1819
0x002602: 'Hold position',
1920
0x002610: 'Move to',
2021
0x002611: 'Patrol',
@@ -208,6 +209,7 @@ class Bunker(TerranBuilding):
208209
abilities = {
209210
0x032100: 'Salvage',
210211
0x033000: 'Stimpack', #Can bunkers really stimpack?
212+
0x032f20: 'Attack',
211213
# I don't think these 2 are right....?
212214
#0x032f20: 'Attack',
213215
#0x033300: 'Stop'
@@ -289,8 +291,8 @@ class Flying(TerranBuilding, Moveable):
289291
pass
290292

291293
@Lifts(0x020900, 0x020b10)
292-
@AddOn('Techlab', start=0x020800, move=0x020810, cancel=0x02806)
293-
@AddOn('Reactor', start=0x020801, move=0x020811, cancel=0x02806)
294+
@AddOn('Techlab', start=0x020800, move=0x020810, cancel=0x02c806)
295+
@AddOn('Reactor', start=0x020801, move=0x020811, cancel=0x02c806)
294296
class Starport(TerranBuilding, Production):
295297
abilities = {
296298
0x021200: 'Medivac',
@@ -326,6 +328,7 @@ class Flying(TerranBuilding, Moveable):
326328
class Probe(Worker):
327329
abilities = {
328330
0x012901: 'Return cargo',
331+
0x012920: 'Gather Resources',
329332
0x021b10: 'Nexus',
330333
0x021b11: 'Pylon',
331334
0x021b13: 'Gateway',
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from sc2reader.data.base import *
44
from sc2reader.data.utils import *
55

6-
class Data_132_136(BaseData):
6+
class Data_18317(BaseData):
77

88
class DataObject(DataObject):
99
abilities = {
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from sc2reader.data.base import *
44
from sc2reader.data.utils import *
55

6-
class Data_140_(BaseData):
6+
class Data_19595(BaseData):
77

88
class DataObject(DataObject):
99
abilities = {
@@ -65,6 +65,7 @@ class Research(Building):
6565
class Production(Building):
6666
abilities = {
6767
0x5820: 'Set rally point',
68+
0x5840: 'Set rally point',
6869
0x0: 'Set rally target',
6970
0x6d00: 'Cancel', # Generic ESC cancel
7071
0x0: 'Cancel unit', # Cancel + build id
@@ -182,8 +183,8 @@ class Battlecruiser(Moveable, Attacker):
182183

183184
class TerranMain(TerranBuilding):
184185
abilities = {
185-
0x0: 'Set rally point',
186-
0x0: 'Set rally target',
186+
0x5a20: 'Set rally point',
187+
0x5a40: 'Set rally target',
187188
0x10d00: 'Train SCV',
188189
}
189190

@@ -207,7 +208,7 @@ class OrbitalCommand(TerranMain, Production):
207208
0x7da0: 'Scanner Sweep',
208209
}
209210

210-
@UpgradeFrom(CommandCenter, 0x15000, 0x0)
211+
@UpgradeFrom(CommandCenter, 0x15000, 0x15001)
211212
class PlanetaryFortress(TerranMain, Production):
212213
abilties = {
213214
0x0: 'Cancel (PF ONLY)', #????
@@ -637,7 +638,7 @@ class Drone(Worker):
637638
0x129af: 'Spore Crawler',
638639
}
639640

640-
@Burrows(0x0, 0x0)
641+
@Burrows(0x14900, 0x14a00)
641642
class Queen(Moveable, Attacker):
642643
abilities = {
643644
0x17620: 'Creep Tumor',
@@ -683,7 +684,7 @@ class Burrowed(Moveable, Supporter):
683684
0x5fa0: 'Infested Terran',
684685
}
685686

686-
@Burrows(0x0, 0x0)
687+
@Burrows(0x15300, 0x15400)
687688
class Ultralisk(Moveable, Attacker):
688689
pass
689690

@@ -701,7 +702,8 @@ class Corruptor(Moveable, Attacker):
701702
class Broodlord(Moveable, Attacker):
702703
pass
703704

704-
@Transports(0x14501, None, 0x14563, 0x14504)
705+
#@Transports(0x14501, None, 0x14563, 0x14504)
706+
@Transports(0x14501, None, 0x00, 0x00)
705707
class Overlord(Moveable, Supporter):
706708
abilities = {
707709
0x17500: 'Generate Creep',

0 commit comments

Comments
 (0)