mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Npcs can't be healed anymore
This commit is contained in:
parent
2117bb05d0
commit
7f02f5e7d2
@ -104,9 +104,8 @@ impl<'a> System<'a> for Sys {
|
||||
// NPCs do less damage:
|
||||
if agent_maybe.is_some() {
|
||||
if healthchange > 0 {
|
||||
healthchange = (healthchange / 2).max(1);
|
||||
}
|
||||
if healthchange < 0 {
|
||||
healthchange = 0;
|
||||
} else if healthchange < 0 {
|
||||
healthchange = (healthchange / 2).min(-1);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user