mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Allow normal enemies to spawn as humanoids
This commit is contained in:
@ -270,8 +270,15 @@ impl Server {
|
|||||||
|
|
||||||
// Handle chunk supplement
|
// Handle chunk supplement
|
||||||
for npc in supplement.npcs {
|
for npc in supplement.npcs {
|
||||||
let mut stats = comp::Stats::new("Wolf".to_string());
|
let (mut stats, mut body) = if rand::random() {
|
||||||
let mut body = comp::Body::QuadrupedMedium(comp::quadruped_medium::Body::random());
|
let stats = comp::Stats::new("Humanoid".to_string());
|
||||||
|
let body = comp::Body::Humanoid(comp::humanoid::Body::random());
|
||||||
|
(stats, body)
|
||||||
|
} else {
|
||||||
|
let stats = comp::Stats::new("Wolf".to_string());
|
||||||
|
let body = comp::Body::QuadrupedMedium(comp::quadruped_medium::Body::random());
|
||||||
|
(stats, body)
|
||||||
|
};
|
||||||
let mut scale = 1.0;
|
let mut scale = 1.0;
|
||||||
|
|
||||||
if npc.boss {
|
if npc.boss {
|
||||||
|
Reference in New Issue
Block a user