Skip to content
Snippets Groups Projects
Commit b43729d2 authored by kopareigns's avatar kopareigns
Browse files

Fixed health calculations

parent fb937f34
No related branches found
No related tags found
2 merge requests!1155Pregmod master,!1130Fixes
...@@ -328,7 +328,7 @@ ...@@ -328,7 +328,7 @@
<<if $slaves[_i].health >= -60>> <<if $slaves[_i].health >= -60>>
<<set $slaves[_i].health -= 30>> <<set $slaves[_i].health -= 30>>
<<else>> <<else>>
<<set $slaves[_i].health -= Math.abs(90 - $slaves[_i].health)>> <<set $slaves[_i].health = -90>>
<</if>> <</if>>
<</if>> <</if>>
<</if>> <</if>>
...@@ -451,7 +451,7 @@ ...@@ -451,7 +451,7 @@
<<if $slaves[_i].health >= -60>> <<if $slaves[_i].health >= -60>>
<<set $slaves[_i].health -= 30>> <<set $slaves[_i].health -= 30>>
<<else>> <<else>>
<<set $slaves[_i].health -= Math.abs(90 - $slaves[_i].health)>> <<set $slaves[_i].health = -90>>
<</if>> <</if>>
<</if>> <</if>>
<</if>> <</if>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment