|
@ -271,10 +271,10 @@ pub fn load_quests_path(mut quest_path: PathBuf) -> Result<QuestList, QuestLoadE |
|
|
|
|
|
|
|
|
pub fn load_standard_quests(mode: RoomMode) -> Result<QuestList, QuestLoadError> {
|
|
|
pub fn load_standard_quests(mode: RoomMode) -> Result<QuestList, QuestLoadError> {
|
|
|
match mode {
|
|
|
match mode {
|
|
|
RoomMode::Single {episode, difficulty } => {
|
|
|
|
|
|
|
|
|
RoomMode::Single {episode, .. } => {
|
|
|
load_quests_path(PathBuf::from_iter(["data", "quests", "bb", &episode.to_string(), "single", "quests.toml"]))
|
|
|
load_quests_path(PathBuf::from_iter(["data", "quests", "bb", &episode.to_string(), "single", "quests.toml"]))
|
|
|
},
|
|
|
},
|
|
|
RoomMode::Multi {episode, difficulty } => {
|
|
|
|
|
|
|
|
|
RoomMode::Multi {episode, .. } => {
|
|
|
load_quests_path(PathBuf::from_iter(["data", "quests", "bb", &episode.to_string(), "multi", "quests.toml"]))
|
|
|
load_quests_path(PathBuf::from_iter(["data", "quests", "bb", &episode.to_string(), "multi", "quests.toml"]))
|
|
|
},
|
|
|
},
|
|
|
_ => {
|
|
|
_ => {
|
|
@ -286,10 +286,10 @@ pub fn load_standard_quests(mode: RoomMode) -> Result<QuestList, QuestLoadError> |
|
|
|
|
|
|
|
|
pub fn load_government_quests(mode: RoomMode) -> Result<QuestList, QuestLoadError> {
|
|
|
pub fn load_government_quests(mode: RoomMode) -> Result<QuestList, QuestLoadError> {
|
|
|
match mode {
|
|
|
match mode {
|
|
|
RoomMode::Single {episode, difficulty } => {
|
|
|
|
|
|
|
|
|
RoomMode::Single {episode, .. } => {
|
|
|
load_quests_path(PathBuf::from_iter(["data", "quests", "bb", &episode.to_string(), "government", "quests.toml"]))
|
|
|
load_quests_path(PathBuf::from_iter(["data", "quests", "bb", &episode.to_string(), "government", "quests.toml"]))
|
|
|
},
|
|
|
},
|
|
|
RoomMode::Multi {episode, difficulty } => {
|
|
|
|
|
|
|
|
|
RoomMode::Multi {episode, .. } => {
|
|
|
load_quests_path(PathBuf::from_iter(["data", "quests", "bb", &episode.to_string(), "government", "quests.toml"]))
|
|
|
load_quests_path(PathBuf::from_iter(["data", "quests", "bb", &episode.to_string(), "government", "quests.toml"]))
|
|
|
},
|
|
|
},
|
|
|
_ => {
|
|
|
_ => {
|
|
|