summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2017-11-28 13:38:04 +0100 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2017-11-28 13:38:04 +0100 |
commit | 80358376b9300a0d73cb8b62dfa9fdd65240ca66 (patch) | |
tree | 6eb82383ba1fdfb33c68dbe699bc2a4b68763d24 /src/database_shim.erl | |
parent | 299a37b6d245dbb9806f4922cf492009775a8bf0 (diff) |
Starting to work on attacks.
I find it difficult to keep the code tidy in Erlang...
Diffstat (limited to 'src/database_shim.erl')
-rw-r--r-- | src/database_shim.erl | 3 |
1 files changed, 2 insertions, 1 deletions
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, |