Add chapter: 18

This commit is contained in:
2022-01-28 21:21:29 +01:00
parent 0e2c91dd12
commit cb17a9c356
12 changed files with 286 additions and 49 deletions

View File

@@ -1,9 +1,9 @@
use rltk::console;
use specs::prelude::*;
use crate::{Map, Name, Position, RunState};
use crate::components::{CombatStats, Player, SufferDamage};
use crate::gamelog::GameLog;
use crate::{Map, Name, Position, RunState};
pub struct DamageSystem {}
@@ -13,7 +13,7 @@ impl<'a> System<'a> for DamageSystem {
WriteStorage<'a, SufferDamage>,
ReadStorage<'a, Position>,
WriteExpect<'a, Map>,
Entities<'a>
Entities<'a>,
);
fn run(&mut self, data: Self::SystemData) {