fix: all enemies start with lvl 1 hp

This commit is contained in:
timokoesters 2019-10-09 17:09:25 +02:00
parent 45f756343d
commit be5d79b123
No known key found for this signature in database
GPG Key ID: CD80BE9AAEE78097

View File

@ -597,6 +597,9 @@ impl Server {
}
stats.update_max_hp();
stats
.health
.set_to(stats.health.maximum(), comp::HealthSource::Revive);
self.create_npc(comp::Pos(npc.pos), stats, body)
.with(comp::Agent::enemy())
.with(comp::Scale(scale))