mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed plugin tests with hack.
This commit is contained in:
parent
85f4e66337
commit
fec92c3000
@ -134,6 +134,23 @@ impl Health {
|
||||
self.current = self.maximum;
|
||||
self.is_dead = false;
|
||||
}
|
||||
|
||||
// Function only exists for plugin tests, do not use anywhere else
|
||||
// TODO: Remove somehow later
|
||||
#[deprecated]
|
||||
pub fn empty() -> Self {
|
||||
Health {
|
||||
current: 0,
|
||||
base_max: 0,
|
||||
maximum: 0,
|
||||
last_change: (0.0, HealthChange {
|
||||
amount: 0.0,
|
||||
by: None,
|
||||
cause: None,
|
||||
}),
|
||||
is_dead: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
|
Loading…
Reference in New Issue
Block a user