diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2017-09-15 12:18:47 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-09-15 12:18:47 +0200 |
commit | edbc533414b0ba991a82f8003d90924e1dc60d95 (patch) | |
tree | 9fe4c04bc35f345e9a62f1358fa5e0ad324938e9 /src/object_properties.h | |
parent | 7640749d68b87a62868840d34a665101861ca9c0 (diff) | |
download | minetest-edbc533414b0ba991a82f8003d90924e1dc60d95.tar.gz minetest-edbc533414b0ba991a82f8003d90924e1dc60d95.tar.bz2 minetest-edbc533414b0ba991a82f8003d90924e1dc60d95.zip |
Customizeable max breath for players (#6411)
* Customizeable maximal breath for players
Diffstat (limited to 'src/object_properties.h')
-rw-r--r-- | src/object_properties.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/object_properties.h b/src/object_properties.h index 8ab1fa7fd..7589cec3c 100644 --- a/src/object_properties.h +++ b/src/object_properties.h @@ -27,11 +27,12 @@ with this program; if not, write to the Free Software Foundation, Inc., struct ObjectProperties { - // Values are BS=1 s16 hp_max = 1; + u16 breath_max = 0; bool physical = false; bool collideWithObjects = true; float weight = 5.0f; + // Values are BS=1 aabb3f collisionbox = aabb3f(-0.5f, -0.5f, -0.5f, 0.5f, 0.5f, 0.5f); aabb3f selectionbox = aabb3f(-0.5f, -0.5f, -0.5f, 0.5f, 0.5f, 0.5f); bool pointable = true; |