summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src/battle/struct/btl_tile.erl')
-rw-r--r-- | src/battle/struct/btl_tile.erl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/battle/struct/btl_tile.erl b/src/battle/struct/btl_tile.erl index 479e37e..3abfb9c 100644 --- a/src/battle/struct/btl_tile.erl +++ b/src/battle/struct/btl_tile.erl @@ -55,10 +55,12 @@ -spec class_id_to_type_id (class_id()) -> id(). class_id_to_type_id (ClassID) -> case ClassID of - 0 -> 0; - 1 -> 1; - 2 -> 2; - N when ((N >= 3) and (N =< 17)) -> 3 + + N when ((N >= 0) and (N =< 0)) -> 0; + N when ((N >= 1) and (N =< 1)) -> 1; + N when ((N >= 2) and (N =< 2)) -> 2; + N when ((N >= 3) and (N =< 17)) -> 3; + _ -> 0 end. -spec from_id (id()) -> type(). |