project: Add scraped ge limits, item stats and npc stats
This commit is contained in:
1
runelite-client/src/main/resources/ge_limits.json
Normal file
1
runelite-client/src/main/resources/ge_limits.json
Normal file
File diff suppressed because one or more lines are too long
1
runelite-client/src/main/resources/item_stats.json
Normal file
1
runelite-client/src/main/resources/item_stats.json
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -99,7 +99,7 @@ public class NpcStatsDumper
|
|||||||
* Looks for and parses the `Switch infobox` into a {@link MediaWikiTemplate} and then iterates over the `item#` values.
|
* Looks for and parses the `Switch infobox` into a {@link MediaWikiTemplate} and then iterates over the `item#` values.
|
||||||
* Attempts to parse each `item#` value via `parseWikiText`, matching the `name` attribute. null values are ignored
|
* Attempts to parse each `item#` value via `parseWikiText`, matching the `name` attribute. null values are ignored
|
||||||
*
|
*
|
||||||
* @param name only parses MediaWikiTemplates from `Switch infobox` if matches this value. (case insensitive)
|
* @param name only parses MediaWikiTemplates from `Switch infobox` if matches this value. (case insensitive)
|
||||||
* @param baseTemplate the {@link MediaWikiTemplate} representation of the `Switch infobox` to parse from
|
* @param baseTemplate the {@link MediaWikiTemplate} representation of the `Switch infobox` to parse from
|
||||||
* @return List of all valid {@link MediaWikiTemplate}s matching `name` from `baseTemplate`s `item#` values
|
* @return List of all valid {@link MediaWikiTemplate}s matching `name` from `baseTemplate`s `item#` values
|
||||||
*/
|
*/
|
||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user