From 80358376b9300a0d73cb8b62dfa9fdd65240ca66 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Tue, 28 Nov 2017 13:38:04 +0100 Subject: Starting to work on attacks. I find it difficult to keep the code tidy in Erlang... --- src/database_shim.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/database_shim.erl') diff --git a/src/database_shim.erl b/src/database_shim.erl index 1966b6b..c840009 100644 --- a/src/database_shim.erl +++ b/src/database_shim.erl @@ -41,7 +41,8 @@ generate_char_instances (Battlemap, Characters) -> { x = rand:uniform(Battlemap#battlemap.width - 1), y = rand:uniform(Battlemap#battlemap.height - 1), - team = (rand:uniform(2) - 1) + team = (rand:uniform(2) - 1), + health = Char#character.health } } end, -- cgit v1.2.3-70-g09d2