summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/database_shim.erl')
-rw-r--r--src/database_shim.erl3
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,