These are chat archives for arenanet/api-cdi

8th
May 2018
Darqam
@Darqam
May 08 2018 03:21

https://api.guildwars2.com/v2/items/87517 this is returning

{
"text": "ErrBadParam"
}

for some reason

darthmaim
@darthmaim
May 08 2018 05:57
I just want a /v2/itemstats/161?level=80&rarity=Exotic&type=Armor&slot=Cloak that returns {"Power":134,"Precision":96,"CritDamage":96} instead of the ratios
Archomeda
@Archomeda
May 08 2018 09:53
Yeah, ratios are a pain to work with
darthmaim
@darthmaim
May 08 2018 09:56
And almost all /v2/itemstats are referenced by items
even those with 0 as all stats
or those missing names
Archomeda
@Archomeda
May 08 2018 09:58
It almost seems like there's a seperate itemstat for every rarity, level and type
87528 has the same issue
the game also says "Cannot link from this location." grrr I hate that
Archomeda
@Archomeda
May 08 2018 10:10
Hmm... what does quaggan have to say?
[&AgHdVQEA]
:<
darthmaim
@darthmaim
May 08 2018 10:10
he can't handle failing chat codes
Archomeda
@Archomeda
May 08 2018 10:10
Poor bot
darthmaim
@darthmaim
May 08 2018 10:10
he just ignores all that can't be resolved
Archomeda
@Archomeda
May 08 2018 10:10
I was kinda hoping for a fun response
darthmaim
@darthmaim
May 08 2018 10:11
QuagganBooOOoot/gitter-bot#2
I think I have a branch that kinda fixes it, but is quite ugly
Archomeda
@Archomeda
May 08 2018 10:13
:)
darthmaim
@darthmaim
May 08 2018 10:13
aah no, the ugly code was for POI chatcodes:
export function lookupMapPoi() {
    return {
        many(ids) {
            return gw2.continents().ids().then(continentIds =>
                Promise.all(continentIds.map(id => gw2.continents().floors(id).all()))
                    .then(continents => {
                        let found = []

                        continents.forEach(floors => 
                            floors.forEach(floor =>
                                floor.regions && Object.values(floor.regions).forEach(region => 
                                    region.maps && Object.values(region.maps).forEach(map => 
                                        ['points_of_interest'].forEach(type => 
                                            // console.log(Object.values(map[type]).filter(poi => ids.indexOf(poi.id) !== -1))
                                            found = [
                                                ...found,
                                                ...Object.values(map[type])
                                                    .filter(poi => ids.indexOf(poi.id) !== -1)
                                                    .map(poi => ({type, floor: floor.id, region: region.id, map: map.id, ...poi}))
                                            ]
                                        )
                                    )
                                )
                            )
                        )


                        return found;
                    })
            )
        }
    }
}
Archomeda
@Archomeda
May 08 2018 10:14
lol
darthmaim
@darthmaim
May 08 2018 10:14
yep
Archomeda
@Archomeda
May 08 2018 16:34
@ChieftainAlex oohhh I just noticed how the wiki does the skills that are split between game modes :O
way better than before
darthmaim
@darthmaim
May 08 2018 16:35
oh thats nice
Archomeda
@Archomeda
May 08 2018 16:35
although a lot of skills have been merged again with this patch... so have fun :P
darthmaim
@darthmaim
May 08 2018 16:40
just reading over the patch notes now "damage increased", "damage increased", "damage increased" :O
Archomeda
@Archomeda
May 08 2018 16:40
"lower cooldown", "higher duration"

Empower Allies: Reduced the power granted by this trait from 150 to 100.

well, except this one

darthmaim
@darthmaim
May 08 2018 16:41
well, don't need more power if everything is doing more dmg already :P
Archomeda
@Archomeda
May 08 2018 16:41
lol