adds mob ancestries, converts everything over to get_reactions()

This commit is contained in:
Llywelwyn 2023-08-21 10:40:30 +01:00
parent 614653e028
commit 9e26c41aad
5 changed files with 40 additions and 54 deletions

View file

@ -20,7 +20,7 @@ impl<'a> System<'a> for AdjacentAI {
let (mut turns, factions, ancestries, positions, map, mut want_melee, entities, player) = data;
let mut turn_done: Vec<Entity> = Vec::new();
for (entity, _turn, my_faction, pos) in (&entities, &turns, &factions, &positions).join() {
for (entity, _turn, pos) in (&entities, &turns, &positions).join() {
if entity != *player {
let mut reactions: Vec<(Entity, Reaction)> = Vec::new();
let idx = map.xy_idx(pos.x, pos.y);