Skip to content

Commit

Permalink
Merge pull request #2313 from wowsims/fixes
Browse files Browse the repository at this point in the history
Scrape wowhead items and update hunter pet GCD
  • Loading branch information
jimmyt857 authored Jan 8, 2023
2 parents 7d9d300 + 0eb378f commit ffb8d7b
Show file tree
Hide file tree
Showing 8 changed files with 497 additions and 493 deletions.
Binary file modified assets/database/db.bin
Binary file not shown.
60 changes: 30 additions & 30 deletions assets/database/db.json

Large diffs are not rendered by default.

Binary file modified assets/database/leftover_db.bin
Binary file not shown.
74 changes: 37 additions & 37 deletions assets/database/leftover_db.json

Large diffs are not rendered by default.

180 changes: 90 additions & 90 deletions assets/db_inputs/wowhead_item_tooltips.csv

Large diffs are not rendered by default.

640 changes: 320 additions & 320 deletions sim/hunter/TestHunter.results

Large diffs are not rendered by default.

35 changes: 19 additions & 16 deletions sim/hunter/pet_abilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import (

type PetAbilityType int

// Pet AI doesn't use abilities immediately, so model this with a 1.6s GCD.
const PetGCD = time.Millisecond * 1600

const (
Unknown PetAbilityType = iota
AcidSpit
Expand Down Expand Up @@ -158,7 +161,7 @@ func (hp *HunterPet) newFocusDump(pat PetAbilityType, spellID int32) PetAbility

Cast: core.CastConfig{
DefaultCast: core.Cast{
GCD: core.GCDDefault,
GCD: PetGCD,
},
IgnoreHaste: true,
},
Expand Down Expand Up @@ -262,7 +265,7 @@ func (hp *HunterPet) newAcidSpit() PetAbility {
return hp.newSpecialAbility(PetSpecialAbilityConfig{
Type: AcidSpit,
Cost: 20,
GCD: core.GCDDefault,
GCD: PetGCD,
CD: time.Second * 10,
SpellID: 55754,
School: core.SpellSchoolNature,
Expand All @@ -289,7 +292,7 @@ func (hp *HunterPet) newDemoralizingScreech() PetAbility {
return hp.newSpecialAbility(PetSpecialAbilityConfig{
Type: DemoralizingScreech,
Cost: 20,
GCD: core.GCDDefault,
GCD: PetGCD,
CD: time.Second * 10,
SpellID: 55487,
School: core.SpellSchoolPhysical,
Expand All @@ -313,7 +316,7 @@ func (hp *HunterPet) newFireBreath() PetAbility {
pa := hp.newSpecialAbility(PetSpecialAbilityConfig{
Type: FireBreath,
Cost: 20,
GCD: core.GCDDefault,
GCD: PetGCD,
CD: time.Second * 10,
SpellID: 55485,
School: core.SpellSchoolFire,
Expand Down Expand Up @@ -400,7 +403,7 @@ func (hp *HunterPet) newGore() PetAbility {
return hp.newSpecialAbility(PetSpecialAbilityConfig{
Type: Gore,
Cost: 20,
GCD: core.GCDDefault,
GCD: PetGCD,
CD: time.Second * 10,
SpellID: 35295,
School: core.SpellSchoolPhysical,
Expand All @@ -414,7 +417,7 @@ func (hp *HunterPet) newLavaBreath() PetAbility {
return hp.newSpecialAbility(PetSpecialAbilityConfig{
Type: LavaBreath,
Cost: 20,
GCD: core.GCDDefault,
GCD: PetGCD,
CD: time.Second * 10,
SpellID: 58611,
School: core.SpellSchoolFire,
Expand All @@ -428,7 +431,7 @@ func (hp *HunterPet) newLightningBreath() PetAbility {
return hp.newSpecialAbility(PetSpecialAbilityConfig{
Type: LightningBreath,
Cost: 20,
GCD: core.GCDDefault,
GCD: PetGCD,
CD: time.Second * 10,
SpellID: 25012,
School: core.SpellSchoolNature,
Expand All @@ -453,7 +456,7 @@ func (hp *HunterPet) newMonstrousBite() PetAbility {
return hp.newSpecialAbility(PetSpecialAbilityConfig{
Type: MonstrousBite,
Cost: 20,
GCD: core.GCDDefault,
GCD: PetGCD,
CD: time.Second * 10,
SpellID: 55499,
School: core.SpellSchoolPhysical,
Expand All @@ -473,7 +476,7 @@ func (hp *HunterPet) newNetherShock() PetAbility {
return hp.newSpecialAbility(PetSpecialAbilityConfig{
Type: NetherShock,
Cost: 20,
GCD: core.GCDDefault,
GCD: PetGCD,
CD: time.Second * 10,
SpellID: 53589,
School: core.SpellSchoolShadow,
Expand All @@ -497,7 +500,7 @@ func (hp *HunterPet) newPin() PetAbility {

Cast: core.CastConfig{
DefaultCast: core.Cast{
GCD: core.GCDDefault,
GCD: PetGCD,
ChannelTime: time.Second * 4,
},
IgnoreHaste: true,
Expand Down Expand Up @@ -556,7 +559,7 @@ func (hp *HunterPet) newPoisonSpit() PetAbility {

Cast: core.CastConfig{
DefaultCast: core.Cast{
GCD: core.GCDDefault,
GCD: PetGCD,
},
IgnoreHaste: true,
CD: core.Cooldown{
Expand Down Expand Up @@ -606,7 +609,7 @@ func (hp *HunterPet) newRake() PetAbility {
pa := hp.newSpecialAbility(PetSpecialAbilityConfig{
Type: Rake,
Cost: 20,
GCD: core.GCDDefault,
GCD: PetGCD,
CD: time.Second * 10,
SpellID: 59886,
School: core.SpellSchoolPhysical,
Expand Down Expand Up @@ -749,7 +752,7 @@ func (hp *HunterPet) newScorpidPoison() PetAbility {

Cast: core.CastConfig{
DefaultCast: core.Cast{
GCD: core.GCDDefault,
GCD: PetGCD,
},
IgnoreHaste: true,
CD: core.Cooldown{
Expand Down Expand Up @@ -881,7 +884,7 @@ func (hp *HunterPet) newSporeCloud() PetAbility {

Cast: core.CastConfig{
DefaultCast: core.Cast{
GCD: core.GCDDefault,
GCD: PetGCD,
},
IgnoreHaste: true,
CD: core.Cooldown{
Expand Down Expand Up @@ -950,7 +953,7 @@ func (hp *HunterPet) newSting() PetAbility {
return hp.newSpecialAbility(PetSpecialAbilityConfig{
Type: Sting,
Cost: 20,
GCD: core.GCDDefault,
GCD: PetGCD,
CD: time.Second * 6,
SpellID: 56631,
School: core.SpellSchoolNature,
Expand All @@ -971,7 +974,7 @@ func (hp *HunterPet) newSwipe() PetAbility {
return hp.newSpecialAbility(PetSpecialAbilityConfig{
Type: Swipe,
Cost: 20,
GCD: core.GCDDefault,
GCD: PetGCD,
CD: time.Second * 5,
SpellID: 53533,
School: core.SpellSchoolPhysical,
Expand Down
1 change: 1 addition & 0 deletions tools/database/gen_tooltips/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"github.com/wowsims/wotlk/tools/database"
)

// To do a full re-scrape, delete the previous output file first.
// go run ./tools/database/gen_tooltips -source=wowhead-items -output=assets/db_inputs/wowhead_item_tooltips.csv
// go run ./tools/database/gen_tooltips -source=wowhead-spells -output=assets/db_inputs/wowhead_spell_tooltips.csv
// go run ./tools/database/gen_tooltips -source=wotlk-items -output=assets/db_inputs/wotlk_items_tooltips.csv
Expand Down

0 comments on commit ffb8d7b

Please sign in to comment.