mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Add a health bonus for level ups, fix pets
This commit is contained in:
@ -839,6 +839,13 @@ impl Server {
|
||||
attacker_stats.exp.change_maximum_by(25.0);
|
||||
attacker_stats.exp.set_current(0.0);
|
||||
attacker_stats.level.change_by(1);
|
||||
attacker_stats
|
||||
.health
|
||||
.set_maximum(attacker_stats.health.maximum() + 10);
|
||||
attacker_stats.health.set_to(
|
||||
attacker_stats.health.maximum(),
|
||||
comp::HealthSource::LevelUp,
|
||||
)
|
||||
}
|
||||
|
||||
ecs.read_storage::<comp::Player>().get(attacker).cloned()
|
||||
|
Reference in New Issue
Block a user