Merge branch 'timo-tweeks' into 'master'

fix: all enemies start with lvl 1 hp

See merge request veloren/veloren!572
This commit is contained in:
Timo Koesters 2019-10-09 15:54:25 +00:00
commit c0732d7787

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))