summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/struct/shr_weapon.erl.m4')
-rw-r--r--src/shared/struct/shr_weapon.erl.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/src/shared/struct/shr_weapon.erl.m4 b/src/shared/struct/shr_weapon.erl.m4
index 55c2815..ccda881 100644
--- a/src/shared/struct/shr_weapon.erl.m4
+++ b/src/shared/struct/shr_weapon.erl.m4
@@ -40,6 +40,7 @@
(
[
random_id/0,
+ none/0,
from_id/1
]
).
@@ -71,7 +72,10 @@ get_omnimods (Wp) -> Wp#weapon.omnimods.
m4_include(__MAKEFILE_DATA_DIR/weapon/global.m4.conf)m4_dnl
m4_include(__MAKEFILE_DATA_DIR/weapon/basic.m4d)m4_dnl
from_id (_) ->
- from_id(0).
+ none().
+
+-spec none () -> type().
+none () -> from_id(0).
-spec random_id () -> id().
random_id () -> shr_roll:between(0, 24).