speed system - NYI

This commit is contained in:
Llywelwyn 2023-07-31 03:05:25 +01:00
parent 475f96d4e6
commit dce40ac741
8 changed files with 80 additions and 3 deletions

View file

@ -1,5 +1,5 @@
use super::{
gamesystem, gamesystem::attr_bonus, random_table::RandomTable, raws, Attribute, Attributes, HungerClock,
gamesystem, gamesystem::attr_bonus, random_table::RandomTable, raws, Attribute, Attributes, Energy, HungerClock,
HungerState, Map, Name, Player, Pool, Pools, Position, Rect, Renderable, SerializeMe, Skill, Skills, TileType,
Viewshed,
};
@ -54,6 +54,7 @@ pub fn player(ecs: &mut World, player_x: i32, player_y: i32) -> Entity {
bac: 10,
})
.with(skills)
.with(Energy { current: 0, speed: 12 })
.marked::<SimpleMarker<SerializeMe>>()
.build();