Merge pull request #3021 from open-osrs/scrapie

project: Add scraped ge limits, item stats and npc stats
This commit is contained in:
Owain van Brakel
2021-08-12 00:32:50 +02:00
committed by GitHub
4 changed files with 7 additions and 3 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -218,7 +218,9 @@ public class NpcStatsDumper
} }
final Set<Integer> ids = Arrays.stream(wikiIdString.split(",")) final Set<Integer> ids = Arrays.stream(wikiIdString.split(","))
.map(s -> Integer.parseInt(s.replaceAll("[^0-9]", "").trim())) .map(s -> s.replaceAll("[^0-9]", "").trim())
.filter(s -> !s.isEmpty())
.map(Integer::parseInt)
.collect(Collectors.toSet()); .collect(Collectors.toSet());
final NpcStats stats = buildNpcStats(base, variantKey); final NpcStats stats = buildNpcStats(base, variantKey);