Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/sourceMap.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ _Support content creators. Only use or include sources that you own._
| PiP | Peril in Pinegrove | adventure |
| PotA | Princes of the Apocalypse | adventure |
| QftIS | Quests from the Infinite Staircase | adventure |
| RHW | Ravenloft: The Horrors Within | book |
| RMBRE | The Lost Dungeon of Rickedness: Big Rick Energy | adventure |
| RMR | Dungeons & Dragons vs. Rick and Morty: Basic Rules | book |
| RoT | The Rise of Tiamat | adventure |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import static dev.ebullient.convert.StringUtil.isPresent;
import static dev.ebullient.convert.StringUtil.joinConjunct;
import static dev.ebullient.convert.StringUtil.toOrdinal;
import static dev.ebullient.convert.StringUtil.uppercaseFirst;

import java.nio.file.Path;
import java.text.Normalizer;
Expand Down Expand Up @@ -372,6 +373,12 @@ private String proficiencyPrereq(JsonNode profPrereq) {
replaceText(prof.getValue().asText())));
case "weaponGroup" -> profs.add(String.format("%s weapons",
replaceText(prof.getValue().asText())));
case "skill" -> {
List<String> skills = new ArrayList<>();
prof.getValue().forEach(x -> skills.add(uppercaseFirst(replaceText(x.asText()))));
profs.add(String.format("the %s skill",
joinConjunct(" or ", skills)));
}
default -> {
tui().warnf(Msg.UNKNOWN, "unknown proficiency prereq %s from %s / %s",
p.toString(), getSources().getKey(), parseState().getSource());
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/sourceMap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,9 @@ config5e:
QftIS:
name: "Quests from the Infinite Staircase"
date: "2024-07-16"
RHW:
name: "Ravenloft: The Horrors Within"
date: "2026-06-16"
RMBRE:
name: "The Lost Dungeon of Rickedness: Big Rick Energy"
date: "2019-11-19"
Expand Down
3 changes: 2 additions & 1 deletion src/test/resources/5e-sourceTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
"NF",
"LFL",
"EFA",
"CaBoMP"
"CaBoMP",
"RHW"
]
}
Loading