Browse Source

rename default_map_variants

pull/127/head
jake 2 years ago
parent
commit
bbaf39fa0b
  1. 4
      src/ship/map/maps.rs

4
src/ship/map/maps.rs

@ -173,7 +173,7 @@ fn enemy_data_from_map_data(map_variant: &MapVariant, episode: &Episode) -> Vec<
} }
fn map_variants(episode: Episode, player_mode: PlayerMode) -> Vec<MapVariant> {
pub fn default_map_variants(episode: Episode, player_mode: PlayerMode) -> Vec<MapVariant> {
match (episode, player_mode) { match (episode, player_mode) {
(Episode::One, PlayerMode::Multi) => { (Episode::One, PlayerMode::Multi) => {
vec![MapVariant::new(MapArea::Pioneer2Ep1, MapVariantMode::Online), vec![MapVariant::new(MapArea::Pioneer2Ep1, MapVariantMode::Online),
@ -360,7 +360,7 @@ impl Maps {
pub fn generate_free_roam_maps(room_mode: RoomMode, event: ShipEvent) -> Maps { pub fn generate_free_roam_maps(room_mode: RoomMode, event: ShipEvent) -> Maps {
let rare_monster_table = RareMonsterAppearTable::new(room_mode.episode()); let rare_monster_table = RareMonsterAppearTable::new(room_mode.episode());
let map_variants = map_variants(room_mode.episode(), room_mode.player_mode());
let map_variants = default_map_variants(room_mode.episode(), room_mode.player_mode());
Maps { Maps {
enemy_data: map_variants.iter() enemy_data: map_variants.iter()
.flat_map(|map_variant| { .flat_map(|map_variant| {

Loading…
Cancel
Save