Skip to content

Commit

Permalink
Commit update for patch 5.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
BurnySc2 committed Mar 28, 2024
1 parent aede67a commit 13202d9
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 33 deletions.
4 changes: 2 additions & 2 deletions src/components/Title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ export default class Title extends Component {
<div>
<a
className={CLASSES.titleVersion}
href="https://liquipedia.net/starcraft2/Patch_5.0.12"
href="https://liquipedia.net/starcraft2/Patch_5.0.13"
target="_blank"
rel="noopener noreferrer"
>
For patch 5.0.12
For patch 5.0.13
</a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/constants/bo_items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const supplyUnitNameByRace = {
},
}

console.assert(Object.keys(BO_ITEMS).length === 233, `${Object.keys(BO_ITEMS).length} is not 233`)
console.assert(Object.keys(BO_ITEMS).length === 234, `${Object.keys(BO_ITEMS).length} is not 234`)

console.assert(BO_ITEMS["Zergling"].name === "Zergling", `${BO_ITEMS["Zergling"].name}`)
console.assert(BO_ITEMS["Zergling"].type === "unit", `${BO_ITEMS["Zergling"].type}`)
Expand Down
68 changes: 40 additions & 28 deletions src/constants/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@
"allow_autocast": false,
"allow_minimap": false,
"buff": [],
"cast_range": 9.0,
"cast_range": 10.0,
"cooldown": 0,
"effect": [],
"energy_cost": 0,
Expand Down Expand Up @@ -9778,6 +9778,14 @@
}
]
},
{
"ability": 793,
"requirements": [
{
"addon_to": 28
}
]
},
{
"ability": 790,
"requirements": [
Expand Down Expand Up @@ -11136,7 +11144,7 @@
"accepts_addon": false,
"armor": 1.0,
"attributes": ["Armored", "Mechanical", "Structure"],
"gas": 100,
"gas": 50,
"id": 29,
"is_addon": false,
"is_flying": false,
Expand Down Expand Up @@ -12052,7 +12060,7 @@
"cooldown": 1.5,
"damage_per_hit": 5.0,
"damage_splash": 0,
"range": 0.10009765625,
"range": 0.199951171875,
"target_type": "Ground"
}
]
Expand Down Expand Up @@ -12951,7 +12959,7 @@
"power_radius": 6.5,
"race": "Protoss",
"radius": 1.125,
"sight": 9.0,
"sight": 10.0,
"size": 0,
"speed_creep_mul": 1.0,
"supply": -8.0,
Expand Down Expand Up @@ -14005,7 +14013,7 @@
],
"accepts_addon": false,
"armor": 1.0,
"attributes": ["Light", "Mechanical", "Psionic"],
"attributes": ["Mechanical", "Psionic"],
"cargo_size": 2,
"gas": 100,
"id": 77,
Expand Down Expand Up @@ -14307,7 +14315,7 @@
"is_townhall": false,
"is_worker": false,
"max_health": 40.0,
"max_shield": 20.0,
"max_shield": 30.0,
"minerals": 25,
"name": "Observer",
"needs_creep": false,
Expand All @@ -14321,7 +14329,7 @@
"speed_creep_mul": 1.0,
"supply": 1.0,
"tech_alias": [],
"time": 480.0,
"time": 400.0,
"unit_alias": 0,
"weapons": []
},
Expand Down Expand Up @@ -14558,7 +14566,7 @@
"cooldown": 1.5,
"damage_per_hit": 5.0,
"damage_splash": 0,
"range": 0.10009765625,
"range": 0.199951171875,
"target_type": "Ground"
}
]
Expand Down Expand Up @@ -14685,7 +14693,14 @@
"weapons": []
},
{
"abilities": [],
"abilities": [
{
"ability": 1733
},
{
"ability": 1
}
],
"accepts_addon": false,
"armor": 0.0,
"attributes": ["Light", "Biological", "Structure"],
Expand Down Expand Up @@ -15730,7 +15745,7 @@
"cooldown": 1.5,
"damage_per_hit": 5.0,
"damage_splash": 0,
"range": 0.10009765625,
"range": 0.199951171875,
"target_type": "Ground"
}
]
Expand Down Expand Up @@ -16842,7 +16857,7 @@
"normal_mode": 111,
"race": "Zerg",
"radius": 0.625,
"sight": 10.0,
"sight": 8.0,
"size": 0,
"speed": 2.0,
"speed_creep_mul": 1.0,
Expand Down Expand Up @@ -19388,7 +19403,7 @@
"is_structure": false,
"is_townhall": false,
"is_worker": false,
"max_health": 110.0,
"max_health": 130.0,
"minerals": 125,
"name": "Cyclone",
"needs_creep": false,
Expand All @@ -19413,7 +19428,7 @@
"damage": 3.0
}
],
"cooldown": 0.673828125,
"cooldown": 0.81201171875,
"damage_per_hit": 11.0,
"damage_splash": 0,
"range": 6.0,
Expand Down Expand Up @@ -20724,11 +20739,11 @@
"radius": 1.0,
"sight": 11.0,
"size": 0,
"speed": 0.78515625,
"speed": 0.9140625,
"speed_creep_mul": 1.0,
"supply": -8.0,
"tech_alias": [106],
"time": 266.6796875,
"time": 336.015625,
"unit_alias": 0,
"weapons": []
},
Expand All @@ -20755,7 +20770,7 @@
"power_radius": 6.5,
"race": "Protoss",
"radius": 1.125,
"sight": 9.0,
"sight": 10.0,
"size": 0,
"speed_creep_mul": 1.0,
"supply": -8.0,
Expand Down Expand Up @@ -20809,9 +20824,6 @@
},
{
"abilities": [
{
"ability": 4
},
{
"ability": 4111
},
Expand Down Expand Up @@ -20871,7 +20883,7 @@
"is_townhall": false,
"is_worker": false,
"max_health": 40.0,
"max_shield": 20.0,
"max_shield": 30.0,
"minerals": 25,
"name": "ObserverSiegeMode",
"needs_creep": false,
Expand Down Expand Up @@ -21163,17 +21175,17 @@
},
{
"cost": {
"gas": 175,
"minerals": 175,
"gas": 150,
"minerals": 150,
"time": 3040.0
},
"id": 8,
"name": "TerranInfantryWeaponsLevel2"
},
{
"cost": {
"gas": 250,
"minerals": 250,
"gas": 200,
"minerals": 200,
"time": 3520.0
},
"id": 9,
Expand All @@ -21199,17 +21211,17 @@
},
{
"cost": {
"gas": 175,
"minerals": 175,
"gas": 150,
"minerals": 150,
"time": 3040.0
},
"id": 12,
"name": "TerranInfantryArmorsLevel2"
},
{
"cost": {
"gas": 250,
"minerals": 250,
"gas": 200,
"minerals": 200,
"time": 3520.0
},
"id": 13,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import data from "./data.json"

const RESEARCH_ABILITIES: { [name: number]: number } = {}

data.Ability.forEach((ability) => {
const target = ability.target
if (typeof target !== "string") {
const research = target.Research
if (research !== undefined) {
RESEARCH_ABILITIES[ability.id] = research.upgrade
return
}
}
})

// Returns object with keys as ability id and value as resulting unit id

// COMMANDCENTERTRAIN_SCV: SCV
// Exported:
// {524, 45}

console.assert(
Object.keys(RESEARCH_ABILITIES).length === 118,
`${Object.keys(RESEARCH_ABILITIES).length} is not 118`
)

export default RESEARCH_ABILITIES
3 changes: 1 addition & 2 deletions src/constants/upgrades.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ UPGRADES.forEach((item) => {
// UPGRADES.protoss.sort(sortFn)
// UPGRADES.zerg.sort(sortFn)

// Should be enabled 89 upgrades
console.assert(Object.keys(UPGRADES).length === 87, `${Object.keys(UPGRADES).length} is not 87`)
console.assert(Object.keys(UPGRADES).length === 88, `${Object.keys(UPGRADES).length} is not 88`)

// Returns object with keys as upgrade id and value is equal to 1 (int) if the upgrade is available from an ability
export { UPGRADES, UPGRADE_NAMES_BY_RACE }

0 comments on commit 13202d9

Please sign in to comment.