mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Prevent xp gain from training dummy kill
This commit is contained in:
parent
6140555e43
commit
c525358637
@ -599,14 +599,14 @@ fn handle_spawn_training_dummy(
|
||||
|
||||
let body = comp::Body::Object(comp::object::Body::Scarecrow);
|
||||
|
||||
let mut stats = comp::Stats::new("Training Dummy".to_string(), body);
|
||||
|
||||
// Level 0 will prevent exp gain from kill
|
||||
stats.level.set_level(0);
|
||||
|
||||
server
|
||||
.state
|
||||
.create_npc(
|
||||
pos,
|
||||
comp::Stats::new("Training Dummy".to_string(), body),
|
||||
comp::Loadout::default(),
|
||||
body,
|
||||
)
|
||||
.create_npc(pos, stats, comp::Loadout::default(), body)
|
||||
.with(comp::Vel(vel))
|
||||
.with(comp::MountState::Unmounted)
|
||||
.build();
|
||||
|
Loading…
Reference in New Issue
Block a user