Skip to content

Commit 7197268

Browse files
committed
Add new units and abilities for HotS.
1 parent d2cb143 commit 7197268

File tree

4 files changed

+62
-2
lines changed

4 files changed

+62
-2
lines changed

sc2reader/data/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def load_build(expansion, version):
385385

386386
# Load HotS Data
387387
hots_builds = dict()
388-
for version in ('base',):
388+
for version in ('base','23925','24247'):
389389
hots_builds[version] = load_build('HotS', version)
390390

391391
builds = {'WoL':wol_builds,'HotS':hots_builds}

sc2reader/data/ability_lookup.csv

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,3 +368,32 @@ que5PassiveCancelToSelection,CancelLast,CancelSlot,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
368368
que8,CancelLast,CancelSlot,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
369369
stop,Stop,HoldFire,Cheer,Dance,,,,,,,,,,,,,,,,,,,,,,,,,,,,
370370
stopProtossBuilding,Stop,HoldFire,Cheer,Dance,,,,,,,,,,,,,,,,,,,,,,,,,,,,
371+
CAbil,CAbil,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
372+
MorphToCollapsibleTerranTowerDebris,MorphToCollapsibleTerranTowerDebris,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
373+
MorphToCollapsibleTerranTowerDebrisRampLeft,MorphToCollapsibleTerranTowerDebrisRampLeft,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
374+
MorphToCollapsibleTerranTowerDebrisRampRight,MorphToCollapsibleTerranTowerDebrisRampRight,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
375+
LeechResources,LeechResources,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
376+
BlindingCloud,BlindingCloud,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
377+
ViperConsume,ViperConsume,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
378+
ViperConsumeMinerals,ViperConsumeMinerals,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
379+
LurkerAspectMPFromHydraliskBurrowed,LurkerAspectMPFromHydraliskBurrowed,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
380+
LurkerAspectMP,LurkerAspect,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
381+
BurrowLurkerMPDown,BurrowLurker,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
382+
BurrowLurkerMPUp,UnburrowLurker,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
383+
UpgradeToLurkerDenMP,UpgradeToLurkerDenMP,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
384+
MorphToCollapsibleRockTowerDebrisRampRight,MorphToCollapsibleRockTowerDebrisRampRight,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
385+
MorphToCollapsibleRockTowerDebrisRampLeft,MorphToCollapsibleRockTowerDebrisRampLeft,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
386+
VoidSiphon,VoidSiphon,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
387+
MothershipCorePurifyNexusCancel,MothershipCorePurifyNexusCancel,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
388+
MothershipCorePurifyNexus,MothershipCorePurifyNexus,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
389+
TemporalField,TemporalField,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
390+
ArmoryResearchSwarm,ArmoryResearchSwarm,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
391+
ArmorpiercingMissiles,ArmorpiercingMissiles,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
392+
ExplosiveMissiles,ExplosiveMissiles,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
393+
LightofAiur,LightofAiur,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
394+
MothershipMassRecall,MothershipMassRecall,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
395+
OracleWeapon,OracleWeapon,OracleWeaponOff,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
396+
PulsarBeam,PulsarBeam,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
397+
PulsarCannon,PulsarCannon,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
398+
VoidRaySwarmDamageBoost,VoidRaySwarmDamageBoost,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
399+
SeekerDummyChannel,SeekerDummyChannel,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

sc2reader/data/unit_lookup.csv

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,3 +492,32 @@ Anteplott,Anteplott
492492
LabBot,LabBot
493493
Crabeetle,Crabeetle
494494
BeaconQQQ,BeaconQQQ
495+
BeaconArmy,BeaconArmy
496+
LurkerMPEgg,LurkerEgg
497+
LurkerMP,Lurker
498+
LurkerMPBurrowed,LurkerBurrowed
499+
LurkerDenMP,LurkerDen
500+
CollapsibleRockTowerDebrisRampRight,CollapsibleRockTowerDebrisRampRight
501+
CollapsibleRockTowerDebrisRampLeft,CollapsibleRockTowerDebrisRampLeft
502+
CollapsibleRockTowerPushUnitRampRight,CollapsibleRockTowerPushUnitRampRight
503+
CollapsibleRockTowerPushUnitRampLeft,CollapsibleRockTowerPushUnitRampLeft
504+
YoinkVikingAirMissile,AbductVikingAirMissile
505+
YoinkVikingGroundMissile,YoinkVikingGroundMissile
506+
RepulsorCannonWeapon,RepulsorCannonWeapon
507+
ZerusDestructibleArch,ZerusDestructibleArch
508+
CollapsibleRockTowerRampRight,CollapsibleRockTowerRampRight
509+
CollapsibleRockTowerRampLeft,CollapsibleRockTowerRampLeft
510+
UnbuildableRocksDestructible,UnbuildableRocksDestructible
511+
UnbuildableBricksDestructible,UnbuildableBricksDestructible
512+
UnbuildablePlatesDestructible,UnbuildablePlatesDestructible
513+
DebrisRampLeft,DebrisRampLeft
514+
DebrisRampRight,DebrisRampRight
515+
CollapsibleTerranTowerPushUnitRampLeft,CollapsibleTerranTowerPushUnitRampLeft
516+
CollapsibleTerranTowerPushUnitRampRight,CollapsibleTerranTowerPushUnitRampRight
517+
CollapsibleTerranTowerRampLeft,CollapsibleTerranTowerRampLeft
518+
CollapsibleTerranTowerRampRight,CollapsibleTerranTowerRampRight
519+
LabMineralField,LabMineralField
520+
ThorAALance,ThorAALance
521+
OracleWeapon,OracleWeapon
522+
TempestWeaponGround,TempestWeaponGround
523+
SeekerMissile,SeekerMissile

sc2reader/resources.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,9 @@ def register_default_datapacks(self):
578578
self.register_datapack(datapacks['WoL']['18092'], lambda r: r.expansion=='WoL' and 18092 <= r.build < 19458)
579579
self.register_datapack(datapacks['WoL']['19458'], lambda r: r.expansion=='WoL' and 19458 <= r.build < 22612)
580580
self.register_datapack(datapacks['WoL']['22612'], lambda r: r.expansion=='WoL' and 22612 <= r.build)
581-
self.register_datapack(datapacks['HotS']['base'], lambda r: r.expansion=='HotS')
581+
self.register_datapack(datapacks['HotS']['base'], lambda r: r.expansion=='HotS' and r.build < 23925)
582+
self.register_datapack(datapacks['HotS']['23925'], lambda r: r.expansion=='HotS' and 23925 <= r.build < 24247)
583+
self.register_datapack(datapacks['HotS']['24247'], lambda r: r.expansion=='HotS' and 24247 <= r.build )
582584
# self.register_datapack(data.build16117, lambda r: 16117 <= r.build < 17326)
583585
# self.register_datapack(data.build17326, lambda r: 17326 <= r.build < 18092)
584586
# self.register_datapack(data.build18092, lambda r: 18092 <= r.build < 19458)

0 commit comments

Comments
 (0)