added gameover, added class/ancestry defaults
This commit is contained in:
parent
65ec5c1b15
commit
2c4b4ca143
8 changed files with 60 additions and 98 deletions
|
|
@ -27,7 +27,10 @@ use super::{
|
|||
Bleeds,
|
||||
HasDamageModifiers,
|
||||
Intrinsics,
|
||||
HasAncestry,
|
||||
HasClass,
|
||||
};
|
||||
use crate::gui::{ Ancestry, Class };
|
||||
use crate::consts::entity;
|
||||
use crate::consts::visuals::BLOODSTAIN_COLOUR;
|
||||
use crate::gamesystem::*;
|
||||
|
|
@ -63,6 +66,8 @@ pub fn player(ecs: &mut World, player_x: i32, player_y: i32) -> Entity {
|
|||
.with(Player {})
|
||||
.with(Mind {})
|
||||
.with(Faction { name: "player".to_string() })
|
||||
.with(HasAncestry { name: Ancestry::Unset })
|
||||
.with(HasClass { name: Class::Unset })
|
||||
.with(Viewshed {
|
||||
visible_tiles: Vec::new(),
|
||||
range: entity::DEFAULT_VIEWSHED_STANDARD,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue