starting on config files
This commit is contained in:
parent
98a4422b15
commit
281396f9ce
11 changed files with 23 additions and 22 deletions
|
|
@ -1,9 +1,9 @@
|
|||
use super::{Raws, Reaction};
|
||||
use crate::components::*;
|
||||
use crate::config::entity;
|
||||
use crate::gamesystem::*;
|
||||
use crate::gui::Ancestry;
|
||||
use crate::random_table::RandomTable;
|
||||
use crate::spawner;
|
||||
use crate::LOG_SPAWNING;
|
||||
use regex::Regex;
|
||||
use rltk::prelude::*;
|
||||
|
|
@ -381,11 +381,7 @@ pub fn spawn_named_mob(
|
|||
eb = ecs.create_entity().marked::<SimpleMarker<SerializeMe>>();
|
||||
eb = spawn_position(pos, eb, key, raws);
|
||||
eb = eb.with(Name { name: mob_template.name.clone(), plural: mob_template.name.clone() });
|
||||
eb = eb.with(Viewshed {
|
||||
visible_tiles: Vec::new(),
|
||||
range: (mob_template.vision_range as f32 * spawner::VIEWSHED_MOD) as i32,
|
||||
dirty: true,
|
||||
});
|
||||
eb = eb.with(Viewshed { visible_tiles: Vec::new(), range: mob_template.vision_range as i32, dirty: true });
|
||||
if let Some(telepath) = &mob_template.telepathy_range {
|
||||
eb = eb.with(Telepath { telepath_tiles: Vec::new(), range: *telepath, dirty: true });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue